PDA

View Full Version : Usergroup Conditions (Postbit_legacy)


Frost5
04-11-2011, 11:22 PM
I'm still learning the in's and out's of conditions and have run into a problem. I plan on using a condition statement for my usergroups, but I cannot piece the codes together to create a successful outcome.

Basically, I would like to have a image appear in the posbit_legacy template, depending on what usergroup you are in.

Are any of the following codes close to what I need to achieve?

<vb:if condition="is_member_of($bbuserinfo, 1,2,3)"> </vb:if>

Would I need to include an image source in that code too?

Frost5
04-30-2011, 10:45 PM
Still in search of a solution.

kh99
04-30-2011, 11:00 PM
Do you want the image to be according to what user group the user viewing the page is in, or the user who wrote the post is in? If it's the user viewing the page, then I think what you have is correct. And yes, you would have to put your image html inside those tags.

If you want it to be the poster's user group, I think you can use $post in place of $bbuserinfo.