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 types: |
front - home - latest posts page (may be same as front) page - publish; ?> page(s) single -publish; ?> single blog post(s) archive - only widgets currently appear on archives search pages - widgets only for now 404 error pages - widgets only for now |
If you have set your front page to be a static 'page' rather than your latest posts, the 'page' tick box will also apply to the front page. | |
| Content length counting method: | 'viewable chars', 'all' => 'all chars', 'words' => 'words')); ?> |
When defining conditions that refer to the length of the content; do you want to count viewable characters, all characters (which includes HTML tags), or number of words? | |
|
Rotation: ".adinj_percentage_split('ad_code_random_', 1, $ops).""; ?> | |
Docs: On single posts or pages this advert is inserted between randomly selected paragraphs. On 'your latest posts' 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 single posts and pages only. To configure the number of home page ads go to the next section.
|
| |||||||||||
| (default is to inject ads at unique positions) | |||||||||||
Docs: The 'random ad limit' rules are processed in order from left to right. | |||||||||||
These random ad injection settings are specific to your home page. The home page is the page containing your latest posts. It may not be the same as your front page if you have set a static page to be your front page in the reading settings.
Docs: On a 'your latest posts' page, one randomly positioned advert will be inserted into each post, up to the maximum number specified here.
Purpose: This ad is placed above your main post/page content (this is not a 'header' ad).
|
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.
Purpose: This ad is placed below your main post/page content (this is not a 'footer' ad).
|
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 types: |
front - home - latest posts page (may be same as front) page - publish; ?> page(s) single - publish; ?> single blog post(s) archive - category, tag, author, and date types search pages 404 error pages |
If you have set your front page to be a static 'page' rather than your latest posts, the 'page' tick box will also apply to the front page. | |
/> 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 below.'; } ?>/> 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. 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 = htmlspecialchars($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.':'.htmlspecialchars($subval).' '; } } else { echo htmlspecialchars($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 single posts and 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.