PDA

View Full Version : Hide Admin(s) on Member List Hack


phumphries
10 Aug 2001, 17:12
This is an update to a 1.1.3 hack that I did a while back.

I added a bit of code to memberlist.php to hide members of the Admin user group (group 6). I toyed with the idea of hiding users based on the invisible tag, but decided that the two functions are different.

Save the attached file, hideadmin.php, in your admin directory. Run it from your web browser to add the option to your Control Panel Options page. Delete the file, hideadmin.php. Then go into your Control Panel, into the Change Options section, and save the options (the memberlisthideadmin variable will be set to "Yes").

At line 34 of memberlist.php you will find:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

setting up the WHERE clause. After that line but before the if statement add:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

This keeps the user name of your admin account(s) out of the public eye, especially if you use "Admin" which appears first!