vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Display Board Authorities in Forum Home (https://vborg.vbsupport.ru/showthread.php?t=40143)

Logician 06-21-2002 10:00 PM

Display Board Authorities in Forum Home
 
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

N9ne 06-22-2002 10:17 AM

Great hack, been wanting this for a while, thanks for releasing it! Everyone install this hack NOW lol

Brad 06-22-2002 10:23 AM

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

N9ne 06-22-2002 10:25 AM

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 :)

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

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

N9ne 06-22-2002 11:19 PM

Quote:

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


All times are GMT. The time now is 11:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01025 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete