Quote:
Originally Posted by Pure Dope
I believe you could improve this code by doing:
Code:
<div class="postbody postbg{vb:raw post.userid}">
Then when you want to add css for someone do it like this in the additional.css
Code:
.postbitlegacy .postbg<USERID>, .eventbit .eventdetails .eventbody {
background-color: grey;
}
This way you dont have any conditions, and the code is a bit cleaner. Of course, this works by userid, and not usergroup, but its easily modified to work for usergroups by just adding another class.
|
can you show me the same please for vb 3.8?