The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
Try this
HTML Code:
<if condition="is_member_of($bbuserinfo, 15) "><img src="YOUR_IMAGE.gif" /></if> |
#3
|
|||
|
|||
Nope. Doesn't work
|
#4
|
|||
|
|||
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> Code:
<if condition="$bbuserinfo['usergroupid']==15"><img src="YOUR_IMAGE.gif" /> </if> |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
the first one i posted is working for me right now... so I don't know why it doesn't work for you
|
#7
|
||||
|
||||
Quote:
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. |
#8
|
|||
|
|||
Quote:
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> Quote:
|
#9
|
|||
|
|||
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]&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 --> |
#10
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|