IF conditional not working for forumid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • caracena
    Member
    • Apr 2006
    • 85
    • 3.5.x

    [Forum] IF conditional not working for forumid

    Hi everyone,

    I'm trying to stop the Facebook "I Like" button from showing up on my private forums but I can't get it to work. Here's what I'm doing:
    Code:
    <vb:if condition="$show['fb_likebutton'] AND $foruminfo['forumid'] != 49">
    {vb:raw fblikebutton}
    </vb:if>
    Any ideas?
    Cesar Aracena
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    $thread['forumid'] will give you the forumid the thread is in.

    I used $bookmarksites though for the same conditional, assuming you have bookmarksites turned on.

    PHP Code:
    <vb:if condition="$show['fb_likebutton'] && $bookmarksites"
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Zachery
      Former vBulletin Support
      • Jul 2002
      • 59097

      #3
      $thread is only available in the shotthread template.

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24287
        • 6.0.X

        #4
        Originally posted by Zachery
        $thread is only available in the shotthread template.
        Yeah I thought that was what he was after....

        Isn't it the showthread template that such a conditional would go in? (As that's where the Facebook Like button is called)? Mine is in there.....
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • caracena
          Member
          • Apr 2006
          • 85
          • 3.5.x

          #5
          All right, thanks a lot! It worked perfectly in showthread.

          About $bookmarksites... what do you mean with that? I have it in spanish on my forum so maybe I can't find it becouse of a poor translation but... what is that? Where do I find it? In each forum properties?
          Cesar Aracena

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...