Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Users Browsing Formatting Details »»
Users Browsing Formatting
Version: 1.00, by Hwulex Hwulex is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-26-2002 Last Update: Never Installs: 12
 
No support by the author.

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|

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-03-2002, 04:06 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ohhh!
I'm very idiot
I'm find EXTRAS in new Instructions :lol:
Reply With Quote
  #33  
Old 06-30-2002, 07:44 AM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I make it so usergroup 8 on my board is in bold and italics too?
Reply With Quote
  #34  
Old 06-30-2002, 01:27 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a Question...

When I try and do it for "Users Browsing This Thread", I get a parse error...

Why?

Satan
Reply With Quote
  #35  
Old 06-30-2002, 01:56 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heh.. how do you find out the usergroupid? Haven't messed with it in a while.
Reply With Quote
  #36  
Old 06-30-2002, 03:01 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well...

Hover over the Usergroup in "Modify" section of "User Groups"...

The number at the end of the link is the usegroupid...

Usually :

Guest = 0
Not Logged in = 1
Registered = 2
Super Mod = 5
Mod = 7
Admin = 6

Satan
Reply With Quote
  #37  
Old 06-30-2002, 06:09 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #38  
Old 06-30-2002, 06:42 PM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Tha Rock
How can I make it so usergroup 8 on my board is in bold and italics too?
To use it with usergroup 8 as well, then use the following Replace Code instead of the one from the instructions file

Around line 697
Find the code:

PHP Code:
    if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
        
$userid $forumuser['userid'];
        
$username $forumuser['username']; 
Replace With:
PHP Code:
// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=-
    
if ($forumuser['usergroupid'] == 6) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 8) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 7) {
        
$username "<b>$forumuser[username]</b>";
    } elseif (
$forumuser['usergroupid'] == 5) {
        
$username "<b><u>$forumuser[username]</u></b>";
    } else {
        
$username $forumuser[username];
    }
// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=- 
I've set the formatting of Usergroup 8 to Bold and Italic as requested, but can be changed to whatever you want

Use this for both replacement sets.

HTH

Hwulex
Reply With Quote
  #39  
Old 06-30-2002, 06:44 PM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
Just a Question...

When I try and do it for "Users Browsing This Thread", I get a parse error...

Why?

Satan
Don't honestly know mate, have you got any other hacks installed? And did you copy+paste all code exact from the instructions.txt file?
If you're still having problems with it you could send it over to me [Email Me] and I'll take a look at it for you

Regards.

H
Reply With Quote
  #40  
Old 06-30-2002, 06:47 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll see if I can get it working again, but I replaced it with the pre-your hacked version...

If it doesnt work this time, I'll email it to you...

Satan
Reply With Quote
  #41  
Old 06-30-2002, 06:56 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Hwulex

To use it with usergroup 8 as well, then use the following Replace Code instead of the one from the instructions file

Around line 697
Find the code:

PHP Code:
    if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
        
$userid $forumuser['userid'];
        
$username $forumuser['username']; 
Replace With:
PHP Code:
// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=-
    
if ($forumuser['usergroupid'] == 6) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 8) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 7) {
        
$username "<b>$forumuser[username]</b>";
    } elseif (
$forumuser['usergroupid'] == 5) {
        
$username "<b><u>$forumuser[username]</u></b>";
    } else {
        
$username $forumuser[username];
    }
// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=- 
I've set the formatting of Usergroup 8 to Bold and Italic as requested, but can be changed to whatever you want

Use this for both replacement sets.

HTH

Hwulex

What do you mean by using it for both replacement sets? How can I do that?

Also, when I made the change in forumdisplay.php, I got the following Parse Error;

Parse error: parse error, unexpected '}' in /home/sdsym/public_html/forum/forumdisplay.php on line 759
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10523 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete