How to Insert widget ( forum_id and thread )

Discussion in '[bd] Widget Framework' started by khucthuydu, May 9, 2014.

  1. khucthuydu

    khucthuydu New Member

    If i want insert 1 widget at forum_id and all therad (on this forumid)

    i use , but not work, how me how to ....?

    Cant work together
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    You can use position "forum_view, thread_view" and use expression:

    PHP:
    $forum['node_id'] == 1
     
  3. khucthuydu

    khucthuydu New Member

    Tks !

    Can i use position "forum_view, thread_view" and use expression:
    PHP:
    in_array($forum['node_id'], array(xyz))
    or another

    PHP:
     $forum['node_id'] == 1
    $forum
    ['node_id'] == 2
    $forum
    ['node_id'] == 3
    $forum
    ['node_id'] == 4

     
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Yes, you can use this expression with those positions.

    PHP:
    in_array($forum['node_id'], array(xyz))
     
Loading...