vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't find this hack!! (https://vborg.vbsupport.ru/showthread.php?t=40408)

N9ne 06-28-2002 03:12 PM

Can't find this hack!!
 
I'm looking for the hack that shows admins in bold and italics, supermods in bold and mods in bold in forumdisplay...

ie. you go to a forum, and they have (Currently browsing: etc) but there is hack to have admins in bold, etc on there :)

I think Tubedogg made it, not sure though, so can anyone point me to the hack :)

Xenon 06-28-2002 03:23 PM

don't know that there is such a hack, but should be easy to do:

find:
PHP Code:

$forumusers $DB_site->query("SELECT username, invisible, userid
                        FROM user
                        WHERE  inforum = 
$foruminfo[forumid]
                            AND lastactivity > 
$datecut
                            AND lastvisit <> lastactivity"
);
    while (
$forumuser $DB_site->fetch_array($forumusers)) {
        if ((!
$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
            
$userid $forumuser['userid'];
            
$username $forumuser['username'];
            if (
$forumuser['invisible'] == 1) { // Invisible User but show to Admin
                
$invisibleuser '*';
            } else {
                
$invisibleuser '';
                 }
            eval(
"\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
            
$comma ', ';
        } 


replace with:

PHP Code:

$forumusers $DB_site->query("SELECT username, invisible, userid,usergroupid
                        FROM user
                        WHERE  inforum = 
$foruminfo[forumid]
                            AND lastactivity > 
$datecut
                            AND lastvisit <> lastactivity"
);
    while (
$forumuser $DB_site->fetch_array($forumusers)) {
        if ((!
$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
            
$userid $forumuser['userid'];
if (
$forumuser['usergroupid'] == and $highlightadmin) {
        
$username "<b><i>$forumuser[username]</i></b>";
            } else if ((
$mod["$userid"] or $forumuser['usergroupid'] == 5) and $highlightadmin) {
                
$username "<b>$forumuser[username]</b>";
            } else if (
$forumuser['userid'] == and $highlightadmin) {
                
$username "<b>$forumuser[username]</b>";
            } else {
                
$username $forumuser['username'];
            }            
            if (
$forumuser['invisible'] == 1) { // Invisible User but show to Admin
                
$invisibleuser '*';
            } else {
                
$invisibleuser '';
                 }
            eval(
"\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
            
$comma ', ';
        } 


N9ne 06-28-2002 03:34 PM

What file is that? Forumdisplay.php?

Xenon 06-28-2002 03:37 PM

lool, sorry *gg*
yes forumdisplay

N9ne 06-29-2002 02:42 PM

Just tried this hack, didn't work :( everyone's still in normal plain text...

Also, if anyone does re-write this hack, please could you change it so you have userid 8 in bold and italics too.

I added another usergroup and they are to be in bold and italics :)

Xenon 06-29-2002 03:24 PM

should work now!

be sure have enabled highlight admin

Chris M 06-29-2002 04:03 PM

There is a hack...

Search for something like : Users Browsing Forums...

Satan

N9ne 06-30-2002 06:41 AM

Xenon, the hack still doesn't work :( but I found the hack: https://vborg.vbsupport.ru/showthrea...light=Browsing

Xenon 06-30-2002 12:03 PM

use it ;)


All times are GMT. The time now is 06:33 PM.

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.01725 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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