Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Display Board Authorities in Forum Home Details »»
Display Board Authorities in Forum Home
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-21-2002 Last Update: Never Installs: 18
 
No support by the author.

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 tells better than me.

To have online authorities list check Tubedogg's hack here. 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 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-22-2002, 10:17 AM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, been wanting this for a while, thanks for releasing it! Everyone install this hack NOW lol
Reply With Quote
  #3  
Old 06-22-2002, 10:23 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 06-22-2002, 10:25 AM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...

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

Code:
eval("\$authority_list = \"".gettemplate('authority_list')."\";");
add the following before it

Code:
if ($siteadmins) {$siteadmins=substr($siteadmins,0,strlen($siteadmins)-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...)

PHP Code:
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

PHP Code:
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
Reply With Quote
  #5  
Old 06-22-2002, 10:35 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YES....i love this hack......

great job Logcian....................
Reply With Quote
  #6  
Old 06-22-2002, 11:08 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great!!!

Satan
Reply With Quote
  #7  
Old 06-22-2002, 02:53 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #8  
Old 06-22-2002, 11:19 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician

already included in the instructions.
ok good work on the hack, and everyone get installing!!!
Reply With Quote
  #9  
Old 10-03-2002, 03:26 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can you add another usergroup because when I added one it gave me a sql error.

Dark Shogun
Reply With Quote
  #10  
Old 10-03-2002, 04:40 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed it and added another usergroup. Hack works great by the way.

Dark Shogun
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13970 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete