The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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 Code:
<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> Code:
<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> Code:
$condition="1=1"; Code:
// exclude the Admin group?
if ($memberlisthideadmin==1) {
$condition.=" AND usergroupid!=6";
}
Show Your Support
|
|||||||||||||||||||||||||
![]() |
|
|