The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
IF conditionals in postbit
Hi all, for some strange reason i cannot get the below to show the individual tables based on usergroup, it always shows the first condition (shows the table with Pic1 as the background) for all the usergroups shown in the code below, it doesn't show for any other usergroups
HTML Code:
<if condition="is_member_of($bbuserinfo, 6)"> <table background="http://www.mysite.com/images/pic1.png"> <tr><td height="23" width="147"></td></tr> </table> <else /> <if condition="is_member_of($bbuserinfo, 5)"> <table background="http://www.mysite.com/images/pic2.png"> <tr><td height="23" width="172"></td></tr> </table> <else /> <if condition="is_member_of($bbuserinfo, 7)"> <table background="http://www.mysite.com/images/pic3.png"> <tr><td height="23" width="109"></td></tr> </table> <else /> <if condition="is_member_of($bbuserinfo, 11)"> <table background="http://www.mysite.com/images/pic4.png"> <tr><td height="23" width="299"></td></tr> </table> </if> |
#2
|
|||
|
|||
try
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
I don't think thats right, although out of desperation i did try it , still no go!
|
#4
|
|||
|
|||
If you're talking about the user group of the poster then it should be $post instead of $bbuserinfo. $bbuserinfo will be the info for the viewing user (and so would be the same for every post).
I don't see anything wrong with what you have except that I think you'd need a </if> for each <if>, so you'd need 3 more </if>s at the end. |
#5
|
||||
|
||||
Thanks for that, the idea is anyone viewing the posts will see the table with the background pic, so if i did it for you (your title is advisor) everyone would see (under your signature) the pic for you but not under theirs, like here at vb.org where it shows if you are developer or coder....etc
as for the </if>(s) i thought i only needed one because of the use of <else />. Thanks for the replies. --------------- Added [DATE]1314118699[/DATE] at [TIME]1314118699[/TIME] --------------- Doh! just worked it out! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|