Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.1   Updated Monday, April 21st, 2008 at 6:18pm

Interstitial Ads Plugin for WordPress

This plugin allows you to automatically add javascript (or anything else) to all links on your WordPress site. One common use for this is the implementation of interstitial ads, which require javascript to be added to each link, although there are many other possible uses.

Download

Installation

  • Download the above file
  • Rename dd-interstitial.txt from .txt to .php and upload it to your plugins directory
  • Activate the plugin from the WordPress admin panel
  • Configure the options under the admin panel: Options - DDInterAds

Usage

To use this plugin, simply go to the options page and enter the code you want added to all links.

Change Log

  • 04-21-08 Version 1.1 - Code is now ignored if it is in code, pre, or textarea blocks.
  • 05-23-07 Version 1.0 - First release.

Notes

For those of you using this plugin to add interstitial ads, often times you must also add some javascript (provided by the advertiser) to the header of your files. You can do this in the header.php file in your theme directory.

This plugin uses the ob_start function for output buffering to allow filtering of the entire page before display. While this generally works without any problems, certain plugins may conflict with this - especially if they are using a similar method. Keep this in mind when troubleshooting.

Lastly - Future options may be added depending on interest in the plugin.

  1. I found this site on net while browsing. You can have latest php scripts here on this site on a small monthly membership and site gets new content on a regular basis so you will be getting all that new content for free. Just have a look.

  2. Would you be able to make this work on the main Categories also? I would LOVE to have the categories in a drop down box. Thanks so much for your help.

  3. Very cool. It would be nice to have a feature where I limited links to only a certain part of my blog. For example if I added [start dd-interstitial] at the beginning of my loop and then [end dd-interstitial], it would only add links within that area.

    Otherwise, a very nice script!

  4. Joe: Happy to hear that :) Let me know how it works for you.

  5. 1
    Joe Ferro

    I have been looking for this for a looooooooong time! I will install it now and let you know if here are problems. MANY MANY THANKS!!

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.