Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-12-2006, 01:58 PM
FudgeBalls2002 FudgeBalls2002 is offline
 
Join Date: Feb 2006
Location: NJ
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Usergroups coloring

I know you can change the color of a certain usergroup's username but how do make the rest of their font that color like underneath their avatar where all their info like age and such is in the postbit. I've seen it done on several vb boards. I tried just not putting end tags and it works but on the whos' online list the next person name, the comma after it is the color of my font.
Reply With Quote
  #2  
Old 03-12-2006, 05:45 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=110025" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=110025</a>
Reply With Quote
  #3  
Old 03-12-2006, 05:53 PM
FudgeBalls2002 FudgeBalls2002 is offline
 
Join Date: Feb 2006
Location: NJ
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That wasn't my question.
http://www.gopednation.com/forum/sho...d.php?t=207930
Look at the first person who posted, his entire postbit is yellow, not just his name. I want to achieve this.
Reply With Quote
  #4  
Old 03-12-2006, 06:02 PM
ZacUSNYR ZacUSNYR is offline
 
Join Date: Mar 2005
Location: Upstate, NY
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see any reason why you can't throw an if / else into postbit or postbit_legacy for the span class.
Reply With Quote
  #5  
Old 03-12-2006, 06:10 PM
FudgeBalls2002 FudgeBalls2002 is offline
 
Join Date: Feb 2006
Location: NJ
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm kind of new to this, can you write the clause and tell me where I have to put it?
Reply With Quote
  #6  
Old 03-12-2006, 07:08 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, ok I misread your question. You can do this easily with:

HTML Code:
<if condition="$post[usergroupid]==X"><font color ="#XXXXXX"></if>

<!-- the text you want to be a different color -->

<if condition="$post[usergroupid]==X"></font></if>
There are many variations of how you can do it with conditionals, but that is the most basic way.
Reply With Quote
  #7  
Old 03-12-2006, 07:13 PM
FudgeBalls2002 FudgeBalls2002 is offline
 
Join Date: Feb 2006
Location: NJ
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I'm still alittle confused on where to enter that. For example, I want the admin's postbit a certain color and the rest of the usergroups default. I would just copy and paste the entire postbit into <!-- the text you want to be a different color --> and set the appropriate id for admin usergroup. Then what's the 2nd if condition for, what goes there?
Reply With Quote
  #8  
Old 03-12-2006, 07:39 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The second condition is just to close the </font> tag if the fist is opened. Put the same usergroup id there. :-)

You don't need to copy and paste into that middle area. Instead, just take the first condition above and place it where the XXXX is below (based on the default postbit legacy template):

HTML Code:
<tr valign="top">
	<td class="alt2" width="175">
                     XXXX	
			<div id="postmenu_$post[postid]">
				<if condition="$show['profile']"
Then put the second one:

HTML Code:
$post[msnicon] $post[yahooicon] $post[skypeicon]</div>
			</div>			
                     XXXX			
	</td>
Reply With Quote
  #9  
Old 03-12-2006, 08:27 PM
FudgeBalls2002 FudgeBalls2002 is offline
 
Join Date: Feb 2006
Location: NJ
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, worked perfectly
Reply With Quote
  #10  
Old 03-12-2006, 09:29 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem. :-) Good to hear.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:27 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.04098 seconds
  • Memory Usage 2,233KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete