Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorRedspain
    • CommentTimeAug 8th 2009
     

    Hi!

    I'm trying to configure default ads but I need insert some php code.

    I'm working with some function that call diferent ads in diferent circunstances, this function are <? php called my_ads(); ? >

    How can I include this php code?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeAug 8th 2009 edited
     
    Project Admin

    I've added an eval function to accomodate php code when running an "html" default ad. You'll need to re-download the latest code and upload the "include/functions.php" file again.

    The only thing to remember is that the php function you use must be declared before the OIO output code is run, otherwise you'll get a php error.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorRedspain
    • CommentTimeAug 8th 2009
     

    Thanks a lot!

    This work like a charm!

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorRedspain
    • CommentTimeOct 11th 2010
     

    I need this function in a version 2.31! is it possible?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeOct 11th 2010 edited
     
    Project Admin

    It's been part of every version since I initially made the change last year. You can use php code as part of any default ad (as long as you're using the 'html' ad type).

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorRedspain
    • CommentTimeOct 11th 2010
     

    I'm trying to include php code from new purchase in admin interface but doesn't work. Only works in default ads but not through purchases.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeOct 11th 2010
     
    Project Admin

    I've updated it to work with purchases - restricted to using the 'ad code' textbox for a banner ad purchase (so that advertisers can't add php code).

    The updated OIO files are:

    * include/functions.php
    * include/output.php

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorRedspain
    • CommentTimeOct 11th 2010
     

    Thanks Simon! I'm going to test it.

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