PDA

View Full Version : Adding A Usergroup Based Extra image To Profile


metalguy639
02-09-2010, 01:45 AM
I was able to add the extra image to the posts of each person in those usergroups (there are 3 usergroups that I'm working with), but the code to add it to the members profile page I cannot seem to find. Basically what I need is a code similar to this:

<if condition="is_member_of($post, 22)"><img src here...etc></if>

This code worked great for using in posts but since it has the $post variable it does not work in the members profile for obvious reasons. I need to know what code to use to get a particular picture to show in a members profile when they belong to a certain usergroup. I have 3 usergroups and each one has an extra picture for their group. Its kinda a second avatar. I do not need a rank nor do I want to do this through the rank system. I jsut need to know what if statement will work with a usergroup & show that image in their profile to everyone.

Thanks!

metalguy639
02-10-2010, 02:24 AM
Anyone????

kh99
02-10-2010, 10:47 PM
This is a guess, but did you try:

<if condition="is_member_of($bbuserinfo, 22)"><img src here...etc></if>

metalguy639
02-11-2010, 12:29 PM
This is a guess, but did you try:

<if condition="is_member_of($bbuserinfo, 22)"><img src here...etc></if>

Erm you did not read the post I said that did not work already.

kh99
02-11-2010, 12:35 PM
Erm you did not read the post I said that did not work already.

I did read your post. You said it didn't work because of the $post variable, what I posted doesn't use it. (ETA: in other words, try using $bbuserinfo in place of $post in the code you have).

Sorry if I still don't understand. Anyone else?