Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Username Colors "Online Users" (Like colorbars) Details »
Username Colors "Online Users" (Like colorbars)
Mod Version: 2.0, by smgxtreme (Member) smgxtreme is offline
Developer Last Online: Oct 2015 I like it Show Printable Version Email this Page

vB Version: 5.0.x Rating: (4 votes - 4.75 average) Installs: 13
Released: 19 Mar 2013 Last Update: Never Downloads: 0
Not Supported Template Edits  

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:
<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:
<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:
<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:
<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>

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	users.png
Views:	1136
Size:	199.7 KB
ID:	144187  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 13 Jan 2014, 17:52
ARLreborn ARLreborn is offline
 
Join Date: Jan 2014
Apologies - it DOES work on 5.0.5 - just be sure to edit the "Online Users" Module and untick "Use Avatars"
Reply With Quote
  #17  
Old 14 Apr 2014, 01:49
WanaGo WanaGo is offline
 
Join Date: Mar 2014
Running 5.1.0 here...

Can someone help explain this mod a bit. I have made the mod and the names go bold, however the colour is all the same. How do you go about and select the colours exactly? Very new to this.

Thanks
Reply With Quote
  #18  
Old 09 Jun 2014, 20:24
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Real name: arnold
great modification, nice work
Reply With Quote
  #19  
Old 03 Jun 2016, 12:34
TeamIHPK TeamIHPK is offline
 
Join Date: Jun 2016
Real name: Tyler Erdie
What about for vbulletin 5.2.2?
Reply With Quote
  #20  
Old 22 Feb 2019, 15:08
semihcannet's Avatar
semihcannet semihcannet is offline
 
Join Date: Feb 2019
What about for vbulletin 5.4.4?
Reply With Quote
  #21  
Old 22 Feb 2019, 15:17
In Omnibus's Avatar
In Omnibus In Omnibus is online now
 
Join Date: Apr 2010
Real name: Kris
Originally Posted by semihcannet View Post
What about for vbulletin 5.4.4?
You don't need to edit templates to get usergroup colors to work.

All you need to do is to use HTML in the AdminCP Usergroups.

Username HTML Markup

First Box: <span style="color:red"> (Or whatever color you want.)

Second Box: </span>

You can also use any other HTML attribute, like <b> or <i>
Reply With Quote
  #22  
Old 22 Feb 2019, 15:24
In Omnibus's Avatar
In Omnibus In Omnibus is online now
 
Join Date: Apr 2010
Real name: Kris
But if you're insistent on using a Modification this one works.

https://vbulletin.org/forum/showthread.php?t=289034
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 21:48.

Layout Options | Width: Wide Color: