PDA

View Full Version : Usergroup Background in postbit Legacy



..::Songuku95::..
05-02-2010, 12:15 PM
Hi all !!

It's just the idea of making the background of the responses and posts a usergroup in postbit Legacy

Demo (http://www.alra7ba.net/vb/showthread.php/28340?langid=1&styleid=17)

see pic in attachment

lets do it and try

Style Manager -> template postbit.css find


.postbitlegacy .postbody, .eventbit .eventdetails .eventbody {
margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
background: {vb:stylevar postbit_background};
_background-image: none;
padding-bottom: 1em;
}


add ander it


/* Dr.osamA - alra7ba editing postbit */
.postbitlegacy .postbody_admin, .eventbit .eventdetails .eventbody {
margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
background: url(http://www.xxxx.net/forum/xxx/Back-Admin-1.gif) repeat;
_background-image: none;
padding-bottom: 1em;
}

chenge the link to your image URL


http://www.xxxx.net/forum/xxx/Back-Admin-1.gif

then save work

in template postbit_legacy find


<div class="postbody">

replece with


<vb:if condition="is_member_of($post, #)"><div class="postbody_admin">
<vb:else />
<div class="postbody">
</vb:if>

the red # is your usergroup's ID

then save work

it is all

you can use this image http://www.alra7ba.net/vb/alra7ba/Back-Admin-1.gif (http://www.alra7ba.net/vb/alra7ba/Back-Admin-1.gif) or this one http://www.alra7ba.net/vb/alra7ba/Back-Admin-2.gif (http://www.alra7ba.net/vb/alra7ba/Back-Admin-2.gif) or any image you want

PS: this working in VB 4.0.1 too

Demo (http://www.alra7ba.net/vb/showthread.php/28340?langid=1&styleid=17)

Enjoy

http://www.vietvbb.vn/up/attachment.php?attachmentid=25469&stc=1&thumb=1&d=1265346447