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)
-   -   Users Browsing Formatting (https://vborg.vbsupport.ru/showthread.php?t=37914)

Hwulex 04-26-2002 10:00 PM

Users Browsing Formatting
 
This may well of been done before, but I did look and couldn't find anything.

This small (ok, teeny) hack changes the way that usernames are displayed in [Users Browsing this Forum:]
on the forum display page.
I'd always wondered why vB had made Moderators names in bold, and Admininstrators names bold italic on the front page
(Who's Online) but no-where else where it applied, so I altered the forumdisplay.php file so that Mods and Admin were
always bold (and italic) for "Users Browsing" too.

To see a demo of this hack working, please visit
http://www.hwulex.co.uk/vB/forumdisplay.php?forumid=2

NB: If you do install this hack, please click on the INSTALL button. You will receive updates in your email whenever I add new features to it.
Also post a reply with your comments, they are appreciated.

Tested on: vBulletin 2.2.5
File to modify: forumdisplay.php (also showthread.php if using with FireFly's hack)
Estimated Install Time: 2 minutes

HACK UPDATES
Version 1.1

???????????
- Now includes instructions to use with FireFly's Users Browsing This Thread hack.

Version 1.2
???????????
- Altered hack to now work with the Super Moderator user group as well.
- Added instructions for Glow Text and Colours


|H|

Hwulex 04-27-2002 01:46 AM

Here's a demo shot of what the hack looks like installed:

JulianD 04-27-2002 02:20 AM

Nice addition! :) thanks for sharing!

Velocd 04-27-2002 03:18 AM

Very nice :D
I've been thinking about doing this recently also, but haven't found the time. Thanks!

Velocd 04-27-2002 03:51 AM

Damnit, this hack won't doesn't want to work. I modified the code and everything but for some reason the formatting is not being applied, it still shows up as normal font. I setted the usergroup id's to their correct value also.

NTLDR 04-27-2002 06:01 AM

Quote:

Originally posted by Velocd
I've been thinking about doing this recently also, but haven't found the time.
Same here, I've been thinking about trying to change that to ;)

I will Intsall when I get home from work, thanks for sharing with us :D

Floris 04-27-2002 07:47 AM

fnx for sharing!

Hwulex 04-27-2002 09:47 AM

Quote:

Originally posted by Velocd
Damnit, this hack won't doesn't want to work. I modified the code and everything but for some reason the formatting is not being applied, it still shows up as normal font. I setted the usergroup id's to their correct value also.
Hmm, not sure why it's not working for ou Velocd. I've installed it on 3 different copies here and works fine.
Did you definately do the first line, else it won't work. I know because this is why the hack wouldn't work to start with :p

Around line 691
Find the code:

PHP Code:

$forumusers $DB_site->query("SELECT username, invisible, userid 

And replace with:
PHP Code:

$forumusers $DB_site->query("SELECT username, invisible, userid, usergroupid 

If it still doesn't work, you could send me your forumdisplay.php file to vB_Hacks@Hwulex.com and I'll gladly take a look for you :)

|H|

John 04-27-2002 09:57 AM

This doesn't screw up with version 2.2.4 does it? :p

Crazy Mofo 04-27-2002 10:29 AM

is there away too make them glow?


All times are GMT. The time now is 11:20 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.02496 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete