'; echo adinj_get_problem_with_wpminify_message(); echo '
';
echo 'All settings saved: ';
if (is_plugin_active('wp-super-cache/wp-cache.php')) {
echo "You might need to clear your WP Super Cache cache for the settings to take effect.";
} else {
echo "If you are using a caching plugin you might need to delete its cache for any changes to take effect.";
}
echo '';
if ($ops['ad_insertion_mode']=='mfunc'){
global $adinj_warning_msg_filewrite;
if (!empty($adinj_warning_msg_filewrite)){
echo $adinj_warning_msg_filewrite;
echo "
Workaround: If you are unable to fix these errors you will have to switch to a direct insertion mode (however dynamic features won't work if you are using a caching plugin).";
}
}
global $adinj_warning_msg_chmod;
if (!empty($adinj_warning_msg_chmod)){
echo '
Info: Some warnings were generated by chmod. See the debugging section for more info.';
}
if ($ops['ads_enabled'] != 'on'){
echo '
Warning: Ads are not enabled. You need to turn the ads on for everyone to see them.';
}
echo '
Random ads | Top | Bottom | Widgets | Ad insert mode/dynamic restrictions | Debug | Quick Start | Test ads
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.
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.
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 |
/> Use mfunc tags for dynamic features - Dynamic features will work with WP Super Cache in legacy mode (or with a caching program that is compatible with WP Super Cache's mfunc tags). Dynamic features will also work if you don't use a caching program, although if you don't use a caching program 'direct' insertion will be more efficient.
/> 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 ad insertion - No dynamic feature support. Select this if you are using a caching plugin which is not compatible with WP Super Cache's mfunc tags.
/>
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
- Cache hits to this website for quick access.
- Legacy page caching.
- Compress pages so they’re served more quickly to visitors.
- Expire time: 36000 (10 hours). Or 3600 (1 hour) for very busy site.
advanced settings page (where you can set the caching mode to Legacy)."; } else { echo "Note: WP Super Cache does not appear to be active."; } ?>
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.
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 1) WP Super Cache is turned on in legacy mode, and 2) if WP Super Cache is not installed/disabled.