Thread:Extension talk:Foxway/I like this idea, but.../reply (3)

Hi, here's an example for giving permission to use Foxway extension is just a special user group:

(Place it in LocalSettings.php) // Define new Namespace define("NS_PHP", 1000); define("NS_PHP_TALK", 1001); $wgExtraNamespaces[NS_PHP] = "PHP"; $wgExtraNamespaces[NS_PHP_TALK] = "PHP_Talk";

// Protect this namespace $wgNamespaceProtection[NS_PHP] = array( 'php_editor' ); $wgGroupPermissions['sysop']['php_editor'] = true;

// Allow Foxway only in this namespace // Placing it AFTER the inclusion of Foxway!!! $wgNamespacesWithFoxway = array( NS_PHP );