Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2013, 03:21 AM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I change a usergroup's title color and font weight?

My version is 4.2.0 and I'm currently using postbit_legacy format.

This should be such a simple thing to achieve (and it probably is). I'm trying to change the usergroup title colors (as they are displayed underneath the user names and above the avatars within posts). The method for changing the markup color for the user names within a usergroup is clearly documented among numerous posts here and quite easy to accomplish with the Usergroup Manager. But I can't seem to find a way to change the usergroup title colors and font weights. No matter what I've tried so far they remain black and un-bolded. Will someone please point me to the solution?

Thank you.
Reply With Quote
  #2  
Old 03-08-2013, 04:41 AM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check here: https://vborg.vbsupport.ru/showthread.php?t=105598

--------------- Added [DATE]1362721989[/DATE] at [TIME]1362721989[/TIME] ---------------

The easiet way is to go to admincp>usergroup manager>the usergroup you want to change> html markup boxes and enter this(<font color="#8C1717"><i><b>) in the box on the left and this in the box on the right(</font></i></b>)

remember to change the hex code color i used to oneyou want to use
Reply With Quote
  #3  
Old 03-08-2013, 04:54 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Figuring out all those css classes makes my head spin. I would jut go into the postbit_legacy template on line 33, <span class="usertitle">, and edit in an inline style attribute.

@Ba'al, he wants to change the user title mark up. That setting is for the mark up for the user name itself.
Reply With Quote
  #4  
Old 03-08-2013, 05:08 AM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
Figuring out all those css classes makes my head spin. I would jut go into the postbit_legacy template on line 33, <span class="usertitle">, and edit in an inline style attribute.

@Ba'al, he wants to change the user title mark up. That setting is for the mark up for the user name itself.
Yeah, my bad, i brain farted lol I was just trying to edit my post with a "Nevermind" lol
Reply With Quote
  #5  
Old 03-08-2013, 12:18 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the replies...

Quote:
Originally Posted by nerbert View Post
Figuring out all those css classes makes my head spin. I would jut go into the postbit_legacy template on line 33, <span class="usertitle">, and edit in an inline style attribute.
But that would not specify for the different usergroups. I need the title colors to match the current colors of the name text for each group. I want it like this: Administrator Super Moderator Moderator, etc. How can I do that?

Quote:
Originally Posted by nerbert View Post
@Ba'al, he wants to change the user title mark up. That setting is for the mark up for the user name itself.
Yes, I had already changed the HTML markup for each usergroup sometime ago (although I used span tags). And the result was that each of the user names became the color of its respective usergroup and in bold font. But the usergroup titles still appears in black and are not in bold font.

--------------- Added [DATE]1362754956[/DATE] at [TIME]1362754956[/TIME] ---------------

I'm sure not having much luck finding a way to do this. Can anyone help, please?
Reply With Quote
  #6  
Old 03-08-2013, 02:03 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<span style="color:[color here];"><span style="font-weight:[font weight here]"></span>
Reply With Quote
  #7  
Old 03-08-2013, 02:11 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amaury25 View Post
<span style="color:[color here];"><span style="font-weight:[font weight here]"></span>
But where do I put it? That's the same html that I put in the usergroup markup to make the user names colored. It does NOT affect the user titles. How can I change the colors of the user titles to match the group text colors?
Reply With Quote
  #8  
Old 03-09-2013, 04:08 AM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edgeless View Post
But where do I put it? That's the same html that I put in the usergroup markup to make the user names colored. It does NOT affect the user titles. How can I change the colors of the user titles to match the group text colors?
On our forum we only do it by request and the way i usually do it is i go into the members profile page in the admincp and add it there after adjusting it to allow html.
Reply With Quote
  #9  
Old 03-09-2013, 06:50 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ba'al View Post
On our forum we only do it by request and the way i usually do it is i go into the members profile page in the admincp and add it there after adjusting it to allow html.
Yes, that way works per user. But I was hoping there would be a way to make the color and font weight/style stick as a default for all users created in a usergroup class, as there is with user names. I guess there may not be.
Reply With Quote
  #10  
Old 03-09-2013, 08:36 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a crude way of doing it with template edits.

In postbit.css add this to the bottom:

Code:
/* markup for administrators  */

.postbit .group-6, postbitlegacy .group-6{
	color:red;
}
in the postbit template find line 42 and modify as follows:

Code:
                                <div class="username_container">
                                        <vb:if condition="$post['userid']">
                                                {vb:raw memberaction_dropdown}
                                                {vb:raw post.onlinestatus}
                                        <vb:else />
                                                <span class="username guest">{vb:raw post.username}</span>
                                        </vb:if>
                                        <span class="usertitle group-{vb:raw post.usergroupid}">
                                                {vb:raw post.usertitle}
                                        </span>
                                        <vb:if condition="$post['rank']">
                                                <span class="rank">{vb:raw post.rank}</span>
                                        </vb:if>

                                        {vb:raw template_hook.postbit_userinfo_left}
                                        <vb:if condition="$show['reputation']">
                                                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
                                        </vb:if>
                                        <vb:if condition="$post['userid']">
                                                <div class="imlinks">
                                                        {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                                                </div>
                                        </vb:if>
                                </div>
for postbit_legacy do similarly for line 33

Code:
		<div class="userinfo">
			<div class="username_container">
			<vb:if condition="$post['userid']">
				{vb:raw memberaction_dropdown}
				{vb:raw post.onlinestatus}
			<vb:else />
				<span class="username guest">{vb:raw post.musername}</span>
			</vb:if>
			</div>
			<span class="usertitle group-{vb:raw post.usergroupid}">
				{vb:raw post.usertitle}
			</span>
			<vb:if condition="$post['rank']">
				<span class="rank">{vb:raw post.rank}</span>
			</vb:if>
			{vb:raw template_hook.postbit_userinfo_left}
			<vb:if condition="$show['reputation']">
				<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
					<vb:each from="reputationdisplay" value="row">
						<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
					</vb:each>
				</span>
			</vb:if>
			<vb:if condition="$show['avatar']">
			<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
				<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
			</a>
			</vb:if>
I think I have the CSS right so it works in postbit legacy (I don't use it). By the same method you can write CSS for any group you want.
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 04:04 PM.


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.05104 seconds
  • Memory Usage 2,269KB
  • 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_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete