kennethpoulsen.dk

Remove the Control Panel
A nice hack to remove the Control Panel from the menu by nikenl at the SourceForge Forum

Changes in User.php:

function userMenu(){

$template["MODULES"] = $GLOBALS["core"]->moduleLink($_SESSION["translate"]->it("Control Panel"), "controlpanel");
$template["LOGOUT"] = $GLOBALS["core"]->moduleLink($_SESSION["translate"]->it("Log Out"), "users", array("norm_user_op"=>"logout"));
$template["HOME"] = $GLOBALS["core"]->moduleLink($_SESSION["translate"]->it("Home"));
if ($this->deity){
return $GLOBALS["core"]->processTemplate($template, "users", "usermenus/Default.tpl");}

else{
return $GLOBALS["core"]->processTemplate($template, "users", "usermenus/user.tpl");}

}

Make a new template

Then I make my own template and put it in mod/users/templates/usermenus/.

My template for User (none admin's):

Code snippet

See the full thread at the SourceForge phpWS Help Forum
Article Manager module by by George! Software.

Valid XHTML 1.0!