Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthortomdebruin
    • CommentTimeMar 13th 2008
     

    I have a 3 column design and would like to run text ads down the sides (columns 1 and 3).

    Currently if I use the

    <?php
    if(function_exists('oiopub_sidebar_links')) {
    oiopub_sidebar_links('', $title);
    }
    ?>

    I end up with the same ads down each side. Is there a way to split the ads down each column? so if I have 4 ads, 2 will appear on each column.

    I realise I am able to do this with the banner ads by creating 2 zones, but I would like to keep the article specific adverts which doesn't appear possible with the banner ad options.

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

    Hmmm...it's not possible without a bit of modification to the output function, but I think it would be possible to change the link output function so it does something like:

    oiopub_sidebar_links($args, $title, $link, $start, $finish);

    In effect, 2 new arguments that specify which links from the list to select. I'll have a quick look and see whether I can set that up for you.

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

    UPDATE: ok, I've updated the download. Test as follows:

    if(function_exists('oiopub_sidebar_links')) {
    oiopub_sidebar_links('', '', '', 1, 3);
    }

    This would keep all other variables default (the first 3), but start at link 1, and end at link 3 in the list. Let me know whether it works.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthortomdebruin
    • CommentTimeMar 17th 2008 edited
     

    thanks for your quick response.

    I have got the new download but the new options don't appear to work. Still all the adverts show in both columns.

    example

    I have in sidebar 1:
    <ul class="sidebar">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else :
    if(function_exists('oiopub_sidebar_links')) {
    oiopub_sidebar_links('', '-1', '', '1', '5');
    }
    endif; ?>
    </ul>

    and in sidebar 2 the same but : iopub_sidebar_links('', '-1', '', '6', '10');

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

    I missed out an argument in the output.php file. I've fixed it, and fingers crossed, it should work now.

    The code you have above is correct, you'll just need to re-download the core files, and upload the include/output.php file once more.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthortomdebruin
    • CommentTimeMar 19th 2008
     

    excellent. It all works. Thanks for your help and quick responses.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthortomdebruin
    • CommentTimeMar 19th 2008 edited
     

    However,

    just noticed that now pages don't validate since the <ul class ad-feature> is being generated even if there is not a purchased advert there. The </ul> only appears on actual adverts, rather than the empty containers.

    Not a deal breaker by any means but something to consider.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeMar 21st 2008
     
    Project Admin

    I'll try and pick that off shortly. Glad the new functionality now works for you.

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