View Full Version : Display Board Authorities in Forum Home
Logician
06-21-2002, 10:00 PM
This small hack displays forum authorities (Site Admins/Super Moderators/Moderators) in your forum home page under today's birthdays. It's like a "showgroups.php" alternative. Anyway I guess the screenshot (https://vborg.vbsupport.ru/attachment.php?s=&postid=263662) tells better than me.
To have online authorities list check Tubedogg's hack here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=38648). Tubedogg's hack lists the online authorities only while this one lists them all.
The hack works in all vb versions I know and easy to install..
This hack is requested by The Rock in this thread (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40074) and thx to The Rock, Squawell, Hellsatan and Smoothie for testing it and convincing me to release it although I dont use the hack myself. :)
Enjoy..
Logician
Great hack, been wanting this for a while, thanks for releasing it! Everyone install this hack NOW lol
Im best friends with the guy that developed this for UBB, i was looking into doing it myself but you saved me some time, dank
Can I just add something...
To separate the authority list from the bottom of your forums, open your forumhome template, find $authority_list and add before it, the following code...
</table>
</td></tr></table><br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" width="95%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
And if you want to separate users by commas in the authority list...credit to Logician...
do the following...
open root/index.php
find
eval("\$authority_list = \"".gettemplate('authority_list')."\";");
add the following before it
if ($siteadmins) {$siteadmins=substr($siteadmins,0,strlen($siteadmi ns)-2);}
if ($supermoderators) {$supermoderators=substr($supermoderators,0,strlen ($supermoderators)-2);}
if ($boardmoderators) {$boardmoderators=substr($boardmoderators,0,strlen ($boardmoderators)-2);}
Then find in root/index.php (after doing the hack of course...)
if ($otorite[usergroupid]==6) {$siteadmins.='<a href="member.php?s=&action=getinfo&userid='.$otorite[userid].'">'.$otorite[username].'</a> ';}
if ($otorite[usergroupid]==5) {$supermoderators.='<a href="member.php?s=&action=getinfo&userid='.$otorite[userid].'">'.$otorite[username].'</a> ';}
if ($otorite[usergroupid]==7) {$boardmoderators.='<a href="member.php?s=&action=getinfo&userid='.$otorite[userid].'">'.$otorite[username].'</a> ';}
And change it all to
if ($otorite[usergroupid]==6) {$siteadmins.='<a href="member.php?s=&action=getinfo&userid='.$otorite[userid].'">'.$otorite[username].'</a>, ';}
if ($otorite[usergroupid]==5) {$supermoderators.='<a href="member.php?s=&action=getinfo&userid='.$otorite[userid].'">'.$otorite[username].'</a>, ';}
if ($otorite[usergroupid]==7) {$boardmoderators.='<a href="member.php?s=&action=getinfo&userid='.$otorite[userid].'">'.$otorite[username].'</a>, ';}
I hope that helped some people :)
squawell
06-22-2002, 10:35 AM
YES....i love this hack......
great job Logcian....................:D:D:D:D
Chris M
06-22-2002, 11:08 AM
Great!!!:)
Satan
Logician
06-22-2002, 02:53 PM
Originally posted by Tha Rock
And if you want to separate users by commas in the authority list...credit to Logician...
already included in the instructions. ;)
Originally posted by Logician
already included in the instructions. ;)
ok ;) good work on the hack, and everyone get installing!!!
Dark Shogun
10-03-2002, 03:26 AM
How can you add another usergroup because when I added one it gave me a sql error.
Dark Shogun
Dark Shogun
10-03-2002, 04:40 AM
I fixed it and added another usergroup. :) Hack works great by the way.
Dark Shogun
Triality159
06-20-2003, 07:45 PM
hello i couldnt find
-- cut---
// get newest member
---
in my index.php
kushtiUK
06-21-2003, 08:56 AM
Yesterday at 09:45 PM Triality159 said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=411148#post411148)
hello i couldnt find
-- cut---
// get newest member
---
in my index.php
don't look for the --cut-- just look for
// get newest member
The "cut" part is just to show the start and end part of the instructions.
Triality159
06-21-2003, 10:27 AM
oh lol i feel stupid....thanks man!
Works great! *clicks install*
Triality159
06-24-2003, 09:46 PM
it doesnt seem to refresh....i add more mods but no more mods show up....how do i get the new moderators listed?
Logician
06-25-2003, 07:02 AM
if you didnt create a new special usergroup for your new mods (that is your mods are in default usergroups with ID 5 or 7), it should refresh .
Triality159
06-26-2003, 03:48 AM
how do you do this? i dont believe i did that
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.