vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   More than 3 UserGroups? (https://vborg.vbsupport.ru/showthread.php?t=22476)

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/showt...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>Administra tors</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

1 Attachment(s)
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!


All times are GMT. The time now is 10:01 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.01286 seconds
  • Memory Usage 1,738KB
  • 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
  • (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