Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2014, 02:40 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Usergroup Badge in memberinfo

I am looking for a simple plug that will add a usergroup badge in the member info template that is separate from the avatar and profile, etc.

For example, giving all VIP users a big badge that shows up in the memberinfo template using postbit_legacy.

Thanks,
Rich

PS - I am sure I can write the conditionals and image code but I need help with the plug in part.

i know I can probably use the ranks system but I am looking for something I can customize a bit more.
Reply With Quote
  #2  
Old 11-17-2014, 03:12 PM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the plugin/mod for only 1 usergroup?
Reply With Quote
Благодарность от:
RichieBoy67
  #3  
Old 11-17-2014, 03:26 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good question, It would be good to be able to add more but I think I have to think on this a little more.

Thanks for reply
Reply With Quote
Благодарность от:
Black Snow
  #4  
Old 11-17-2014, 11:47 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Richie, why not just add something like this to your template.

Code:
<vb:if condition="is_member_of($post, X)"><img src="PATH/TO/IMAGE.EXT" alt="$post[username] is VIP member" /></vb:if>
X is the usergroup and PATH/TO/IMAGE.EXT is where you would set the image
Reply With Quote
  #5  
Old 11-19-2014, 02:41 PM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Richie, why not just add something like this to your template.

Code:
<vb:if condition="is_member_of($post, X)"><img src="PATH/TO/IMAGE.EXT" alt="$post[username] is VIP member" /></vb:if>
X is the usergroup and PATH/TO/IMAGE.EXT is where you would set the image
Would it not be:
Code:
<vb:if condition="is_member_of($bbuserinfo, X)"><img src="PATH/TO/IMAGE.EXT" alt="$post[username] is VIP member" /></vb:if>
As "$post" is to find out if the poster is in a certain usergroup.

But, if you use either of them, will it not only be the person browsing the forum that will see/not see the badge because if someone is in the VIP group, and someone not VIP is browsing their page, they will not see the badge....
Reply With Quote
Благодарность от:
RichieBoy67
  #6  
Old 11-20-2014, 12:00 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, the way I wrote it, it will show up in the posters postbit if they are a member of X.

And any user looking at a post from anyone in X will see the image.

So if I am a member of Y, and you are a member of X, when I look at one of your posts, I will see the image, as will you or anyone else.
Reply With Quote
Благодарность от:
Black Snow
  #7  
Old 11-20-2014, 10:27 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, Have been busy.

Yeah, I already use the conditionals but was looking to do a plug in to make it easier for clients.

I have a couple things intended that do not really work in the standard system such as placement and perhaps more variable for ranking badges but for now I am looking for mainly the plug in that will place the badges in the memberinfo template but for now just the plug in.

I am trying to learn better how to do this with the plug in system. I really need to learn how to write these plug ins. I have a very hard time with getting them to work with custom themes.

Thanks guys for the help and everything,
Rich
Reply With Quote
  #8  
Old 11-20-2014, 10:47 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By memberinfo you mean in the postbit correct?
Reply With Quote
  #9  
Old 11-20-2014, 11:37 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
By memberinfo you mean in the postbit correct?
I think he means in the members profile in the "About me" section. Hence why I mentioned about using a different conditional the $post.
Reply With Quote
  #10  
Old 11-20-2014, 11:44 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well in the op, he also mentions postbit_legacy, so that is why I asked for clarification.
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 09:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04371 seconds
  • Memory Usage 2,264KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_code
  • (2)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
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete