PDA

View Full Version : Forum Leaders (vB3 Style)


Andrew111888
09-18-2003, 10:00 PM
This is my first hack, so please be patient with me.:)

This hack will make your forum leaders (showgroups.php) look like the one found in vB3. ( Example here: https://vborg.vbsupport.ru/showgroups.php )

A friend helped me code the part where the moderated forums are listed, so please thank him as well.:) (I did everything else)

This hack adds 1 query to showgroups.php as it must call for usergroupid.

This has been tested in 2.2.9 but I imagine it works in any 2.2.x forum.

Enjoy! And don't forget to click install if you like it! :)


NOTE: This hack is no longer "vB3" style, as the table does not look the same (it was made to represent usergroup ID's in forum leaders).

If you would like me to code the hack to accurately show the new vB3 layout, ask me and I will.

Marzas
09-20-2003, 03:08 AM
nice, *marzas clicks install*

Andrew111888
09-20-2003, 03:32 AM
Thanks:)

SmEdD
09-20-2003, 05:16 AM
Not bad for a first hack ;) Keep it up dude!

Andrew111888
09-20-2003, 12:32 PM
Thanks for the encouragment guys!:)

assassingod
09-20-2003, 12:37 PM
Nice:)

Andrew111888
11-03-2003, 11:32 PM
Ugh, sorry guys, the last fix was incorrect.

Here's the fix to fix everything

Create a template called showgroups_normalbit with the following info:
<tr>
<td bgcolor="$backcolor" nowrap><normalfont>$onlinestatus</normalfont></td>
<td bgcolor="$backcolor" nowrap width=100%><b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]"><normalfont>$user[username]</normalfont></a></b><br />$user[avatar]</td>
<td bgcolor="$backcolor" nowrap><normalfont>$user[location]</normalfont></td>
<td bgcolor="$backcolor" nowrap><normalfont>$sendpmlink</normalfont></td>
</tr>

In showgroups.php find
} else if ($usergroupid == 9) { // Mods
eval("\$modinfo .= \"".gettemplate("showgroups_modbit")."\";");
$modgrouptitle=$user['title'];
} else {
if (!$grouptitle[$usergroupid]) {
$grouptitle[$usergroupid] = $user['title'];
}
eval("\$groupinfo[$usergroupid] .= \"".gettemplate("showgroups_bit")."\";");
}
}

and replace with:

} else if ($usergroupid == 9) { // Mods
eval("\$modinfo .= \"".gettemplate("showgroups_modbit")."\";");
$modgrouptitle=$user['title'];
} else {
if (!$grouptitle[$usergroupid]) {
$grouptitle[$usergroupid] = $user['title'];
}
eval("\$groupinfo[$usergroupid] .= \"".gettemplate("showgroups_normalbit")."\";");
}
}

Zip updated. Again, sorry guys.