• Instead of html/css ad i need to inject a php file in the sidebar widget.
    Normally I just put [include file=”ad.php”] in a normal text widget, but when do the same with this plug-in it just prints the line, which is to be expected.
    How to make it actually output the output of the php scrip?

    http://wordpress.org/extend/plugins/ad-injection/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author reviewmylife

    (@reviewmylife)

    Hi Fking, if you want the PHP to be processed the PHP plugin that you are using needs to be run after Ad Injection (right now I’d guess your PHP plugin is running, and then Ad Injection is inserting its content). You can try altering the priority of Ad Injection from the advanced settings page, but it might help to know what priority the PHP plugin is set at.

    Thread Starter Fking

    (@fking)

    Right now it only prints the line i use to include it.
    So i guess except the priorities i have to find a way to properly include it as well?

    Plugin Author reviewmylife

    (@reviewmylife)

    I don’t quite understand your question.

    But what you need to do is to have your PHP plugin run after the Ad Injection plugin. This can be done by tinkering with the plugin priorities.

    Thread Starter Fking

    (@fking)

    What i meant is that i suppose that even after i change the priorites it will still just outputs the include line?

    Thread Starter Fking

    (@fking)

    I tried with the priorities, but always it just prints the include line “[include file=”ad.php”]”
    I need a way to make it NOT just print everything in the sidebar widget but actually process the include line and include the output of the PHP file.

    So basically I’m asking if there is a way to include an external PHP file in the sidebar widget instead of just printing on the screen any code that’s placed in the sidebar widget.

    Plugin Author reviewmylife

    (@reviewmylife)

    Hi Fking, What PHP inclusion plugin are you using?

    Instead of using these tags, try using actual PHP. e.g.

    <?php include 'ad.php'; ?>

    That should get executed by Ad Injection directly rather than relying on your other plugin.

    Thread Starter Fking

    (@fking)

    wow that was so easy 🙂
    i was over complicating my life by using AmberPanther WP Include File plug-in to include php, when your plug-in does PHP directly! 🙂

    thank you for your fine plug-in and personal support, i just donated and feeling thankful! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Ad Injection] Injecting a .php file?’ is closed to new replies.