![]() |
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| |
Here's a demo shot of what the hack looks like installed:
|
Nice addition! :) thanks for sharing!
|
Very nice :D
I've been thinking about doing this recently also, but haven't found the time. Thanks! |
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.
|
Quote:
I will Intsall when I get home from work, thanks for sharing with us :D |
fnx for sharing!
|
Quote:
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:
PHP Code:
|H| |
This doesn't screw up with version 2.2.4 does it? :p
|
is there away too make them glow?
|
Quote:
PHP Code:
P.S. - does it have to be in a table? :confused: |
Quote:
When you've installed the hack; Find PHP Code:
And replace with PHP Code:
This can of course be done to any of the $username = "$bbuserinfo[username]"; code at your discretion. I've attatched a small image to show what it looks like when applied :) |
Installed on 2.2.4 and seems to be working very nicely, thanks Hwulex :D
|
If you want it to glow, don't use the table tag. This will put the name in a new table, which will not list the names in a line, it will be broken up..
(Users Browsing this Forum: name1, name2, name3 , name 4) I believe.... |
Quote:
|
Thx you are my hero :D sl ois there a way too make it show like that on Who's Online if there is ill be over da moon
|
Yeah, Who's Online can be changed to, I haven't got time to post the changes now, I need sleep :D but I can do tomorrow ;)
[EDIT] Thinking about it Who's Online & Currently Active users already does this, unless I'm very much mistaken, which I don't think I am! I have changed my Who's Online & Active Users to display me in a different colour, but the Bold and Italics I belive have allways been there. [/EDIT] |
You're right NTLDR, "Who's Online" does already do this automatically :)
|
nice job :D
altough.. your first post.. it looks alot like my thread descriptions... jk. |
Quote:
'Tis me first hack, and yours looked eye catching :) Will suss me own layout for next time :) |
Is there a way to get it to display the Admin and Mods in a different color like the colored online users hack?
|
Yes, that's not too hard to do. You just need to alter the Admin/Mod lines like so:
PHP Code:
PHP Code:
|
Thank you very much. Looks great! BTW: Shouldn't the colors have a # before them? I found out it won't take the quotes for the font color but it accepted the number sign and worked without it too. (Shows you what I know about it, huh? :-) )
|
What about SUPERMODS???
This hacks only shows Mods and Admins different from the rest of the users, I´m I right? |
Psico, you're right!
I completely forgot about SuperMods, probably because I don't use them. I'll go alter it now :) |
|
Thanks for updating the hack :D
I was just going to modify it myself to apply the formatting to super mods ;) |
don't work update. Hwulex, please post what need replace for user who installed version 1-1.. Please
|
Quote:
PHP Code:
|
NTLDR, that only for Super Mods, but i need glow too...
|
ohhh!
I'm very idiot :( :D I'm find EXTRAS in new Instructions :) :lol: |
How can I make it so usergroup 8 on my board is in bold and italics too?
|
Just a Question...
When I try and do it for "Users Browsing This Thread", I get a parse error... Why? Satan |
heh.. how do you find out the usergroupid? :) Haven't messed with it in a while.
|
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 |
bump
|
Quote:
Around line 697 Find the code: PHP Code:
PHP Code:
Use this for both replacement sets. HTH Hwulex |
Quote:
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 |
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 |
Quote:
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 |
All times are GMT. The time now is 06:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|