Ad Placement settings | Ads | Ad insert mode/dynamic restrictions | Filters | Quick Start | Test ads
| Single/Page | Home | Archive | ||||||||||||||||||||||||||||||||||||||||||||
Top ad [code] [page type filters] | ||||||||||||||||||||||||||||||||||||||||||||||
| Only show on posts longer than: | ';
adinj_selection_box("home_top_ad_if_longer_than", $ad_if_longer_settings, $unit);
echo ' | ';
adinj_selection_box("archive_top_ad_if_longer_than", $ad_if_longer_settings, $unit);
?>
| ||||||||||||||||||||||||||||||||||||||||||||
| |_ Max num of ads on whole page: | 1 | ';
adinj_selection_box("archive_max_num_top_ads_per_page", $num_ads_array);
?>
| ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||
Random ads [code] [page type filters] | ||||||||||||||||||||||||||||||||||||||||||||||
| Max num of ads on whole page: | n/a | ';
adinj_selection_box("archive_max_num_random_ads_per_page", $num_ads_array);
?>
| ||||||||||||||||||||||||||||||||||||||||||||
| |_ Max num of random ads per post: | ';
adinj_selection_box("home_max_num_random_ads_per_post", $num_ads_array);
echo ' | ';
adinj_selection_box("archive_max_num_random_ads_per_post", $num_ads_array);
?>
| ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||
Bottom ad [code] [page type filters] | ||||||||||||||||||||||||||||||||||||||||||||||
| Only show on posts longer than: | ';
adinj_selection_box("home_bottom_ad_if_longer_than", $ad_if_longer_settings, $unit);
echo ' | ';
adinj_selection_box("archive_bottom_ad_if_longer_than", $ad_if_longer_settings, $unit);
?>
| ||||||||||||||||||||||||||||||||||||||||||||
| |_ Max num of ads on whole page: | 1 | ';
adinj_selection_box("archive_max_num_bottom_ads_per_page", $num_ads_array);
?>
| ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||
Other ad placement settings | ||||||||||||||||||||||||||||||||||||||||||||||
| Content length counting method: | 'viewable chars', 'all' => 'all chars', 'words' => 'words')); ?> | |||||||||||||||||||||||||||||||||||||||||||||
When defining 'post longer than' / 'post shorter than' conditions; do you want to count viewable characters, all characters (which includes HTML tags), or number of words? | ||||||||||||||||||||||||||||||||||||||||||||||
| Exclude ads from <blockquote></blockquote> and <pre></pre> blocks: | ||||||||||||||||||||||||||||||||||||||||||||||
| Exclude ads from <div></div> blocks: | ||||||||||||||||||||||||||||||||||||||||||||||
| Exclude ads from <ul></ul> and <ol></ol> blocks: | ||||||||||||||||||||||||||||||||||||||||||||||
| Exclude ads from <form></form> blocks: | ||||||||||||||||||||||||||||||||||||||||||||||
| Exclude ads from <table></table> blocks: | ||||||||||||||||||||||||||||||||||||||||||||||
Ad Injection also supports <!--adinj_exclude_start--><!--adinj_exclude_end--> tags. You don't need to tick the box for these to be enabled. | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
Rotation: ".adinj_percentage_split('ad_code_top_', 1, $ops).""; ?> |
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.
|
|
Rotation: ".adinj_percentage_split('ad_code_random_', 1, $ops).""; ?> |
|
Docs: Try a 336x280 advert. |
Rotation: ".adinj_percentage_split('ad_code_bottom_', 1, $ops).""; ?> |
|
Docs: footer ad information and troubleshooting
|
Rotation: ".adinj_percentage_split('ad_code_footer_', 1, $ops).""; ?> |
| Tick to disable ads: | Single(publish; ?>) | Page(publish; ?>) | [ Home | Front ] | Archive | 404 | Search |
| Go to the widget control panel to set up any widgets. See the FAQ for how to set up template ads. There are some template ad examples in the test ads section of this page. | |||||||
Notes: Your home page is the page displaying your latest posts. It may be different to your front page if you have configured your front page to be a static page. 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.
Archive pages are the categories, tags, authors and date pages.
| - only for single posts and pages | |
| - only for single posts and pages |
The global filter apply to all ads, and are processed before the ad type specific filters.
/> direct: Direct ad code insertion (recommended) - Adds are directly inserted into the page. Note that dynamic features (the ones in this section) will not work if you are using a caching plugin as dynamic features require that the page is dynamically generated each time a user views it.
/> mfunc: Insert ads using cache compatible mfunc tags (not recommended) - unless you are 100% certain you understand mfunc mode and know what you are doing!
Dynamic features may work with older versions of WP Super Cache, W3 Total Cache and WP Cache. Only select this mode if you are using an older version of one of those caching plugins that you know supports mfunc and want to use dynamic features (IP / referrer restriction, alt content and ad roatation). If you aren't using dynamic features or don't understand what mfunc is then select direct mode. This mode is left in for people who know exactly what mfunc mode is and understand the risks of using it. If you have to ask then use direct mode. 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.'; } ?>
for the next hour (sets a 1 hour cookie).", 'adinj') ?>
Comma separated list e.g.:
.google., .bing., .yahoo., .ask., search?, search., facebook.com, t.co
If a blocked string is found block ads for: '1 hour', '2'=>'2 hours', '3'=>'3 hours', '6'=>'6 hours', '24'=>'1 day', '48'=>'2 days', '72'=>'3 days', '168'=>'1 week', '720'=>'30 days', '8760'=>'1 year')); ?>
Comma separated list e.g.:
facebook.com, .org, james+bond
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
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.
1. Copy and paste your ad code into the ad code boxes. [Goto adverts]
2. Choose how many ads of each type you want displayed. [Goto ad placement settings]
3. Make sure ads are enabled for the page types you want them to be enabled for. [Goto global settings]
4. Check the ad insertion mode. You will probably want 'direct' mode unless you are 1) an advanced user who understands what mfunc is, 2) using a compatible caching plugin and 3) are using the dynamic features (dynamic restrictions or ad rotation). [Goto 'Ad insertion mode and dynamic ad display restriction']
5. Enable your ads by selecting the 'on' option at the top. [Goto global settings]