No announcement yet.

Help with IF condition in Ad Locations Templates

  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with IF condition in Ad Locations Templates

    Hi, I need to display different ads based on three locations in the Ad_Footer_Start template:

    1. Home page (actually this is vbadvanced page)
    2. Thread Display
    3. Everyplace else

    I currently have two IF statements in that template:

    <if condition="THIS_SCRIPT == 'showthread'">
    Ad code for ad for footer when viewing a thread.


    <if condition="THIS_SCRIPT != 'showthread'">
    Ad code for rest of site.

    However, I need to split up this second one != between the vbadvanced home page and all other pages (except for showthead).

    Any advice on how to do this? - Broncos Fan Forum
    Total Broncos - Denver Broncos Blog and News

  • #2
    You'll need to ask at the vbadvanced site if they have a variable like THIS_SCRIPT defined on their pages that you can use for that condition.

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


    Related Topics