Announcement

Collapse
No announcement yet.

Need these template conditionals for vb4

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

  • [Forum] 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">
    Danny
    My Site ---->www.montrealracing.com

  • #2
    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]

    Comment


    • #3
      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

      Comment


      • #4
        $bbuserinfo, is the user browsing, use $post instead.

        Comment


        • #5
          sorry I'm slow. Would the syntax be:

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

          Comment


          • #6
            Yes

            Comment


            • #7
              It worked. I owe you a cold one

              Comment

              Loading...
              Working...
              X