Quote:
Originally Posted by tekguru
Cheers RT got you - makes sense.
Another query, on the conditionals is it possible to set it so that one ad in a rotating sequence only displays for certain months?
I have an advertiser that only has his banners running every other even numbered month, i.e Feb, Apr, Jun, Aug, Oct, Dec.....
|
AdminCP > Plugins & Products > Add new plugin
Product: vB Ad Management
Hook location: global_start
Title: Month conditional
Execution order: 5
Plugin PHP Code:
Code:
$adintegrate_month = date('F', TIMENOW);
Plugin is active? Yes
Save the plugin. Now you can use this conditional in your adcode:
Code:
<if condition="in_array($GLOBALS[adintegrate_month], array(February, April, June, August, October, December))">
Ad stuff goes here
</if>
You can change the list of valid months as you wish, of course.