Finding forumid inside of video bbcode template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • way2xtreme
    Member
    • Sep 2006
    • 66

    [Forum] Finding forumid inside of video bbcode template

    Hi I am trying to limit guest viewing videos in certain forums.

    I have tried:
    <vb:if condition="in_array($GLOBAL['forumid'], array(78,80,85,83))">
    <vb:if condition="in_array($thread['forumid'], array(78,80,85,83))">
    <vb:if condition="in_array($post['forumid'], array(78,80,85,83))">
    <vb:if condition="in_array($forumid , array(78,80,85,83))">

    None of above works, what would be the right variable for this?


    Also, if I want to put <vb:if condition="in_array($post['forumid'], array(78,80,85,83))"> and <vb:if condition="$bbuserinfo['userid'] == 0"> togehter, would it look like this?

    <vb:if condition="in_array($post['forumid'], array(78,80,85,83)) AND $bbuserinfo['userid'] == 0">

    Thanks
    W
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24358
    • 5.7.X

    #2
    You want to show it in a particular set of forums or block it from them?

    Code:
    <vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if>
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • way2xtreme
      Member
      • Sep 2006
      • 66

      #3
      I want to block it so that would be

      <vb:if condition="!in_array($forum['forumid'], array(1,2,3))">Block this from forum 1, 2 and 3</vb:if>

      However, I cant get the forumid to work...

      Also, I am using page cache, once the visitor logs in he still cant see the video.

      Anyway to work around it?

      Thx

      Comment

      Related Topics

      Collapse

      Working...