Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2010, 07:21 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default how do I show an icon under the avatar of a member of a usergroup?

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!
Reply With Quote
  #2  
Old 02-10-2010, 07:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like you want to use User Ranks
Reply With Quote
  #3  
Old 02-10-2010, 07:42 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 [DATE]1265838243[/DATE] at [TIME]1265838243[/TIME] ---------------

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.
Reply With Quote
  #4  
Old 02-11-2010, 02:05 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm guessing you would have several conditions using is_member_of to check if the user is a member of a specific usergroup.
Reply With Quote
  #5  
Old 02-11-2010, 12:52 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 [DATE]1265899981[/DATE] at [TIME]1265899981[/TIME] ---------------

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.
Reply With Quote
  #6  
Old 02-13-2010, 12:01 AM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone else? Or Lynne, do you have any other ideas? you're a fricking wizard at this vb stuff
Reply With Quote
  #7  
Old 02-13-2010, 03:38 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

PHP Code:
if (is_member_of($vbulletin->userinfox)) $yourimage "<img code 1>";
if (
is_member_of($vbulletin->userinfoy)) $yourimage .= "<img code 2>";
if (
is_member_of($vbulletin->userinfoz)) $yourimage .= "<img code 3>"
I'd just play with it and see if you can get it to do what you want.
Reply With Quote
  #8  
Old 02-13-2010, 12:32 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 02-13-2010, 09:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 02-13-2010, 10:13 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13477 seconds
  • Memory Usage 2,264KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete