Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

  1.  

    My Wordpress website includes an A-Z index using around 100 different categories. The same zone shows on all these pages, but I don't want to show 'Advertise here' boxes or empty advertising slots, but when I set the "empty" parameter to a value of 0, instead of no empty ad slots being shown, every single banner advert on any of the A-Z directory pages is shown. How do I correct that?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMar 4th 2012
     
    Project Admin

    Could you copy & paste here the exact code you're using to display that ad zone? It would also be useful to have a link to a page on your site where the zone is displaying (with or without empty=0).

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

    Here is a link: http://www.herefordequestrian.co.uk/category/a-z/legal-matters/

    The code in use for that page at the moment is:
    <?php if(function_exists('oiopub_banner_zone')) oiopub_banner_zone(14, 'center'); ?>
    <?php if(function_exists('oiopub_banner_zone')) oiopub_banner_zone(22, 'center'); ?>
    <script type='text/javascript' src='http://www.herefordequestrian.co.uk/wp-content/plugins/oiopub-direct/js.php?type=link&align=center&zone=1'></script>

    (Zone 1 is the sidebar ad)

    So I tried using the following code, but it added all the other banner ads from other pages:

    <?php if(function_exists('oiopub_banner_zone')) oiopub_banner_zone(22, 'center'); ?>
    <script type='text/javascript' src='http://www.herefordequestrian.co.uk/wp-content/plugins/oiopub-direct/js.php?type=link&align=center&zone=1'></script>
    <script type='text/javascript' src='http://www.herefordequestrian.co.uk/wp-content/plugins/oiopub-direct/js.php?type=banner&align=center&zone=14&empty=0'></script>

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMar 4th 2012 edited
     
    Project Admin

    I just tried using zone 14 on a blank page, as an example. A couple of things I noticed:

    1.) It looks as though you've setup the zone to display 10 ads in a row at once. Do you want to display that many at a time? If not, I'd recommend decreasing the number of "rows" in the zone.

    2.) As you've setup the ad zone to use categories, you shouldn't use javascript to display the ads. The reason for this is that if you use javascript, OIO has no way to tell what category(s) are associated with the page the visitor is on. Try using php code instead.

    I think that you should then be able to use empty=0 without an issue.

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

    10 rows may be more than I need, but I'd still want 5 or 6 and need the ads to be relevant to that category. So I'll try the php code.

    So just to check the code for that.....

    At the moment the settings page says the code to use is:
    <?php if(function_exists('oiopub_banner_zone')) oiopub_banner_zone(14, 'center'); ?>

    I'm unsure where the empty parameter should be. Is it:

    <?php if(function_exists('oiopub_banner_zone')) oiopub_banner_zone(14, 'center', empty=0); ?>

    Should there be a , or a ' or anything like that as well?
    Thanks

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMar 5th 2012 edited
     
    Project Admin

    For php code you'd use a settings array, like this:

    <?php
    if(function_exists('oiopub_banner_zone')) {
    oiopub_banner_zone(14, array(
    'align' => "center",
    'empty' => 0,
    ));
    }
    ?>

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

    Brilliant, thankyou. That has worked.

    Next question - some of the sidebar banners are in more than 1 category, but that means their sidebar ad is duplicated on the index page. Is there a way of preventing the duplication?

    Examples here. This is the index page:
    http://www.herefordequestrian.co.uk/directory/

    I only want their advert showing once on this page, but still allow it to show on as many category pages as necessary. Is that possible?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMar 7th 2012
     
    Project Admin

    Hmmm... no simple answer to that question, since the ads are separate entities (not related). I'll have a think about a potential workaround though.

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