vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   change color of admin posts (https://vborg.vbsupport.ru/showthread.php?t=196613)

peolit 11-18-2008 01:54 PM

change color of admin posts
 
I'd like to make it so when an admin user makes a post, the background color or the font color of that post is different than that of regular registered users.
Anybody ever done this? I can't figure it out...

Any help would be great!!

Thanks.

Lynne 11-18-2008 02:13 PM

This thread should help - https://vborg.vbsupport.ru/showthrea...or+staff+posts

peolit 11-18-2008 04:24 PM

Thanks for the reply Lynn!

that thread helped change the font color of the post, but how could we change the color of the post background- for instance maybe change the blue bar (posbit.gif?) directly above your reply?

Lynne 11-18-2008 05:16 PM

Put that same sort of code in the area where that bar is created. That row is by default defined by class thead, so change this line near the top of your postbit(_legacy) template:

HTML Code:

<if condition="$post[usergroupid]=6">
 <td style="background-color:yellow" $post[scrolltothis]>
<else />
 <td class="thead" $post[scrolltothis]>
</if>


ibeteck 03-04-2009 09:18 PM

Quote:

Originally Posted by Lynne (Post 1668188)
Put that same sort of code in the area where that bar is created. That row is by default defined by class thead, so change this line near the top of your postbit(_legacy) template:

HTML Code:

<if condition="$post[usergroupid]=6">
 <td style="background-color:yellow" $post[scrolltothis]>
<else />
 <td class="thead" $post[scrolltothis]>
</if>


Where would I add that code or replace what?

Lynne 03-04-2009 09:27 PM

Quote:

Originally Posted by ibeteck (Post 1760522)
Where would I add that code or replace what?

....
Quote:

so change this line near the top of your postbit(_legacy) template:

ibeteck 03-04-2009 09:29 PM

I'am sorry but I don't know what line you are talking about. :(

wait i think i found it

that line is towards the middle though. This is what it looks like

HTML Code:

<if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>


Lynne 03-04-2009 09:41 PM

You realize that they are just looking to change the blue-bar above the reply - the one that has the date/time of the post (that is what they asked for in the post above the one I wrote out the template change). Is that what you are trying to change? If so, as I said in my post it is a line right near the top of the postbit(_legacy) that normally is class thead. So, this line in red:
Code:

<tr>
    <td class="thead" $post[scrolltothis]>
        <div class="normal" style="float:$stylevar[right]">
            &nbsp;


ibeteck 03-04-2009 09:47 PM

I'sam trying to change the background color to where the avatars and rank are located (the top side of this post) on my forum its the right because im using postbit_legacy. Thank you for helping me out.

Do you need the code for my postbit?

Lynne 03-04-2009 09:58 PM

Well, then that is a different area than the area the poster was asking about. You need to find this line:
Code:

<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
And change it to something like:
Code:

<if condition="$post[usergroupid]==6">
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px; background-color: yellow">
<else />
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
</if>

Change the stuff in red to what you want.


All times are GMT. The time now is 08:13 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.01114 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete