08-11-2000, 05:07 PM
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.
After<tr>
<td><b>memberlisttopposters</b></td>
<td><input type=\"text\" size=\"35\" name=\"newoption[memberlisttopposters]\" value=\"$memberlisttopposters\"></td>
</tr>
<tr><td colspan=2>On the 'Display top x posters' , this option allows you to specify a value for x.<br></td></tr>
<tr><td colspan=2><hr></td></tr>in options.php in the admin/ directory, add:<tr><td colspan=2><hr></td></tr>
<tr><td colspan=2><b><u>MemberList Admin Hack</u></b> by Peter E. Humphries
(<a href=\"mailto:peh@phumphries.com\">Email for Help and suggestions</a>)</td></tr>
<tr>
<td><b>memberlisthideadmin</b></td>
<td>Yes<input type=\"radio\" name=\"newoption[memberlisthideadmin]\" ".iif($memberlisthideadmin==1,"checked","")." value=\"1\"> No <input type=\"radio\" name=\"newoption[memberlisthideadmin]\" ".iif($memberlisthideadmin==0,"checked","")." value=\"0\"></td>
</tr>
<tr><td colspan=2>This option allows you to specify that Admin group members should not appear in the Member List.<br></td></tr>
<tr><td colspan=2><hr></td></tr>
<tr>
At line 25 of memberlist.php you will find:$condition="1=1";setting up the WHERE clause. After that line but before the if statement add:// exclude the Admin group?
if ($memberlisthideadmin==1) {
$condition.=" AND usergroupid!=6";
}
This keeps the user name of your admin account(s) out of the public eye, especially if you use "Admin" which appears first!
After<tr>
<td><b>memberlisttopposters</b></td>
<td><input type=\"text\" size=\"35\" name=\"newoption[memberlisttopposters]\" value=\"$memberlisttopposters\"></td>
</tr>
<tr><td colspan=2>On the 'Display top x posters' , this option allows you to specify a value for x.<br></td></tr>
<tr><td colspan=2><hr></td></tr>in options.php in the admin/ directory, add:<tr><td colspan=2><hr></td></tr>
<tr><td colspan=2><b><u>MemberList Admin Hack</u></b> by Peter E. Humphries
(<a href=\"mailto:peh@phumphries.com\">Email for Help and suggestions</a>)</td></tr>
<tr>
<td><b>memberlisthideadmin</b></td>
<td>Yes<input type=\"radio\" name=\"newoption[memberlisthideadmin]\" ".iif($memberlisthideadmin==1,"checked","")." value=\"1\"> No <input type=\"radio\" name=\"newoption[memberlisthideadmin]\" ".iif($memberlisthideadmin==0,"checked","")." value=\"0\"></td>
</tr>
<tr><td colspan=2>This option allows you to specify that Admin group members should not appear in the Member List.<br></td></tr>
<tr><td colspan=2><hr></td></tr>
<tr>
At line 25 of memberlist.php you will find:$condition="1=1";setting up the WHERE clause. After that line but before the if statement add:// exclude the Admin group?
if ($memberlisthideadmin==1) {
$condition.=" AND usergroupid!=6";
}
This keeps the user name of your admin account(s) out of the public eye, especially if you use "Admin" which appears first!