Log in

View Full Version : Interesting Multi-Group Question


GTAce
01-12-2006, 01:31 PM
I have this vision, well, not really a vision, just something I want to do with my forums :p

I assign images to groups that are displayed as the user title field. The problem is that I am creating a new group in which images may overlap. For example, I have an image for a "Supporters" group and would like to create an image for an "Advisors" group. Well, what happens when somebody is a member of both groups? What I want is a combined image displayed that shows both. I need something that will look to see if a member is a member of these two groups (one primary, one additional), and if they are, it will display this third, combined image.

To summarize (because I know I probably lost somebody)

Supporter - Image 1
Advisor - Image 2
Supporter and Advisor - Image 3

How do I get vB to detect a member of both groups and then display image 3 as their User Title?

Is there any mod or something build into vB that will do this? I tried searching around but with no luck.

Thanks in advance for your help

Reeve of shinra
01-12-2006, 02:26 PM
You could try using if tags in the template

btw, the syntax isn't correct

<if condition=is_member_of(10)>
img html
<else />
<if condition=is_member_of(11)>
img html
<else />
<if condition=is_member_of(12)>
something
</if></if>

GTAce
01-12-2006, 03:16 PM
Yeah, that's a possiblity...I'd rather not hard code it anywhere though