Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2012, 08:32 AM
the_judges the_judges is offline
 
Join Date: Dec 2011
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom Colors of Text for different UserGroups

Hey Community,

is it possible to change the written font for Administrators (ID:6) in a unique one by editing the postbit_legacy template?
I wanna change the colour into an orange one, but anybody should see the orange color...not only the group who have written it....
(sorry for my english...not so good ;-))

Code:
 <div class="postbody">
            <div class="postrow<vb:if  condition="$show['postedited'] || $post['signature']">  has_after_content</vb:if>">
                {vb:raw template_hook.postbit_messagearea_start}
                <vb:if condition="$post['title'] OR $show['messageicon']">
                <h2 class="title icon">
                    <vb:if  condition="$show['messageicon']"><img src="{vb:raw post.iconpath}"  alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
                </h2>
                </vb:if>


                        <vb:if condition="$post['isfirstshown']">
                            {vb:raw ad_location.ad_showthread_firstpost_start}
                            {vb:raw ad_location.thread_first_post_content}
                        </vb:if>
                        <vb:if condition="$post['islastshown']">
                            {vb:raw ad_location.thread_last_post_content}
                        </vb:if>
                <div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">



<vb:if condition="$bbuserinfo['usergroupid'] == 6">
<div font="#D6B52E">

                      <div id="post_message_{vb:raw post.postid}">
                    
                                                <blockquote class="postcontent restore ">
                            {vb:raw post.message}
                        </blockquote>
</div>
<vb:else />                                            
                    <div id="post_message_{vb:raw post.postid}">
                    
                                                <blockquote class="postcontent restore ">
                            {vb:raw post.message}
                        </blockquote>
</vb:if>
 



                    </div>
this one i have edited in postbit_legacy but i can't see any change after posting...

i need the change that any of my admins write in a unique color with the function that really anybody else can see this integrated color and not the standard-font-color...

pls help
Reply With Quote
  #2  
Old 01-10-2012, 08:34 AM
AJwcf AJwcf is offline
 
Join Date: Feb 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe this is what your looking for:

https://vborg.vbsupport.ru/showthread.php?t=271818
Reply With Quote
  #3  
Old 01-10-2012, 01:48 PM
the_judges the_judges is offline
 
Join Date: Dec 2011
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, sorry but i don't wanna have the legend bar colored...i want that the text of every post from a member within the "administrator"-group have a color...maybe "yellow" not the color of name under the avatar or in the legendbar...the post!

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

i've edited the code to this...
but it doesn't work...in postbit and postbit_legacy

Code:
<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">

      <div id="post_message_{vb:raw post.postid}">
		
           <vb:if condition="$bbuserinfo['usergroupid'] == 6">
	        <blockquote class="postcontent restore ">
                   <div style="font-color: #D6B52E;">{vb:raw post.message}</span>
            <vb:else />
                     {vb:raw post.message}
                 </blockquote>
           </vb:if>
      </div>
    
</div>
Reply With Quote
  #4  
Old 01-16-2013, 01:18 PM
faultymoose faultymoose is offline
 
Join Date: Nov 2012
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I achieved this effect in my own forum by assigning a unique CSS style to the message if the poster was admin (usergroupid 6). This is in postbit_legacy.

Code:
<vb:if condition="is_member_of($post, 6)">
	<span class="postbit-message-member">
		{vb:raw post.message}
	</span>
</vb:if>
Reply With Quote
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 11:24 AM.


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.03350 seconds
  • Memory Usage 2,188KB
  • 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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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