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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2007, 06:05 PM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Small image in postbit for only one usergroup. How do I do it?

Small image in postbit for only one usergroup. How do I do it?

I have a premium usergroup that I want to thank for showing their support by subscribing to the site by placing a little image in the postbit for them.

What is the easiest way to do this? Their usergroup number is 15. Is this the correct way to do it?:

Code:
<if condition="!is_member_of($bbuserinfo, 15) ">
Or is it supposed to be something else?

Thanks in advance.
Reply With Quote
  #2  
Old 04-20-2007, 09:03 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use this;

HTML Code:
<!-- Is user a member of usergroupid 15? -->
<if condition="is_member_of($vbulletin->userinfo, 15)">
	
	<!-- User is in the correct group, so show the image -->
	<img src="http://www.example.com/path/to/your/image.gif" alt="some image" />
</if>
Reply With Quote
  #3  
Old 04-20-2007, 11:26 PM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh ok. Thanks.

By the way, does a "!" mean "not"? Because if that's the case, I could probably just use the code I had above (as long as I took out the "!" symbol).

I'm just wondering. (although I'll probably just use the code you posted).
Reply With Quote
  #4  
Old 04-21-2007, 03:45 AM
Nudda's Avatar
Nudda Nudda is offline
 
Join Date: Dec 2006
Location: Olympia, WA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

user ranks is the easier way to do this

admin cp --> user ranks
Reply With Quote
  #5  
Old 04-21-2007, 02:24 PM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, I hadn't thought of that.

You're basically saying to just go into the user ranks in the admin cp and give an image to the usergroup I desire and I can just forget about dealing with if conditionals in the postbit?

The only problem I see that having is that I wouldn't be able to place the image in the right location of the postbit (right above the "online" button)
Reply With Quote
  #6  
Old 04-21-2007, 03:59 PM
Semere79 Semere79 is offline
 
Join Date: Feb 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brad View Post
Use this;

HTML Code:
<!-- Is user a member of usergroupid 15? -->
<if condition="is_member_of($vbulletin->userinfo, 15)">
	
	<!-- User is in the correct group, so show the image -->
	<img src="http://www.example.com/path/to/your/image.gif" alt="some image" />
</if>
What would be the seperator to this if I wanted to allow multipule users to see certain thing but they are in different groups? Like 15,17,22,45 or whatever?
Reply With Quote
  #7  
Old 05-01-2007, 01:40 AM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<!-- Is user a member of usergroupid 15? -->
<if condition="is_member_of($vbulletin->userinfo, 15)">
	<!-- User is in the correct group, so show the image -->
	<img src="http://www.gamingvidz.com/forum/gamingvidz/misc/premium.jpg" alt="Premium Member" width="204" height="28" border="0" />
</if>
This doesn't work

Code:
<if condition="is_member_of($bbuserinfo, 15) ">
<a href="http://www.gamingvidz.com/forum/payments.php" target="_blank"><img src="http://www.gamingvidz.com/forum/gamingvidz/misc/premium.jpg" ph" alt="GV Premium Member" border="0" /></a>
</if>
This doesn't work either? Any ideas on how to fix this besides user ranks? I don't want to use those.

Please help.
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:56 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.05790 seconds
  • Memory Usage 2,225KB
  • 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_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete