Quote:
Originally Posted by dreamer81
this line will only show the first ad
PAN ad: <ad what="zone:2" /> <ad what="zone:1" />
for some reason, i cannot show two ads on the same line in the template. I have no idea why..... can you fix this?
|
Thx for reporting this. It was caused by a buggy regular expression and is fixed in version 1.0.3 of this product. Please see upgrade section in my first post.
Quote:
Originally Posted by fbastello
Basically, I added the following line just before return "<!-- BEGIN ad {$adcomment} -->{$ad['html']}<!-- END ad {$adid} -->";
in the view_ad function plugin:
$phpAds_context[] = array('!=' => 'bannerid:'.$ad['bannerid']);
This basically will allow you to have several <ad what="zone:1" /> anywhere in your templates and be sure that the same banner is not displayed twice.
|
I also thought about this before, but didn't implement it, because in my eyes, a zone denotes a location and therefore should be unique on page.
But as it might be useful for some people, I added this to version 1.0.3 introducing a new setting "Banner Dupe Check". However - I don't recommend using the same zone repeatedly on a page.