Announcement

Collapse
No announcement yet.

Conditionals for ads

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

  • Conditionals for ads

    I have an adsense block showing in the top right of my header that does very well. I have some issues with targeting and filtering on some pages.

    I am wanting to hide the adsense just from the index and one forum, and instead show banners.

    Could someone please help me with the conditionals that I could use to do this?

    Thanks

  • #2
    Code:
    <if condition="THIS_SCRIPT == 'index'">
        <!--banner ad code-->
    <else />
        <if condition="$forumid != X">
            <!-- banner ad code -->
        <else />
            <!-- adsense code -->
        </if>
    </if>
    Where X is the forumid (forumdisplay.php?f=X) that you want to use banner for.
    Best Regards,
    Andy Huang

    Comment

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