Checked why my click throughs were not working - totally missing the URI and found this code:-
Back up your file before you edit it please!
functions_bannerads.php
Code:
Find
Around line 39
global $DB_site, $banner_ad;
Replace
global $DB_site, $banner_ad,$vboptions;
Find
Line 77 - 79
case "image":
$banner = "<a href=\"clickthru.php?uid=$ad[uid]\" target=\"_blank\"><img src=\"$ad[banner_image]\" height=\"$ad[height]\" width=\"$ad[width]\" border=\"0\"></a>";
break;
Added the full url code to the clickthru links - This should also work for people that have VB advanced installed, since i have it too :lick:
Replace
case "image":
$banner = "<a href=\"$vboptions[bburl]clickthru.php?uid=$ad[uid]\" target=\"_blank\"><img src=\"$ad[banner_image]\" height=\"$ad[height]\" width=\"$ad[width]\" border=\"0\"></a>";
break;
Find
Line 95 - 102
case "other":
$banner = $ad['other_code'];
$url_code = "clickthru.php?uid=" . $ad['uid'];
$banner = str_replace("{url}", $url_code, $banner);
$banner = str_replace("{image}", $ad['banner_image'], $banner);
$banner = str_replace("{height}", $ad['height'], $banner);
$banner = str_replace("{width}", $ad['width'], $banner);
break;
Replace
case "other":
$banner = $ad['other_code'];
$url_code = "$vboptions[bburl]clickthru.php?uid=" . $ad['uid'];
$banner = str_replace("{url}", $url_code, $banner);
$banner = str_replace("{image}", $ad['banner_image'], $banner);
$banner = str_replace("{height}", $ad['height'], $banner);
$banner = str_replace("{width}", $ad['width'], $banner);
break;
This hack is nice but will not work on "other" for google addsense javascripts until you change the case "other" code.