Log in

View Full Version : add image right beside usernames for specific usergroup that only staff can see


salata
02-24-2007, 01:23 PM
how can i add image right beside usernames for specific usergroup that only staff can see?

Smoothie
02-24-2007, 01:53 PM
<if condition="is_member_of($bbuserinfo, 6)">
your code here
</if>

Where 6 is the usergroup you want to show the image to. Edit either postbit or postbit_legacy or both.

salata
02-24-2007, 02:09 PM
i understand that is the code to let certain usergroups ( in this case staff) to view things, but how do i designate a image for only one usergroup?

Smoothie
02-24-2007, 02:37 PM
i understand that is the code to let certain usergroups ( in this case staff) to view things, but how do i designate a image for only one usergroup?
Did you read what I posted? You put your image code inside that conditional and only that usergroup will see that image.

salata
02-24-2007, 04:41 PM
Did you read what I posted? You put your image code inside that conditional and only that usergroup will see that image.

yes i did, but i wanted the image only on a specific group not all usergrouips

Smoothie
02-24-2007, 05:16 PM
yes i did, but i wanted the image only on a specific group not all usergrouipsThat is for a specific usergroup. Just change the number to the group you want. It's just an example.

salata
02-24-2007, 09:58 PM
thanks for you help thus far, but what i wanted was if i had userid's 1-10, i wanted userid 3 to have the image only. Have the image, NOT view the image.

the code you wrote gives permission for one usergroup to view the image.

how do i place the image ON a specific ID, thats my question in addition to your answer.

how do i place it so that the image is set only one specific userid and not all ten.

salata
02-26-2007, 01:25 AM
thanks for you help thus far, but what i wanted was if i had userid's 1-10, i wanted userid 3 to have the image only. Have the image, NOT view the image.

the code you wrote gives permission for one usergroup to view the image.

how do i place the image ON a specific ID, thats my question in addition to your answer.


how do i place it so that the image is set only one specific userid and not all ten.

bumnp

Smoothie
02-26-2007, 01:37 AM
Move your selected users to a new usergroup.......and then use the code I posted.

thanks for you help thus far, but what i wanted was if i had userid's 1-10, i wanted userid 3 to have the image only. Have the image, NOT view the image.

the code you wrote gives permission for one usergroup to view the image.

how do i place the image ON a specific ID, thats my question in addition to your answer.


how do i place it so that the image is set only one specific userid and not all ten.The title of your thread and your request was for a usergroup, not a specific userid or group of id's:rolleyes:

darnoldy
02-26-2007, 03:12 AM
I think this does what you want:
<if condition="is_member_of($bbuserinfo, 4,5,6) AND is_member_of($post, X)">
<!-- image goes here -->
</if>

replace X with the group number if the group you want to have images

Princeton
02-26-2007, 12:03 PM
you can also use vBulletin's User Rank system to do this
http://www.vbulletin.com/docs/html/user_ranks