Log in

View Full Version : how do I show an icon under the avatar of a member of a usergroup?


wolfyman
02-10-2010, 07:21 PM
I would like this anywhere the avatar shows. (showthread, profile, etc)

If a member is included, either primary or additional, in a specific usergroup, I want to show an icon or image or text below the avatar.

How can I do this?

Thanks!

Lynne
02-10-2010, 07:37 PM
Sounds like you want to use User Ranks (http://www.vbulletin.com/docs/html/user_ranks)

wolfyman
02-10-2010, 07:42 PM
I tried that, it won't work when a member is part of multiple usergorups.

I want a custom template edit to show a specific image if a user is a member of a usergroup.

--------------- Added 1265838243 at 1265838243 ---------------

example my mods want their name bold, and if they are part of a userrank VIP, they have to choose one or the other.

If they are primary usergroup A, and also part of usergroup B, I want usergroup B to simply display an icon.

Custom template edit needed I believe.

Lynne
02-11-2010, 02:05 AM
I'm guessing you would have several conditions using is_member_of to check if the user is a member of a specific usergroup.

wolfyman
02-11-2010, 12:52 PM
I'm guessing you would have several conditions using is_member_of to check if the user is a member of a specific usergroup.

is that a bad thing? I don't understand how to do it, which means I don't understand if it's a bad thing...

I know I want to do this, I've been trying for a while now!

--------------- Added 1265899981 at 1265899981 ---------------

If a member has Skype, there's a way to show that particular user's Skype under their avatar.. I don't understand why this is such a difficult thing to accomplish. :(

wolfyman
02-13-2010, 12:01 AM
Anyone else? Or Lynne, do you have any other ideas? you're a fricking wizard at this vb stuff :)

Lynne
02-13-2010, 03:38 AM
I don't really have any ideas. If I were to do this, I'd either write a plugin or a template condition using is_member_of, as I mentioned above. From your desciption of what you want, it sounds like that would be the way to go.

if (is_member_of($vbulletin->userinfo, x)) $yourimage = "<img code 1>";
if (is_member_of($vbulletin->userinfo, y)) $yourimage .= "<img code 2>";
if (is_member_of($vbulletin->userinfo, z)) $yourimage .= "<img code 3>";

I'd just play with it and see if you can get it to do what you want.

wolfyman
02-13-2010, 12:32 PM
I learned a long time ago not to try to do things people with much more skill than I do not know how to do... this definitely falls in that category. If YOU don't understand how to do it, I'm just going to break my forum trying to make it work.

The similar threads function shows this:

https://vborg.vbsupport.ru/showthread.php?t=61305

Which seems to address the issue, but there is no "includes/functions_showthread.php" in vb 4.x

WarriorForums has ths feature that I'm trying to accomplish - war room members show the user rank under the username, AND display a badge if the member is a War Room member. I know it's possible, I just have no idea how to do it!

Lynne
02-13-2010, 09:02 PM
I haven't tried the code at all, so I'm not about to say it will work. I still don't understand why stacked ranks can't be used, so I feel I must be missing something in your problem.

wolfyman
02-13-2010, 10:13 PM
You are right, Lynne - I figured it out.

There was a problem in my template... once I fixed that, I enabled a couple more user ranks, moved the userrank location, and set them all to "can override = no" or something similar... and they show up regardless of moderator usertitle etc.

Thank you!

Lynne
02-13-2010, 10:32 PM
Glad you figured it out. :)