Conditional help

Discussion in '[bd] Widget Framework' started by imthebest, Oct 23, 2017.

  1. imthebest

    imthebest New Member

    Hi,

    I have just upgraded from 2.5.9 to 2.6.3B22 and would like to get some help to migrate this Expression to a Conditional:

    Code:
    XenForo_Template_Helper_Core::callHelper('ismemberof', array($visitor,2)) AND in_array($forum['node_id'], array(1,2,3)) == false
    This widget should also display for desktop browsers only, so I believe I also need to merge a third condition: !{$visitorIsBrowsingWithMobile}

    Could you please let me know what should I put on the Conditional box so it could take in account the 3 conditions mentioned above?

    Thanks,
    imthebest
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Hi there,

    I think this would work:

    Code:
    !{$visitorIsBrowsingWithMobile} && {xen:helper isMemberOf, $visitor, 2} && !in_array({$forum.node_id}, {xen:array '0=1', '1=2', '2=3'})
     
    RoldanLT and imthebest like this.
Loading...