PDA

View Full Version : Request: Authority List


N9ne
06-20-2002, 04:07 PM
This hasn't been requested yet :D

Ok I know that you can go to "forum leaders" to see them, but you know like in UBB there is an authority list hack, which adds a table at the bottom of the forums listing Admins:, MegaModerators:, Moderators:

So this is my request :) if anyone can do this I will be very grateful!

Here's a screenshot to show you what I mean...

Logician
06-20-2002, 06:39 PM
not tested but should work..

enjoy..

squawell
06-20-2002, 07:08 PM
Logician it works great...

thankz.........:D:D:D:D

N9ne
06-20-2002, 08:49 PM
Thanks so much Logician! Release it in the Full Releases forum :D

Lesane
06-21-2002, 12:33 PM
It's already released by Tubedogg:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=38648

N9ne
06-21-2002, 06:03 PM
Originally posted by Lesane
It's already released by Tubedogg:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=38648

No that one shows which authorities are online...

In my post I said something that shows authorities of the board...

Lesane
06-21-2002, 06:33 PM
aah yes that's right.

Chris M
06-21-2002, 08:24 PM
Release it!

Satan

N9ne
06-21-2002, 08:58 PM
Originally posted by hellsatan
Release it!

Satan

^ he knows what he's talking about!

Oh and can people who are good with PHP help me? :(

The thread is here: http://www.vbulletin.com/forum/showthread.php?s=&threadid=48750

Logician
06-21-2002, 09:16 PM
I personally prefer NOT to release hacks I shared in requests forum because:
a) they are usually small
b) I dont use them myself
c) I dont test/debug them long
d) I dont find them appealing to many people but to requester only
e) it's hard to give support for them since you dont use it.

if you want it to be released, I'll regard the hack "appealing" and will release but frankly I still have doubts about this one. Are sure it's worth releasing?

Chris M
06-21-2002, 09:19 PM
I think it is...

Satan

N9ne
06-21-2002, 09:32 PM
I use it, hellsatan uses it, squawell uses it :D

Chris M
06-21-2002, 09:38 PM
Tha Rock - I will use it;)

Our forum got deleted by a rogue Former Webmaster, so...

But hes right - Many people would use this!:)

Satan

Logician
06-21-2002, 09:39 PM
ok will release give me sometime.. :) (and your question is answered in that thread, why didnt you asked here? lol)

Chris M
06-21-2002, 09:45 PM
Great!

Satan

N9ne
06-21-2002, 09:55 PM
YAY :) This hack will win HotM lol

Logician
06-22-2002, 05:23 AM
joking right? I bet it will not even get 10 installs in a month ;)

Logician
06-22-2002, 05:30 AM
BTW may I answer your question here instead of vbulletin.com?

I didnt post there for months and I realized that vb.com really sucks after getting used to here lol. I appreciated the vb hacks once again after I saw an unhacked site :glasses:

Anyway your answer is, you need to edit the hack code to add these lines. Check the code you'll see where to edit.

As for table design give me sometime, I'll tell you..

Smoothie
06-22-2002, 07:52 AM
Nice one Logician! A definite must install.

N9ne
06-22-2002, 08:44 AM
Originally posted by Logician
why didnt you ask in the original thread? wouldnt that be easier? :)

Add this code BEFORE:

// Post the relevant template if any anniversaries exist:

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);}

and add , after </a> like:

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>, ';}

To seperate the table, you need to change the template so that it's a html table and then put the variable $authority_list outside the existing template in template forumhome/forumhome


In the first step, I cannot find: // Post the relevant template if any anniversaries exist

in index.php...

Logician
06-22-2002, 09:19 AM
they must be inserted before eval("\$authority_list = \"".gettemplate('authority_list')."\";");

N9ne
06-22-2002, 09:53 AM
Ok it works, thanks :)

Onto separating it from the rest...I don't know much about tables, what's the code I put in the authority_list template, and the forumhome template?

Logician
06-22-2002, 09:58 AM
a) Replace template authority_list like this:

<table cellpadding="{tableouterborderwidth}" cellspacing="1" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr id="cat">

<td bgcolor="{categorybackcolor}" colspan="6<normalfont color="{categoryfontcolor}"><normalfont><b>Authority List </b>: $totalmoderators Authorites in total</normalfont><normalfont color="{categoryfontcolor}"></td>
</tr>
<tr>

<td bgcolor="{firstaltcolor}" colspan="6"><smallfont><b><u>Site Admins</b></u>: $siteadmins<br><b><u>Super Moderators:</b></u>: $supermoderators<br><b><u>Board Moderators</b></u>: $boardmoderators</smallfont></td>
</tr></table>

b) forumhome/forumhome template find :


$birthdaybits
</table>
</td></tr></table>

(That's the original text before we changed)

And after that add:

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
$authority_list</td></tr></table>

I guess it's what you want.

Logician
06-22-2002, 10:12 AM
ok released upon request: https://vborg.vbsupport.ru/showthread.php?s=&threadid=40143

Enjoy..

N9ne
06-22-2002, 10:16 AM
Thanks :)

But the part where you separate it from the rest of the forums is a lot simpler, I figured it out myself because the one you gave didn't work...

in forumhome template, find $authority_list and add before it...

</table>
</td></tr></table><br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">

Chris M
06-22-2002, 11:08 AM
Cool!

Satan