Thread:Project:Support desk/Salesforce (Chatter) + Mediawiki/reply (4)

Hello,

Thanks for your assistance! I'm really thankful!

I did the first part of what you mentioned as below. May I know if I am correct? $wgHooks['ParserFirstCallInit'][] = 'ifUserSysop'; function ifUserSysop {

global $wgUser;

if (in_array("sysop", $wgUser->getEffectiveGroups)) { // if sysop echo 'Hello People. I am sysop.'; echo "Click Me! "; }

if($wgUser->isLoggedIn) { // is logged in echo 'Hello People. I am logged in'; }

return true;

}

This code is at the bottom of my localsettings file. Thanks so much for your time!