Plugin Update
1) easy creation of new zones when you add a banner ( choose existing zone or create new )
2) More specific display areas. Now featuring Global display, Gatway Page, Details Page, Ad Breaks
3) For ad break ads, implemented a better rotation method. To be accurate, a new random ad is displayed for each ad break position. No extra queries required
4) 2 plugin files moved from the core into the plugin. see update step 3
Update instructions
1) Take a DB backup using the admin backup tool in case anything goes wrong
2) New hook is required for this. Since no one has VL 1.1 yet, you need to apply this change ONCE
sources/rankings.php locate this block of code. starting at line 308 to 324
Code:
if (isset($CONF['ad_breaks'][$page_rank])) {
if ($is_top) {
// Close top table if it is still open
if (!$do_table_open) {
$TMPL['content'] .= $this->do_skin('table_top_close');
}
$TMPL['content'] .= $this->do_skin('ad_break_top');
if ($page_rank < $CONF['top_skin_num']) {
$TMPL['content'] .= $this->do_skin('table_top_open');
}
}
else {
$TMPL['content'] .= $this->do_skin('table_close');
$TMPL['content'] .= $this->do_skin('ad_break');
$do_table_open = 1;
}
}
Please replace it with the following
Code:
if (isset($CONF['ad_breaks'][$page_rank])) {
if ($is_top) {
// Close top table if it is still open
if (!$do_table_open) {
$TMPL['content'] .= $this->do_skin('table_top_close');
}
// Plugin Hook - Used by Ad plugin for example
eval (PluginManager::getPluginManager ()->pluginHooks ('ad_break_top'));
$TMPL['content'] .= $this->do_skin('ad_break_top');
if ($page_rank < $CONF['top_skin_num']) {
$TMPL['content'] .= $this->do_skin('table_top_open');
}
}
else {
$TMPL['content'] .= $this->do_skin('table_close');
// Plugin Hook - Used by Ad plugin for example
eval (PluginManager::getPluginManager ()->pluginHooks ('ad_break'));
$TMPL['content'] .= $this->do_skin('ad_break');
$do_table_open = 1;
}
}
3) 2 Plugin files which still sat in the core code ever since release, are now properly moved into the ad folder.
sources/admin/ delete add_banner.php and manage_banners.php
4) Redownload the zip from post #1 and simply upload ( do not delete your old plugin ) via admin plugin manager. This will install the required database changes.
If you happen to replace files via FTP, make sure you click the install icon afterwards
Please report possible errors. Ive tried to make this new method as simple as possible and bit of feedback about the usability would be helpful