The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
i'd like to ask for little help here. I'm trying set different post background color for unapproved/moderated post, but i can't figure it, why my modifications doesn't work. What i done is: In postbit template find <div class="postbody"> and changed it for the first time to: Code:
<div class="<vb:if condition="$show['moderated']">postbodymod<vb:else />postbody</vb:if>"> Code:
<div <vb:if condition="$show['moderated']"> class="postbodymod" <vb:else /> class="postbody" </vb:if> > Code:
.postbitlegacy .postbodymod { margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width}; border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border}; background: #ffeb90; _background-image: none; padding-bottom: 1em; } } Code:
.postbodymod { background: #ffeb90; } Can anyone please help me what i'm doing wrong? My vB version is 4.0.2. Thanks in advance and sorry for my english ![]() Holy |
#2
|
|||
|
|||
![]()
noone?
![]() ![]() |
#3
|
||||
|
||||
![]()
Hello there HolyKiller,
First of all, if you are still testing this method online, you might consider posting your forum's URL .! Anyway, I tested your mod and it works like CHARM .! The only thing I changed in your mod is that instead of editing the "Postbit" template I edited the "Postbit_legacy" template .. OH! before I forget, your CSS code should be like this: Code:
.postbitlegacy .postbodymod { margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width}; border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border}; background: #ffeb90; _background-image: none; padding-bottom: 1em; } Code:
.postbitlegacy .postbodymod { margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width}; border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border}; background: #ffeb90; _background-image: none; padding-bottom: 1em; } } I hope that this helps you out and if it didn't I advice to post your url .! |
#4
|
|||
|
|||
![]()
Bah, now i'm feeling like an idiot
![]() ![]() Thanks a LOT !! BTW: About that css, that second bracket was only mistake in first post, but thx for warn too ![]() |
#5
|
|||
|
|||
![]()
We've got our unapproved post color changed, but I can't figure out how to make the unapproved posts in the "posts by user" list to change as well. Our moderators are sorely missing this feature that went away when we recently upgraded to 4.2.2.
Thanks in advance for help! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|