PDA

View Full Version : Show forum leaders coding


Mahar
12-06-2008, 06:51 PM
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:
$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">&nbsp;</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%">&nbsp;</td>
<td>$forumjump</td>
</tr>
</table>

$footer
</body>
</html>

I believe that is the correct one.

Lynne
12-06-2008, 07:14 PM
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.

Mahar
12-06-2008, 07:16 PM
Ew that wont be fun... So, were talking forum root stuff?

Lynne
12-06-2008, 07:20 PM
No, we are talking showgroups.php stuff.

Mahar
12-06-2008, 07:23 PM
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 ;)

Lynne
12-06-2008, 07:32 PM
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.

Mahar
12-06-2008, 07:34 PM
I got it solved.

Thanks Lynne for all of the help so far :)

--------------- Added 1228600464 at 1228600464 ---------------

I can't remember exactly what I've done but, I got a close enough result in the past by doing this:

$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">&nbsp;</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%">&nbsp;</td>
<td>$forumjump</td>
</tr>
</table>

$footer
</body>
</html>

Find the coding $usergroups and place it under the $navbar code....That'll make it at least Administrators, Super Moderators, Moderators. :)