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

Reply
 
Thread Tools Display Modes
  #21  
Old 03-05-2009, 03:58 AM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the code i posted on my last response is the one i used. and all the post text turns yellow i mean everyones text.
Reply With Quote
  #22  
Old 03-05-2009, 04:10 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just adding that one line is hopefully not all you did. I mean when you make a change, you should post ALL the code change like this (changed code shown in red):
Code:
<tr valign="top">
<if condition="is_member_of($post[usergroupid], 4, 6)">
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px; background-color: purple">
<else />
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px;">
</if>

            <div id="postmenu_$post[postid]">
That is the code taken directly from the template I just modified and it turned all my admin posts purple (the userinfo part) and didn't touch anyone else's posts. So, if you have that exact code above, then I'll ask again about your usergroups. *What* is usergroupid 4 on your forum? Cuz that code changes it for all those in usergroup 4 and usergroup 6.
Reply With Quote
  #23  
Old 03-05-2009, 04:23 AM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That code change the bottom left border into yellow on postbit_legacy 6 is admin and 7 is mods. I want the text in the post to change for the mods also. here is the code im trying to use to change the admin and mod post text. the code for the color behind the avatars works fine its the one for the post text.

HTML Code:
<!-- message -->
		<div id="post_message_$post[postid]">
			$ad_location[ad_showthread_firstpost_start]
			<!--message-->
<div>
<if condition="is_member_of($post[usergroupid], 6, 7)">
<div style="color:#CCCC66">
</if>
$post[message]
<if condition="is_member_of($post[usergroupid], 6, 7)">
</div>
</if>
</div>
<!--message-->
		</div>
		<!-- / message -->

		<if condition="$show['attachments']">
Reply With Quote
  #24  
Old 03-05-2009, 03:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the code I posted only changed a border, then you are posting it in the wrong place or something. Images and posting your code (with a couple lines before and after the change) always helps if something isn't working.

This should (I haven't tested it) change the text color just for posts by a user in group 6 or 7:

HTML Code:
			<!--message-->
<div <if condition="is_member_of($post[usergroupid], 6, 7)">style="color:#CCCC66"</if>>
$post[message]
</div>
<!--message-->
		</div>
		<!-- / message -->
Reply With Quote
  #25  
Old 03-05-2009, 03:36 PM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the code but it still didnt work I'am posting it in postbit_legacy. does the red text have anything to do with it.
Reply With Quote
  #26  
Old 03-05-2009, 03:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tested that code and it works just fine on my test board. My posts now look like this from the two edits I've tried out of yours. Other users posts are completely normal.
Attachment 95950
Reply With Quote
  #27  
Old 03-05-2009, 03:50 PM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you put it in the postbit? also this is the code I put i modified it a little and now it give colors to all the special groups but not to members

HTML Code:
<!--message-->
<div> 
<if condition="is_member_of($post[usergroupid], 6, 7)">
<div style="color:#CCCC66">
</if>
$post[message]
</div>
<!--message-->
		</div>
		<!-- / message -->
Reply With Quote
  #28  
Old 03-05-2009, 03:53 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put my code in the postbit_legacy template (that is what is shown in the image).

Your code is going to cause your page to not validate since you are missing a </div> tag.
Reply With Quote
  #29  
Old 03-05-2009, 03:57 PM
ibeteck ibeteck is offline
 
Join Date: Jan 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

like this

HTML Code:
<!--message-->
<div> 
<if condition="is_member_of($post[usergroupid], 6, 7)">
<div style="color:#CCCC66">
</div>
</if>
$post[message]
</div>
<!--message-->
Reply With Quote
  #30  
Old 03-05-2009, 04:03 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
like this

HTML Code:
<!--message-->
<div> 
<if condition="is_member_of($post[usergroupid], 6, 7)">
<div style="color:#CCCC66">
</div>
</if>
$post[message]
</div>
<!--message-->
No, that won't work. Did you try what I posted? Actually copy/paste it over what is between the <!-- message --> area? As you can see in my image, it worked fine.
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 08:28 PM.


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.08730 seconds
  • Memory Usage 2,280KB
  • 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
  • (1)bbcode_code
  • (5)bbcode_html
  • (1)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
  • (3)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