1 to 3 of 3
Hello,
This may be where I betray my utter lack of PHP knowhow, but I've been fiddling around trying to get the text links to show my Adsense code if the inventory is empty. However, I can't seem to get the thing right, and I was wondering if you had any suggestions?
I thought I might be able to figure something out by finding:
if(!empty($output)) {
$code .= "<ul class=\"oio-link-sidebar\">\n";
$code .= $output;
$code .= "</ul>\n";
In the //sidebar links output section, and adding my ad code there. (Formatted correctly, of course)
I can get the Google ads to render, but they render under all circumstances, instead of only when the Text Ads are empty.
Just curious if anybody else has tried to mess with this, perhaps with more success?
It should be something like:
if(!empty($output)) {
$code .= "<ul class=\"oio-link-sidebar\">\n";
$code .= $output;
$code .= "</ul>\n";
} else {
//adsense code here
}
Thanks. I'll give that a go.
1 to 3 of 3