PDA

View Full Version : Image in postbit based on group membership


RustedBucket
02-14-2005, 03:56 PM
Hi. I'm thinking this should be really simple but it's not working quite right for me. I have a secondary group that I want to display an image for in the thread postbit if a user is a member of that secondary group. I'd like it to be visible to everyone viewing the thread.

secondary group: testgroup
image: testimage.gif

Can someone write me a quick conditional to do this. I'm guessing it can be done with a template conditional but everytime I try I get nothing or everyone gets the image.

Thanks

amykhar
02-14-2005, 04:19 PM
The conditional is
<if condition="is_member_of($post,testgroupidhere)">

RustedBucket
02-14-2005, 04:44 PM
Thanks Amy, one mroe stupid question, what does $post signify?

amykhar
02-14-2005, 04:48 PM
It holds all the data in the post. The user name of the poster, userid, the message, everything.

RustedBucket
02-14-2005, 04:52 PM
Cool.. thanks for that. Worked like a champ.

davew
11-03-2005, 09:46 AM
Thanks Amy... I'd spent hours trying to get this to work properly :)