Announcement

Collapse
No announcement yet.

Need these template conditionals for vb4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Big-K
    replied
    It worked. I owe you a cold one

    Leave a comment:


  • Zachery
    replied
    Yes

    Leave a comment:


  • Big-K
    replied
    sorry I'm slow. Would the syntax be:

    <vb:if condition="is_member_of($post,44)"><img src="images/misc/supporter.gif"></vb:if>

    Leave a comment:


  • Zachery
    replied
    $bbuserinfo, is the user browsing, use $post instead.

    Leave a comment:


  • Big-K
    replied
    Hi Zachery

    I'm trying to create a custom profile image for a usergroup (44) in postbit. The old conditional statement was
    <if condition="$post[usergroupid] == 44"><img src="images/misc/supporter.gif"></if>
    Using your example, I used the following:
    <vb:if condition="is_member_of($bbuserinfo,44)"><img src="images/misc/supporter.gif"></vb:if>
    The problem is that it puts the image on ever members profile, but only shows it to usergroup 44. What I want is to show the image only for members of usergroup 44. Please help

    Leave a comment:


  • Zachery
    replied
    Change if to vb:if.

    But
    <vb:if condition="is_member_of($bbuserinfo, 15,5)">
    You might need to change foruminfo[forumid] to $GLOBALS[forumid]

    Leave a comment:


  • DannyITR
    started a topic [Forum] Need these template conditionals for vb4

    Need these template conditionals for vb4

    I was wondering if anyone could tell me the proper code for the following conditionals in VB4. Here they are in VB3 code:

    1. <if condition="($bbuserinfo[usergroupid] != 15) AND ($bbuserinfo[usergroupid] != 5) ">

    2. <if condition="$bbuserinfo[languageid] == 3">

    3. <if condition="$foruminfo[forumid] != 252">

Related Topics

Collapse

Working...
X