The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change b/g of post for OP's replies
I've started an Ask Me Anything subforum based on the Reddit concept.
To make it easier for folks to find the interviewee's responses, I figured it would be useful to change the background colour of their posts (but ONLY in that forum). Something like the b/g colour change that comes with selecting a post for mod action. Is there an easy way to do this? I know there are some "highlight thread starter" mods, but they all jst add a label or graphic, whereas I want to actually highlight the entire post area to make it really easy to find. |
#2
|
||||
|
||||
Follow:
AdminCP -> Styles & Templates -> Style Manager For each style you wish to affect the change, follow: Edit Templates Locate the group "Postbit Templates", double-click and then open the template "postbit_legacy." Locate the opening tag: HTML Code:
<div class="postbody">
HTML Code:
<div class="postbody" style="<vb:if condition="($thread['postuserid'] == $post['userid']) AND in_array($thread['forumid'], array(XX, YY, ZZ))">background: #ffeb90</vb:if>">
|
#3
|
|||
|
|||
Please post a screen shot of this in action, it's peaked my curiosity
|
#4
|
||||
|
||||
Quote:
|
Благодарность от: | ||
John Lester |
#6
|
|||
|
|||
Hmmm I think I'm going to tweak it a bit and put actual userids and different colors for them (admin team of 3 peeps) to make each one stand out in a particular forum.
Right now we're having to manually use custom font and color ... kinda tedious |
#7
|
||||
|
||||
I just discovered that if you want the inline moderation highlight color to take precedence over the added color to the OP's posts, you need to open the template postbit.css, and finc the code:
Code:
.postbit.imod_highlight .userinfo_noavatar, .postbit.imod_highlight .userinfo, .postbit.imod_highlight .postbody, .postbitlegacy.imod_highlight .postdetails, .postbitlegacy.imod_highlight .userinfo, .postbitlegacy.imod_highlight .postbody, .postbitdeleted.imod_highlight, .postbitignored.imod_highlight { background:{vb:stylevar imodhilite_backgroundColor}; color: {vb:stylevar body_color}; } Code:
.postbit.imod_highlight .userinfo_noavatar, .postbit.imod_highlight .userinfo, .postbit.imod_highlight .postbody, .postbitlegacy.imod_highlight .postdetails, .postbitlegacy.imod_highlight .userinfo, .postbitlegacy.imod_highlight .postbody, .postbitdeleted.imod_highlight, .postbitignored.imod_highlight { background:{vb:stylevar imodhilite_backgroundColor} !important; color: {vb:stylevar body_color}; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|