vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=296278

Username Colors "Online Users" (Like colorbars)
by smgxtreme
19 Mar 2013 00:55

1 Attachment(s)
Like the other modifications for "usergroup colors" I could not get any working on current version.

Here is a template edit and it does work.
Style Manager> Style> Edit Templates> Widget Templates> widget_onlineusers

5.0.3 to 5.0.4:
Search for:
Quote:

<a href="{vb:url 'profile', {vb:raw onlineUser}}">{vb:raw onlineUser.username}</a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp;</vb:if>
and replace with:
Quote:

<p style="font-weight: bold;">
<a href="{vb:url 'profile',{vb:raw onlineUser}}"><vb:if condition="!empty($user['musername'])">{vb:raw onlineUser.musername}<vb:else />{vb:raw user.username}</vb:if></a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp</vb:if></p>
Prior to 5.0.3 use this:
Search for:
Quote:

<a href="{vb:url 'profile', {vb:raw user}}">{vb:raw user.username}</a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp</vb:if>
and replace with:
Quote:

<p style="font-weight: bold;">
<a href="{vb:url 'profile', {vb:raw user}}"><vb:if condition="!empty($user['musername'])">{vb:raw user.musername}<vb:else />{vb:raw user.username}</vb:if></a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp</vb:if></p>

doctorsexy 19 Mar 2013 11:31

Works well... thanks ... now if someone would do something to show spiders

smgxtreme 19 Mar 2013 15:08

I actually just made html color "groups" in another block below it.
Was trying to add to the code but html kept breaking it.

I'll try and work on it later.

Thanks for your reply.

smgxtreme 19 Mar 2013 19:07

1 Attachment(s)
Ok, I was able to add the groups by once again editing the widget_onlineusers

Look for:
Quote:

<p>{vb:rawphrase there_are_x_online, {vb:raw onlineUserCounts.total}} {vb:rawphrase x_members_and_y_guests, {vb:raw onlineUserCounts.members}, {vb:raw onlineUserCounts.guests}}.</p>
After add:
Quote:

<b><font color="#ff3300">Example</font>&nbsp•&nbsp
<font color="#ff0a0a">Second Example</font>&nbsp•&nbsp
<font color="#33ff00">Third Example</font>&nbsp•&nbsp
</b><br><br>
If you don't want it there feel free to move around until you find the right spot.

Also, correct me if I did html syntax wrong please, I can use any help I can get too. :)

TilkiBey 19 Mar 2013 21:45

your codes will give w3 and last comma problem
use these codes


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


smgxtreme 21 Mar 2013 01:46

Thank you for your code, I will update it above.
Thanks again!

emresozen 21 Mar 2013 16:25

Quote:

Originally Posted by TilkiBey (Post 2411044)
your codes will give w3 and last comma problem
use these codes


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

teşekkürler tilkibey:)Trafikci258

TilkiBey 22 Mar 2013 09:03

Quote:

Originally Posted by smgxtreme (Post 2411311)
Thank you for your code, I will update it above.
Thanks again!

hmm
where is the ending of p tag?
w3 error w3 error w3 error

JakeSheppard 15 Jul 2013 20:23

what do i need to change in 5.0.3? because it doesnt work, and i dont know the variables....

smgxtreme 08 Aug 2013 06:42

Updated and it works as of 08/07/2013

Huy Hoàng 04 Sep 2013 02:06

It does not work with version vbb 5.0.4?

http://www.myalbum.vn/GroteFoto-VHGBZAAO.jpg

Luis 18 Sep 2013 08:16

Quote:

Originally Posted by smgxtreme (Post 2411028)
Ok, I was able to add the groups by once again editing the widget_onlineusers

Look for:

After add:

If you don't want it there feel free to move around until you find the right spot.

Also, correct me if I did html syntax wrong please, I can use any help I can get too. :)

good job smg ... the legend groups works but Username Colors "Online Users" wont work on 5.0.4 ... anyway i have a quick request ... is possible to separate online staff and users online?
(possibly keeping the image of the avatar,and use only username colors on mouse on the avatar) sorry for bad english :(

YuGiMoTo 18 Oct 2013 13:18

Is this suitable for 5.0.5?

fusiion 06 Dec 2013 20:29

Works on 5.0.5 just tried it. :)

ARLreborn 13 Jan 2014 15:19


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Doesnt work for vB 5.0.5


All times are GMT. The time now is 22:52.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.