Forum ads with exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Emath
    Senior Member
    • Aug 2008
    • 146

    [Forum] Forum ads with exception

    how can i disable the advertising for a specific ad (which i have created in vbulletin Advertising system ) in one forum ?

    it only lets me to choose which forum the ad will appear.. (and i cant choose all but this one..)

    thanks
    בגרות במתמטיקה | פתרונות לספרי לימוד
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    You would disable that option you selected (to only show it in one forum) and instead put a condition around your ad code:

    HTML Code:
    <vb:if condition="$GLOBALS[forumid] != 2">This ad is NOT in forum 2.</vb:if>

    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

    • Emath
      Senior Member
      • Aug 2008
      • 146

      #3
      thanks alot , glad to know that there is $globals now.
      בגרות במתמטיקה | פתרונות לספרי לימוד

      Comment

      • Emath
        Senior Member
        • Aug 2008
        • 146

        #4
        why when i try to use this code in a template ( FORUMDISPLAY for e.g ) it doesnt work ?

        and where can i see what parameters i can input in $GLOBALS[param] ?
        בגרות במתמטיקה | פתרונות לספרי לימוד

        Comment

        • mccollin
          Senior Member
          • Jul 2003
          • 256
          • 3.6.x

          #5
          Lynne, I have a similar question. Is there a list of the globals somewhere? I am wanting to add some of the same criteria for ad placement in the forum sidebar that exists in the ad management... in particular running one ad if the user is not logged in, and another if they are logged in. Sounds like using the globals is the way to do that in my sidebar template blocks.
          Mikey
          PDAPhoneHome ... Get Converged! / NortheastFoto ... Get Imaged!

          Comment

          • mccollin
            Senior Member
            • Jul 2003
            • 256
            • 3.6.x

            #6
            Actually, is this the list here... or are these different from the globals?

            Mikey
            PDAPhoneHome ... Get Converged! / NortheastFoto ... Get Imaged!

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              That is a good list of conditions you may use.

              A condition that works in one place, will not necessary work in another. You *need* to consider the template and what variables are registered for use in them now.

              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

              Related Topics

              Collapse

              • NxtGenCowboy
                Ad Module
                by NxtGenCowboy
                It seems when I place the ad module, the ad never gets populated. I see the space for it but the ad never shows up. I did notice that sometimes the code gets changed dependent on where you put the ad....
                Sun 13 Oct '13, 7:43am
              • schmid
                Ad Module
                by schmid
                Hello,

                is it possible to show more then one banner in the Ad Module.
                On my forum are at the moment 15 Banners, can i show them all with the Ad Module, if I use HTML?

                Hope...
                Mon 9 Jul '18, 6:53am
              Working...