Log in

View Full Version : Different background for unapproved post?


HolyKiller
02-25-2010, 07:51 AM
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:

<div class="<vb:if condition="$show['moderated']">postbodymod<vb:else />postbody</vb:if>">

for the second time to this:

<div
<vb:if condition="$show['moderated']">
class="postbodymod"
<vb:else />
class="postbody"
</vb:if>
>

and added into additional.css these rows:
.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;
}
}

also tried only this:
.postbodymod {
background: #ffeb90;
}

and much more combinations or something like that, but nothink works for me. Moderated/Unapproved posts have still standard background. In i look at thread source code, i see <div class="postbody"> for every post.

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

HolyKiller
02-27-2010, 02:57 AM
noone? :(:(

DaRK mAN306
02-27-2010, 09:32 AM
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:
.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;
}NOT like this:
.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;
}
} See the extra RED thing .!

I hope that this helps you out and if it didn't I advice to post your url .!

HolyKiller
02-27-2010, 03:15 PM
Bah, now i'm feeling like an idiot :D, i always edited that postbit against postbit_legacy :rolleyes:

Thanks a LOT !!

BTW: About that css, that second bracket was only mistake in first post, but thx for warn too :)

Kimster
08-09-2014, 05:32 PM
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!