Announcement

Collapse
No announcement yet.

convert vb3 conditional statement to vb5

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

  • convert vb3 conditional statement to vb5

    Hello Guys,
    Can you please check if this conversion is correct format. I am not a programmer.

    Code:
    <if condition="in_array($forumid, array(1,44,45,47,48,49,50,51,70,71))"> 
    <if condition="is_member_of($bbuserinfo, 2,5,6,7,9,11,12,13)"> 
    $forumbits
    </if>
    </if>
    converted to vb5:

    Code:
    <vb:if condition="!in_array($channel['nodeid'], array(1,44,45,47,48,49,50,51,70,71))">
    <vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,9,11,12,13)"> 
    
    </vb:if>
    </vb:if>
    Get Our New Flat Theme Pro Pack or Grab all 34 vb5.5.1 skins @sultantheme.com -vb3 responsive style or vb4 responsive style and vbcloud custom style

  • #2
    Originally posted by napy8gen View Post
    Hello Guys,
    Can you please check if this conversion is correct format. I am not a programmer.

    Code:
    <if condition="in_array($forumid, array(1,44,45,47,48,49,50,51,70,71))">
    <if condition="is_member_of($bbuserinfo, 2,5,6,7,9,11,12,13)">
    $forumbits
    </if>
    </if>
    converted to vb5:

    Code:
    <vb:if condition="!in_array($channel['nodeid'], array(1,44,45,47,48,49,50,51,70,71))">
    <vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,9,11,12,13)">
    
    </vb:if>
    </vb:if>
    I don't know if the conversion is correct but the ! mean Not in these channels.

    Comment


    • #3
      Depends on where you want to implement those conditions you could use $page['channelid'] or $page['nodeid'] everywhere. In conversation could use $conversation, $channel or $forum or $currentConversation ... like I said, depends on where to use.

      $bbuserinfo should be $user['usergroupid']

      And like lange said... this is not the same as before, because you negate the first condition in your secound (vB5) code.
      vBulletin-Forum.de closed!

      Comment


      • #4
        Thank you Guys!
        Get Our New Flat Theme Pro Pack or Grab all 34 vb5.5.1 skins @sultantheme.com -vb3 responsive style or vb4 responsive style and vbcloud custom style

        Comment

        Related Topics

        Collapse

        Working...
        X