Top adverts | Random adverts | Bottom adverts | Misc settings | Tag docs | Test ads

DOCS; $total_rand_split = adinj_total_split('ad_code_random_', $ops); $total_rand_alt_split = adinj_total_split('ad_code_random_alt_', $ops); $total_top_split = adinj_total_split('ad_code_top_', $ops); $total_top_alt_split = adinj_total_split('ad_code_top_alt_', $ops); $total_bottom_split = adinj_total_split('ad_code_bottom_', $ops); $total_bottom_alt_split = adinj_total_split('ad_code_bottom_alt_', $ops); ?> Ad rotation / split testing and alternate content are advanced features. If you don't understand these features you probably don't need them and can therefore ignore this tab. In summary:

DOCS; adinj_postbox_end(); adinj_postbox_start(__("Top adverts", 'adinj'), 'multiple_top'); echo ''; for ($i=1; $i<=10; ++$i){ adinj_add_row_with_text_box('ad_code_top_', $i, 'Ad code', $total_top_split); } adinj_add_row_with_text_box('ad_code_top_alt_', 1, 'Alt content', $total_top_alt_split); adinj_add_row_with_text_box('ad_code_top_alt_', 2, 'Alt content', $total_top_alt_split); echo '
'; adinj_postbox_end(); adinj_postbox_start(__("Random adverts", 'adinj'), 'multiple_random'); echo ''; for ($i=1; $i<=10; ++$i){ adinj_add_row_with_text_box('ad_code_random_', $i, 'Ad code', $total_rand_split); } adinj_add_row_with_text_box('ad_code_random_alt_', 1, 'Alt content', $total_rand_alt_split); adinj_add_row_with_text_box('ad_code_random_alt_', 2, 'Alt content', $total_rand_alt_split); echo '
'; adinj_postbox_end(); adinj_postbox_start(__("Bottom adverts", 'adinj'), 'multiple_bottom'); echo ''; for ($i=1; $i<=10; ++$i){ adinj_add_row_with_text_box('ad_code_bottom_', $i, 'Ad code', $total_bottom_split); } adinj_add_row_with_text_box('ad_code_bottom_alt_', 1, 'Alt content', $total_bottom_alt_split); adinj_add_row_with_text_box('ad_code_bottom_alt_', 2, 'Alt content', $total_bottom_alt_split); echo '
'; adinj_postbox_end(); adinj_postbox_start(__("Misc options", 'adinj'), 'misc'); ?>
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?

(default is to inject ads at unique positions)
$title $num

$percent EOT; } function adinj_docs_tags(){ ?>

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.

  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.