Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorfraserbirt
    • CommentTimeMay 15th 2008
     

    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?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMay 16th 2008
     
    Project Admin

    It should be something like:

    if(!empty($output)) {
    $code .= "<ul class=\"oio-link-sidebar\">\n";
    $code .= $output;
    $code .= "</ul>\n";
    } else {
    //adsense code here
    }

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorfraserbirt
    • CommentTimeMay 16th 2008
     

    Thanks. I'll give that a go.

    Need help?  Quick start guide | Troubleshooting | All help topics