Announcement

Collapse
No announcement yet.

Forum ads with exception

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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
    בגרות במתמטיקה | פתרונות לספרי לימוד

  • #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


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

      Comment


      • #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


        • #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


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

            http://www.vbulletin.org/forum/showthread.php?t=231525
            Mikey
            PDAPhoneHome ... Get Converged! / NortheastFoto ... Get Imaged!

            Comment


            • #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 13th 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 9th Jul '18, 6:53am
              Working...
              X