forumid condition in headinclude template problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • M.Scheel
    Senior Member
    • Sep 2001
    • 482
    • 5.7.0

    [Forum] forumid condition in headinclude template problem

    Hello

    I want to exclude a specific forum from being indexed by google via robots meta data.
    Therefor I need a condition in the headinclude template. I tried the following which should work however it does not:

    <vb:if condition="$forum[forumid] == 33"> <meta name="robots" content="NOINDEX, NOARCHIVE" /> </vb:if>

    Does anyone has a solution for me?

    Help is much appreciated

    StarBuG
    Michael Scheel
    Facharzt für Kinder- und Jugendmedizin

    Web: www.Kinderarzt-Cuxland.de
    Facebook: Kinderarzt.Cuxland
    Instagram: Kinderarzt.Cuxland
  • John Lester
    Senior Member
    • Jul 2000
    • 412
    • 4.1.x

    #2
    Have you tried placing the url to that forum in your robots.txt?
    BrainTalk is a support group for friends, family, caregivers, and patients with neurological disorders and other health related diagnosis.

    BrainTalk Communities Inc
    sigpic

    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      If you make it so Unregistered Users may not view the forum, then it will not get indexed by the spiders.

      Try using $GLOBALS['forumid'] in place of the variable you are using.

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools &lt;- awesome site for html/css help

      Comment

      • M.Scheel
        Senior Member
        • Sep 2001
        • 482
        • 5.7.0

        #4
        the $GLOBALS['forumid'] variable worked. Thanks

        I want the forum to be visible for guests and excluding it in robots.txt does not make it not listed on google but thanks for the help
        Michael Scheel
        Facharzt für Kinder- und Jugendmedizin

        Web: www.Kinderarzt-Cuxland.de
        Facebook: Kinderarzt.Cuxland
        Instagram: Kinderarzt.Cuxland

        Comment

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