The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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> 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 |
#2
|
|||
|
|||
|
#3
|
|||
|
|||
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> |
#4
|
|||
|
|||
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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|