PDA

View Full Version : Few questions


silvermerc
09-27-2011, 08:35 PM
Hi,

How would i edit the avatar on the postbit?
Plus how would i make it so it would pull from a form?
E.g it pulls it from field1 etc?
Ross

Lynne
09-27-2011, 09:56 PM
Edit the avatar in what way? If you want to pull something from a field (like a URL), then you can probably just use the field as the image source:
<img src="{vb:raw post.field1}" alt="" />

silvermerc
09-27-2011, 09:59 PM
That's brilliant, Now what im wondering is, is it possible to have a a background JUST for postbit?
Different for different usergroups(?) Like my postbit is original (old style) and i want it in the left bit.
Thanks
Ross

Lynne
09-27-2011, 10:21 PM
Yes, that is possible. I believe a postbit background solution has been posted a few times in these forums.

silvermerc
09-27-2011, 10:25 PM
Can you get a link, i've done some searching but can't find it :(
Ross

Lynne
09-28-2011, 03:56 PM
I don't have a link - I have the same access to search that you do. You can just add the style directly to the <div> tag in the postbit. That is probably the easiest way.
<vb:if condition="is_member_of($post, x, y, z)">
<div style="background: xxxxx">
<vb:else />
<div style="background: yyyyy">
</vb:if>