The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show forum leaders coding
I'm looking to re-order my Show Forum Leaders Page. I've included a screenshot.
Basically, that way you see it...I want it to go: Administrators Test Administrators Game Server Admins Super Moderators Moderators I had it once so it was Admin Smod Mod...but now that we have multiple groups...is there any simple way to do this? I know I'll be editing some templates...I'm not worried about that..I just need to know what coding to use. Here is the show groups coding: Code:
$stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $vbphrase[show_groups]</title> </head> <body> $header $navbar <if condition="$moderatorbits"> <!-- moderators --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="4">$vbphrase[moderators]</td> </tr> <tr> <td class="thead"> </td> <td class="thead" width="50%">$vbphrase[username]<if condition="$show['locationfield']"> / $vbphrase[location_perm]</if></td> <td class="thead" width="50%">$vbphrase[forums]</td> <td class="thead">$vbphrase[contact]</td> </tr> $moderatorbits </table> <br /> <!-- end moderators --> </if> $usergroups <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"> </td> <td>$forumjump</td> </tr> </table> $footer </body> </html> |
#2
|
||||
|
||||
It's not the template you will have to modify to change the order, I think you will have to modify the actual php page in order to change the order that the usergroups are spit out.
|
#3
|
|||
|
|||
Ew that wont be fun... So, were talking forum root stuff?
|
#4
|
||||
|
||||
No, we are talking showgroups.php stuff.
|
#5
|
|||
|
|||
I know.
That'll be a blast. You wouldn't happen to know exactly where I could find the coding to edit? Sorry for being...all over the help forum |
#6
|
||||
|
||||
If you look at that file, you will see there are just two places where there are queries to get the users. The first is for all usergroups around line 97, the other is just for the moderatorbits around line 166. I would suggest turning off the option for the moderatorbits and then applying your ORDER BY FIND_IN_SET to the first query.
|
#7
|
|||
|
|||
I got it solved.
Thanks Lynne for all of the help so far --------------- Added [DATE]1228600464[/DATE] at [TIME]1228600464[/TIME] --------------- I can't remember exactly what I've done but, I got a close enough result in the past by doing this: Code:
$stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $vbphrase[show_groups]</title> </head> <body> $header $navbar Place Red coding here <if condition="$moderatorbits"> <!-- moderators --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="4">$vbphrase[moderators]</td> </tr> <tr> <td class="thead"> </td> <td class="thead" width="50%">$vbphrase[username]<if condition="$show['locationfield']"> / $vbphrase[location_perm]</if></td> <td class="thead" width="50%">$vbphrase[forums]</td> <td class="thead">$vbphrase[contact]</td> </tr> $moderatorbits </table> <br /> <!-- end moderators --> </if> $usergroups <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"> </td> <td>$forumjump</td> </tr> </table> $footer </body> </html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|