Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: BB-Ads

@wittmania

Member

UPDATE: The sample ad file now includes the code necessary to display different ads based on the context. For example, if it is a topics page, it will display one ad and if it is a forum page, it will display a different one.

The code is something like this:

<?php
if ( strpos($_SERVER['REQUEST_URI'], 'topic.php') ) { ?>
<div>An ad for a topics/posts page</div>
<?php
} elseif { another specific page;
} else { default ad;
} ?>

The sample file includes elseif checks for topic.php, forum.php, profile.php, and a “default” if none of the above pages are detected.

This would allow you to have one file per sponsor/advertiser, with a different context-based ad for each situation.

Skip to toolbar