vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=259)
-   -   Forum Home Enhancements - Username Colors "Online Users" (Like colorbars) (https://vborg.vbsupport.ru/showthread.php?t=296278)

smgxtreme 03-18-2013 11:00 PM

Username Colors "Online Users" (Like colorbars)
 
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 03-19-2013 11:31 AM

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

smgxtreme 03-19-2013 03:08 PM

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 03-19-2013 07:07 PM

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 03-19-2013 09:45 PM

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

HTML Code:

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

smgxtreme 03-21-2013 01:46 AM

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

emresozen 03-21-2013 04:25 PM

Quote:

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

HTML Code:

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

teşekk?rler tilkibey:)Trafikci258

TilkiBey 03-22-2013 09:03 AM

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 07-15-2013 07:23 PM

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

smgxtreme 08-08-2013 05:42 AM

Updated and it works as of 08/07/2013


All times are GMT. The time now is 06:16 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.01140 seconds
  • Memory Usage 1,739KB
  • 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_html_printable
  • (8)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