View Full Version : More than 3 UserGroups?
funkymonkey
07-10-2001, 10:49 PM
On my site team page, i have the hack that views the admin, supermoderators and moderators, however i'm really stuck on how to make more usergroups?
If you could please help i'd be very grateful.
Thanks,
FM
Jakeman
07-10-2001, 10:53 PM
is that Kier's showmods hack? i'm using that. I am using it to display admins, mods, supermods, and my clan user group on a separate page. you have to mod the scripts a bit. let me know if it's Kier's showmods hack. if it is i can help you out.
and this should prolly be in the hacks forum.
funkymonkey
07-10-2001, 10:57 PM
Yes it's his hack :)
Your help would be much appreciated.
Jakeman
07-10-2001, 11:03 PM
cool, i'll look at my implementation tonight and post instructions here.
for your reference, i found Kier's thread for posting this hack: http://www.vbulletin.com/forum/showthread.php?s=&threadid=11425
if you go to my forums @ http://www.mac-gamer.com/forum/ you can see two links at the top: mac clan and staff. these are both using the same hack but I uploaded the showmods script under different names and edited them to use different templates.
funkymonkey
07-10-2001, 11:04 PM
Great thanks man, look forward to your reply. :)
Here's the showmoderators bit i have if it's any help.
htmldoctype}
<HTML>
<HEAD><TITLE>$bbtitle Administration and Moderators</title>
$headinclude
</head>
<body>
$header
<!-- breadcrumb -->
<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr>
<td width="100%"><br><center><normalfont><b>My Boards</b></normalfont></TD></tr></table>
<!-- /breadcrumb -->
<br><br>
<table width="95%" align="center"><tr><td>
<table cellpadding=0 cellspacing=0 border=0 bgcolor="{tablebordercolor}" align="center" width=100%><tr><td>
<table border="0" cellpadding="4" cellspacing="1" width=100%>
<tr bgcolor="{tableheadbgcolor}">
<td width="100%" colspan="4"><normalfont color="{tableheadtextcolor}"><B><center>Administrators</B></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan=2><smallfont>Username</smallfont></td>
<td bgcolor="{firstaltcolor}" colspan="2"><smallfont>Location</smallfont></td>
</tr>
$adminbits
</table>
</td></tr></table>
<br><br>
<table cellpadding=0 cellspacing=0 border=0 bgcolor="{tablebordercolor}" align="center" width=100%><tr><td>
<table border="0" cellpadding="4" cellspacing="1" width=100%>
<tr bgcolor="{tableheadbgcolor}">
<td width="100%" colspan="4"><normalfont color="{tableheadtextcolor}"><center><B>Super Moderators</B></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan=2><smallfont>Username</smallfont></td>
<td bgcolor="{firstaltcolor}" colspan="2"><smallfont>Location</smallfont></td>
</tr>
$supermodbits
</table>
</td></tr></table>
<br><br>
<table cellpadding=0 cellspacing=0 border=0 bgcolor="{tablebordercolor}" align="center" width=100%><tr><td>
<table border="0" cellpadding="4" cellspacing="1" width=100%>
<tr bgcolor="{tableheadbgcolor}">
<td width="100%" colspan="5"><normalfont color="{tableheadtextcolor}"><B><center>Moderators</B></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan=2><smallfont>Username</smallfont></td>
<td bgcolor="{firstaltcolor}"><smallfont>Forums</smallfont></td>
<td bgcolor="{firstaltcolor}" colspan="2"><smallfont>Location</smallfont></td>
</tr>
$moderatorbits
</table>
</td></tr></table>
</td></tr></table>
<p align="center">$forumjump</p>
$footer
</body>
</html>
Wayne Luke
07-10-2001, 11:27 PM
I moved this to the Hacking forum because hacks are not supported by the vBulletin team (even if a team member writes them).
Jakeman
07-11-2001, 03:08 AM
see attachment, i wrote up a few instructions in a file in there that explain how to do what i did with the showmods hack. post here if you have problems.
funkymonkey
07-11-2001, 08:34 PM
Thanks Jakeman.
Have an alcoholic beverage on me. :D
It's just you are talking about adding a new usergroup to the staff page. In your case the staffmoderators_staff. The thing is im not sure if thats the part your talking about as i seem to find only your members page having the modifications?
Jakeman
07-11-2001, 10:58 PM
i just "duplicated" the showmoderators template and added _staff on the end. Then pointed one of the php files to the _staff template. the clan.php file is pointing to the default showmoderators template. in that default showmoderators template I took out all the html for displaying the admins and mods and used the table I built for displaying the clan. I think i used the $clanbits variable in that template. Kier walked me through how to add the functionality into the php file, then it's all about the templates.
i'm confusing myself now. :p
funkymonkey
07-12-2001, 07:20 AM
No i can assure you you're not. It was just my post before erm...well sucked in terms of grammar. Apologies, but after a few alterations i finally got it. :)
Thanks for all your help Jakeman, i really appreciate it!
Jakeman
07-12-2001, 07:22 AM
cool!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.