View Single Post
  #14  
Old 06-15-2005, 10:10 PM
 
maineiac maineiac is offline
 

Member
  
Join Date: Jun 2005
Location: USA
Posts: 29
 

Default

Quote:
Now I run into the problem of the "In this section" dialog box under "Users Management". I want to hide some of those links - in particular the ability to create new admins!
Solved by surrounding the links I do not wish this admin level to see with
Code:
if ($login == "master"){}
in admin/users_tools.php. For example:
Code:
if ($login == "master"){ if (empty($active_modules["Simple_Mode"])) { $dialog_tools_data["left"][] = array("link" => "user_add.php?usertype=A", "title" => func_get_langvar_by_name("lbl_create_admin_profile")); $dialog_tools_data["left"][] = array("link" => "user_add.php?usertype=P", "title" => func_get_langvar_by_name("lbl_create_provider_profile")); } else { $dialog_tools_data["left"][] = array("link" => "user_add.php?usertype=P", "title" => func_get_langvar_by_name("lbl_create_admin_profile")); } }
__________________
maineiac

x-cart gold v4.0.18
x-cart gold v4.1.8
Reply With Quote