Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2015, 03:55 PM
iZefi10 iZefi10 is offline
 
Join Date: Jul 2013
Location: Lancashire, United Kingdo
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to customise the username colour on showgroups.

Good day folks.

So I have installed a plugin that basically lets you set the colour of your username based on a hex code you put in a profile field.

The problem I have is, this colour does not show on showgroups.php or in the members online boxes at the bottom of the page, if the usergroup the profile field is based off is set to default display group.

If you have any ideas or bits of code on how I can basically do this:

If member on showgroups is in usergroup X and has #XXXXXX in field then display username as #XXXXXX (whatever is in field)

I appreciate all support you can offer.
Reply With Quote
  #2  
Old 03-19-2015, 04:49 PM
greigeh greigeh is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd need a better/more advanced plugin to execute such function, it can't be done through a simple template edit or what not. Go to the coder of your original plugin and see if they can update it for you.
Reply With Quote
  #3  
Old 03-19-2015, 08:12 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Joe, I would uninstall that plugin and edit each usergroup.

Select any usergroup, on the forth section down, Username HTML Markup.

You will see two input boxes.

In the first box, add: <font color="#FF0000">
In the second box, add: </font>

Use this on every usergroup changing the color code for each.
Colored user names will now show colored everywhere.

If you want a group to have bold font use the following:
In the first box, add: <b><font color="#FF0000">
In the second box, add: </font></b>
Reply With Quote
  #4  
Old 03-20-2015, 12:37 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
Hello Joe, I would uninstall that plugin and edit each usergroup.

Select any usergroup, on the forth section down, Username HTML Markup.

You will see two input boxes.

In the first box, add: <font color="#FF0000">
In the second box, add: </font>

Use this on every usergroup changing the color code for each.
Colored user names will now show colored everywhere.

If you want a group to have bold font use the following:
In the first box, add: <b><font color="#FF0000">
In the second box, add: </font></b>
Yeah pretty much what I was thinking you can also use span tags as well in those two same places to apply CSS to usernames like this:

First box: <span style="color:red;font-weight:bold;font-style:italic;">

Second box: </span>

Using CSS is helpful if you want to do more than bold, color, italicize, or other basic things you use with just using the <font> tag. CSS makes it where its much more open and gives you more freedom for the style of the names and how the appear on your site.
Reply With Quote
Благодарность от:
blind-eddie
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 03:21 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.03648 seconds
  • Memory Usage 2,191KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete