vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Custom Colors of Text for different UserGroups (https://vborg.vbsupport.ru/showthread.php?t=276722)

the_judges 01-10-2012 07:32 AM

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

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


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.

Code:

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



All times are GMT. The time now is 07:10 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.01449 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete