David_S_Green-DYMqY+WieiM@public.gmane.org wrote :
Is there a way for me to put it in the Restricted special pages so only sysop's can see the link?
I guess/suppose/('m not sure, didn't test) it should be something close to this :
* Solution 1 :
on the extension page at step 2 : * Modify the file 'WIKI_ROOT/includes/SpecialPages.php' o Around line '74' add: 'MassMailer' => array('SpecialPage', 'MassMailer'),
you change it to
'MassMailer' => array('SpecialPage', 'MassMailer','massemailright'),
and then in LocalSettings.php, ou give the "massemailright" to the sysop
* Solution 2 :
you create a new special page as explained in http://www.mediawiki.org/wiki/Manual:Special_Pages
but in the constructor of your new special page : you have something like
function MyExtension() { SpecialPage::SpecialPage("MyExtension"); ... }
just change it to
SpecialPage::SpecialPage("MyExtension","massemailright");
and then in LocalSettings.php, ou give the "massemailright" to the sysop
The second solution has the advantages that you don't have to hack the core code, but you'll have to do some smart copy/paste. The first solution might seem easier, but you'll have to do the core code modifications every time you upgrade to a new version of mediawiki