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)
-   -   Forum Leaders (vB3 Style) (https://vborg.vbsupport.ru/showthread.php?t=57237)

Andrew111888 09-18-2003 10:00 PM

Forum Leaders (vB3 Style)
 
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:
Code:

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

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

Code:

        } 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.


All times are GMT. The time now is 05:51 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.02097 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete