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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2007, 02:19 AM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I make an image show up in the postbit for only one *additional* usergroup?

How do I make an image show up in the postbit for only one *additional* usergroup?

i.e. number 15 in my usergroup is a premium usergroup. If you pay to join it, you are added to the addional usergroup (your primary remains unchanged).

How do I make an image show up in the postbit for people that belong to this "additional" usergroup?
Reply With Quote
  #2  
Old 05-01-2007, 02:24 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this

HTML Code:
<if condition="is_member_of($bbuserinfo, 15) "><img src="YOUR_IMAGE.gif" /></if>
Reply With Quote
  #3  
Old 05-01-2007, 02:32 AM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope. Doesn't work
Reply With Quote
  #4  
Old 05-01-2007, 03:44 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may not be clean code since it uses the array method, but some one can clean it up since I don't know the proper coding.
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(15))"> <img src="YOUR_IMAGE.gif" /> </if>
I would guess this would be the right code
Code:
<if condition="$bbuserinfo['usergroupid']==15"><img src="YOUR_IMAGE.gif" /> </if>
Reply With Quote
  #5  
Old 05-01-2007, 04:47 AM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neither of those worked either

Is there something else I need to do in the usergroup manager to allow stuff like that to show up or something? I can't figure this out. For whatever reason, I use the same style of coding all over my site for various ads but now it won't work.

Hmmm
Reply With Quote
  #6  
Old 05-01-2007, 05:23 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the first one i posted is working for me right now... so I don't know why it doesn't work for you
Reply With Quote
  #7  
Old 05-01-2007, 08:45 AM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KipLarson View Post
How do I make an image show up in the postbit for only one *additional* usergroup?

i.e. number 15 in my usergroup is a premium usergroup. If you pay to join it, you are added to the addional usergroup (your primary remains unchanged).

How do I make an image show up in the postbit for people that belong to this "additional" usergroup?
Since I don't use ranks on my board as intended...

I use the ranks feature to accomplish this. I have a paid members user group and this is the only group that gets the "rank" image. I've also moved the ranks code in the postbit to move the image further down.
Reply With Quote
  #8  
Old 05-02-2007, 05:54 PM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4x4 Mecca View Post
the first one i posted is working for me right now... so I don't know why it doesn't work for you
what is the width of the image you're using? Perhaps it's not working for that reason?

Man this is really frustrating. I'll look at the code again in a sec. Do you have it set up so that once the user pays to upgrade they keep their primary usergroup but are put into a premium user group as their additional one?

This is what I have in my postbit, but it doesn't work:

Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(15))"> <img src="http://www.gamingvidz.com/forum/gamingvidz/misc/premium.jpg" /> </if>
And I made sure that the img src was typed in correctly too. Perhaps because I have the premium upgrade set up to just add them into the additional usergroup perhaps I need to add in every usergroup or something? I don't know... I'm frustrated.

Quote:
Originally Posted by tobybird
Since I don't use ranks on my board as intended...

I use the ranks feature to accomplish this. I have a paid members user group and this is the only group that gets the "rank" image. I've also moved the ranks code in the postbit to move the image further down.
This doesn't help me. I'm already using ranks.
Reply With Quote
  #9  
Old 05-02-2007, 06:54 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My exact code is as follows for the "Admin log in as user" mod. I didn't want to click their profile everytime to use it, so I have it so I have a tiny icon in there postbit.
Code:
<!-- Start Admin Log In As User -->
<if condition="in_array($bbuserinfo['usergroupid'], array(6))">
<a href="http://www.4x4mecca.com/forum/index.php?$session[sessionurl]u=$post[userid]&amp;admin_log_in_as_user=$post[userid]"><img class="inlineimg" src="http://www.4x4mecca.com/forum/images/kirsch/buttons/lastpost.gif" alt="Log in as $post[username]" border="0" /></a>
</if>
<!-- End Admin Log In As User -->
Reply With Quote
  #10  
Old 05-02-2007, 08:48 PM
KipLarson KipLarson is offline
 
Join Date: Jul 2005
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't use this mod: "Admin log in as user" that you're referring to.

I'm just trying to use if conditionals to display an image for people that belong to an additional usergroup
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 04: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.08927 seconds
  • Memory Usage 2,265KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_html
  • (3)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