PDA

View Full Version : Custom Colors of Text for different UserGroups


the_judges
01-10-2012, 07:32 AM
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 ;-))

<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 ;)

AJwcf
01-10-2012, 07:34 AM
I believe this is what your looking for:

https://vborg.vbsupport.ru/showthread.php?t=271818

the_judges
01-10-2012, 12:48 PM
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 1326210598 at 1326210598 ---------------

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

<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>

faultymoose
01-16-2013, 12:18 PM
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.


<vb:if condition="is_member_of($post, 6)">
<span class="postbit-message-member">
{vb:raw post.message}
</span>
</vb:if>