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:|
- 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 |
|
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).""; ?> |
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).""; ?> |
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 |
/> 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.
Comma separated list e.g.:
.google., .bing., .yahoo., .ask., search?, search., /search/
Comma separated list e.g.:
0.0.0.1, 0.0.0.2Or 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.3For reference your current IP address is
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.
| Name | Stored | Default |
| '; } else { echo ' | ||
| '; } echo "$key"; echo " | "; $value = htmlentities($value); echo "$value"; echo " | "; echo $default_options[$key]; echo " |
| Widget | Setting:Value |
| '; } else { echo ' | |
| '; } echo $key; echo " | "; echo '';
if (is_array($val)){
foreach($val as $subkey=>$subval){
echo $subkey.':'.htmlentities($subval).' '; } } else { echo htmlentities($val); } echo ' |
| No widget settings found |
'; echo 'ADINJ_PATH='.ADINJ_PATH.''; global $adinj_warning_msg_filewrite; if (!empty($adinj_warning_msg_filewrite)){ echo "
'; echo 'ADINJ_CONFIG_FILE='.ADINJ_CONFIG_FILE.'
'; echo 'ADINJ_AD_PATH='.ADINJ_AD_PATH.'
'; echo 'Plugin version='.adinj_get_version(); echo '
$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).
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.
<!--noadsense--> OR <!-no-adsense--> OR <!--NoAds--> OR <!--OffAds--> - disables all ads on this page. These tags are here to make this plugin compatible with the tags from Adsense Injection, Whydowork Adsense and Quick Adsense.<!--adsandwich--> - Inserts the top and bottom ad but no random ads. Disables all other ads.<!--adfooter--> - Insert a single ad at the very bottom. Disables all other ads.<!--adsensestart--> - Random ads will start from this point*. For compatibility with Adsense Injection.<!--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.<!--adstart--> - Random ads will start from this point*.<!--adend--> - Random ads will not be inserted after this point*.These four tags will not affect the top and bottom ad.
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.
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.