Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2008, 01:54 PM
peolit peolit is offline
 
Join Date: Sep 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 11-18-2008, 02:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thread should help - https://vborg.vbsupport.ru/showthrea...or+staff+posts
Reply With Quote
  #3  
Old 11-18-2008, 04:24 PM
peolit peolit is offline
 
Join Date: Sep 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 11-18-2008, 05:16 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 03-04-2009, 09:18 PM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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?
Reply With Quote
  #6  
Old 03-04-2009, 09:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ibeteck View Post
Where would I add that code or replace what?
....
Quote:
so change this line near the top of your postbit(_legacy) template:
Reply With Quote
  #7  
Old 03-04-2009, 09:29 PM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 03-04-2009, 09:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #9  
Old 03-04-2009, 09:47 PM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 03-04-2009, 09:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 01:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04065 seconds
  • Memory Usage 2,278KB
  • Queries Executed 12 (?)
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
  • (3)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete