Random ads | Top | Bottom | Widgets | Ad insert mode/dynamic restrictions | Debug | Quick Start | Test ads

These settings apply to all ads (random, top, bottom, and widget). They will override all other settings.

/> On:
/> Off
/> Test mode - Only show ads to admin.
Warning: Turn any caching plugin *off* before using test mode. If you leave them on the test adverts will be cached and shown to your real visitors.

- only for single posts and pages

Don't show ads on these page types: home -
page - publish; ?> page(s)
single -publish; ?> individual blog post(s)
archive - only widgets currently appear on archives
Category and tag conditions
Rotation:
".adinj_percentage_split('ad_code_random_', 1, $ops)."
"; ?>

Docs: On individual posts or pages this advert is inserted between randomly selected paragraphs. On a multi-post page (e.g. home page), one ad is inserted into each post. Try a 468x60 or 728x90 banner.

Be especially careful if you decide to use the 'float' layout options. Make sure that you don't have adverts floated over the top of other page elements, or vice-versa.

These random ad injection settings are specific to individual posts and pages.

(default is to inject ads at unique positions)

'; adinj_selection_box("no_random_ads_if_shorter_than", array(ADINJ_RULE_DISABLED, 100, 200, 300, 500, 1000, 1500, 2000, 2500, 3000)); echo adinj_getdefault('no_random_ads_if_shorter_than'); ?>
'; adinj_selection_box("one_ad_if_shorter_than", array(ADINJ_RULE_DISABLED, 100, 200, 300, 500, 1000, 1500, 2000, 2500, 3000)); echo adinj_getdefault('one_ad_if_shorter_than'); ?>
'; adinj_selection_box("two_ads_if_shorter_than", array(ADINJ_RULE_DISABLED, 100, 200, 300, 500, 1000, 1500, 2000, 2500, 3000, 5000, 10000)); echo adinj_getdefault('two_ads_if_shorter_than'); ?>
'; adinj_selection_box("three_ads_if_shorter_than", array(ADINJ_RULE_DISABLED, 100, 200, 300, 500, 1000, 1500, 2000, 2500, 3000, 5000, 10000, 20000)); echo adinj_getdefault('three_ads_if_shorter_than'); ?>

Docs: The above directives are processed in order from top to bottom.

()

These random ad injection settings are specific to your home page.


Docs: On a multi-post home page, one randomly positioned advert will be inserted into each post, up to the maximum number specified here.


Rotation:
".adinj_percentage_split('ad_code_top_', 1, $ops)."
"; ?>
The top ad is in addition to the quantity of other ads selected.

Docs: The top ad will only appear on single posts and pages. It will not appear on multi-post pages. Try a 468x15 or 336x280 advert.


Rotation:
".adinj_percentage_split('ad_code_bottom_', 1, $ops)."
"; ?>
The top ad is in addition to the quantity of other ads selected.

Docs: The bottom ad will only appear on single posts and pages. It will not appear on multi-post pages. Try a 336x280 advert.

You must configure your individual widgets from the widgets control panel. However these settings are global to all widgets. Also note that the main set of global settings will override these ones.

Don't show widget ads on these page types:

home -
page - publish; ?> page(s)
single - publish; ?> individual blog post(s)
archive - includes category, tag, author, and date pages types

Ad insertion mode

/> mfunc: Use mfunc tags for dynamic features - Dynamic features will work with WP Super Cache, W3 Total Cache and WP Cache. Only select this mode if you are using one of those caching plugins.

Note: A supported caching plugin does not appear to be active. If you are not using WP Super Cache / W3 Total Cache / WP Cache you should use one of the direct insertion modes.

'; } ?>

/> direct_dynamic: Direct ad insertion with dynamic features - Dynamic features will work if no caching is used. Only select this if you are not using any caching plugin.

/> direct_static: Direct static ad insertion - No dynamic feature support. Select this if you are are not using dynamic features or are using an incompatible caching plugin.

Show ads only to search engine visitors (dynamic feature)


Comma separated list e.g.:
.google., .bing., .yahoo., .ask., search?, search., /search/

Blocked IP addresses (dynamic feature)

Comma separated list e.g.:
0.0.0.1, 0.0.0.2

Or you can list one IP per line with optional comments e.g.

192.168.0.1
0.0.0.2
//my ip
0.0.0.3

For reference your current IP address is

Enable debug mode

If you are not sure why ads aren't appearing, or why they are appearing, enable debug mode and look at the debug information (search for 'ADINJ DEBUG') in the HTML of your content pages.

If you want to restore all settings (excluding the ad contents) to their default values use this button.

You can delete the database settings if you are going to uninstall Ad Injection (they will be automatically deleted if you uninstall via WordPress as well).

This button will delete all your Ad Injection widgets.


With WP Super Cache version 0.9.9.8+ you can use the fastest 'mod rewrite rules' caching mode. With older versions of WP Super Cache you'll have to use the slower 'legacy mode'.

Go to the WP Super Cache advanced options page WP Super Cache advanced options page to configure the caching mode.

