The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'll try to make this simple.
I have created 2 paid subscription user groups called premium member and sponsor. I have a little badge to display for each group. In postbit I have the following code; PHP Code:
![]() The second group, sponsors, is giving me fits. I placed the code right above the code shown above.... PHP Code:
Suggestions? Thanks. |
#2
|
||||
|
||||
![]()
Hello,
Use this: Code:
<if condition="is_member_of($post, 12)"> <a href="http://www.shottalk.com/forum/payments.php"><img border="0" src="http://www.shottalk.com/forum/images/badges/member02.gif" width="150" height="35"> <else /> <if condition="is_member_of($post, 13)"> <a href="http://www.shottalk.com/forum/payments.php"><img border="0" src="http://www.shottalk.com/forum/images/badges/sponsor.png" width="150" height="35"></if></if> |
#3
|
||||
|
||||
![]()
Or, if that doesn't work you could try this:
Code:
<if condition="$post['membergroupids'] == 12"> <a href="http://www.shottalk.com/forum/payments.php"><img border="0" src="http://www.shottalk.com/forum/images/badges/member02.gif" width="150" height="35"></if> <if condition="$post['membergroupids'] == 13"> <a href="http://www.shottalk.com/forum/payments.php"><img border="0" src="http://www.shottalk.com/forum/images/badges/sponsor.png" width="150" height="35"></if> |
#4
|
|||
|
|||
![]()
Thanks guys!
There must be something wrong with my image. I can't get it to show in either case. I changed it's location to www .shottalk.com/foum/images/sponsor.png and it shows in the browser but it won't show for sponsors or premium members (when I switch the image). I thought I made it the same as the members02.gif but something is going on there, not sure what. |
#5
|
||||
|
||||
![]()
<a href="http://www.shottalk.com/forum/images/badges/" target="_blank">http://www.shottalk.com/forum/images/badges/</a>
your images are here, however you have no .png images. PS: place a index.htm file in this directory to keep people from browsing your files... just create a blank text file and call it index.htm |
#6
|
|||
|
|||
![]()
Boy, that's real weird.
They clearly show in my ftp client. I must have made them wrong. when I save them as a .gif all I see is a 35x35 blank. instead of a 150x35 gif.......back to photoshop school I guess. ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|