Announcement

Collapse
No announcement yet.

convert vb3 conditional statement to vb5

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

  • napy8gen
    replied
    Thank you Guys!

    Leave a comment:


  • delicjous
    replied
    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.

    Leave a comment:


  • lange
    replied
    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.

    Leave a comment:


  • napy8gen
    started a topic convert vb3 conditional statement to vb5

    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>

Related Topics

Collapse

Working...
X