W3 Total Cache will cache the the page on-disk if you use its Page Cache: 'Disk (basic)' mode. However if you use its Page Cache: Disk (enhanced) mode it won't cache the page. You might find that WP Super Cache works faster when Ad Injection's dynamic features are enabled as it can return pre-built static PHP pages via mod rewrite rules, rather than having load up WordPress to return them via PHP. If you aren't using Ad Injection's dynamic features then you can use W3 Total Cache with Page Cache: Disk (enhanced) mode.

With WP Cache just turn the caching on and all pages will be cached. You may however want to consider upgrading to WP Super Cache as it has more efficient caching options such as serving static files via mod rewrite.

Recommended settings:

  • WP Super Cache - 0.9.9.8+ using mod_rewrite mode.
  • W3 Total Cache - Page Cache: 'Disk (basic)' mode.
  • WP Cache - Just turn the caching on.

Status

Ads enabled
   home
   page
   single
   archive
Random ads '; $info = adinj_get_status('random_home'); echo adinj_dot($info[0]).' '.$info[1].'
'; $info = adinj_get_status('random_pool'); echo adinj_dot($info[0]).' '.$info[1].'
'; $info = adinj_get_status('random_alt_pool'); echo adinj_dot($info[0]).' '.$info[1].'
'; ?>
Top ad '; $info = adinj_get_status('top_pool'); echo adinj_dot($info[0]).' '.$info[1].'
'; $info = adinj_get_status('top_alt_pool'); echo adinj_dot($info[0]).' '.$info[1].'
'; ?>
Bottom ad '; $info = adinj_get_status('bottom_pool'); echo adinj_dot($info[0]).' '.$info[1].'
'; $info = adinj_get_status('bottom_alt_pool'); echo adinj_dot($info[0]).' '.$info[1].'
'; ?>
Widgets
   home
   page
   single
   archive
Mode
Restrictions
Debug mode

Settings dump from database (all in 'adinj_options' option)

$value){ if ($count % 2 == 0){ echo '"; $count++; } } else { echo "
No options in database!"; } echo '
NameStoredDefault
'; } else { echo '
'; } echo "$key"; echo ""; $value = htmlentities($value); echo "$value"; echo ""; echo $default_options[$key]; echo "
'; ?>

Widget settings dump from database (all in 'widget_adinj' option)

$val){ if ($count % 2 == 0){ echo '"; echo ''; ++$count; } } else { echo ''; } echo '
WidgetSetting:Value
'; } else { echo '
'; } echo $key; echo "'; if (is_array($val)){ foreach($val as $subkey=>$subval){ echo $subkey.':'.htmlentities($subval).'
'; } } else { echo htmlentities($val); } echo '
No widget settings found
'; echo '

Other settings

'; echo 'ADINJ_PATH='.ADINJ_PATH.'
'; echo 'ADINJ_CONFIG_FILE='.ADINJ_CONFIG_FILE.'
'; echo 'ADINJ_AD_PATH='.ADINJ_AD_PATH.'
'; echo 'Plugin version='.adinj_get_version(); echo '
'; global $adinj_warning_msg_filewrite; if (!empty($adinj_warning_msg_filewrite)){ echo "

Errors on 'Save all settings'

$adinj_warning_msg_filewriteWarnings on 'Save all settings'
$adinj_warning_msg_chmod

1. Copy and paste your ad code into the ad code boxes.

2. Choose how many ads of each type you want displayed.

3. Configure any ad positioning (optional).

4. Check the ad insertion mode (in the Insertion mode and ad display restriction section).

5. If you are using a compatible ad insertion mode you may configure dynamic ad display restrictions. i.e. showing ads only to certain people (e.g. search engine visitors), or blocking ads from specific IPs.

6. Enable your ads (tick box at the very top).

Supported in-page tags

These tags can be inserted into the page source to override the configured behaviour on individual pages. Because sometimes specific pages need to be treated differently.

  1. <!--adsensestart--> - Random ads will start from this point*. For compatibility with Adsense Injection.
  2. <!--adsenseend--> - Random ads will not be inserted after this point*. New tag but I've kept the Adsense Injection naming convention to make it fit with the above tag.
  3. <!--adstart--> - Random ads will start from this point*.
  4. <!--adend--> - Random ads will not be inserted after this point*.

These four tags will not affect the top and bottom ad.

Custom field for disabling adverts

To disable all adverts on the page you can also set the custom disable_adverts field to '1' from the WordPress post editor.

You can copy and paste these adverts into the boxes above to test your ad setup before switching to your real ads.

468x60 banner

TEST ADVERT 468x60 - www.reviewmylife.co.uk

728x90 banner

TEST ADVERT 728x90
www.reviewmylife.co.uk
www.advancedhtml.co.uk

160x90 link unit

TEST ADVERT 160x90
reviewmylife.co.uk advancedhtml.co.uk

468x15 link unit

TEST ADVERT 160x90 reviewmylife.co.uk

336x280 large rectangle

TEST ADVERT 336x280 - www.reviewmylife.co.uk

468x60 banner with dynamic PHP

The PHP will execute if you use a mfunc compatible caching plugin which is correctly configured, or if you don't use any caching plugin at all.

TEST ADVERT 468x60 with date() and rand()

www.advancedhtml.co.uk