Announcement

Collapse
No announcement yet.

Help with IF condition in Ad Locations Templates

Collapse
X
 
  • 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>

    and

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

    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?
    BroncosForums.com - 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 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

    Working...
    X