Top adverts | Random adverts | Bottom adverts | Footer adverts | 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); $total_footer_split = adinj_total_split('ad_code_footer_', $ops); $total_footer_alt_split = adinj_total_split('ad_code_footer_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(__("Footer adverts", 'adinj'), 'multiple_footer'); echo ''; for ($i=1; $i<=10; ++$i){ adinj_add_row_with_text_box('ad_code_footer_', $i, 'Ad code', $total_footer_split); } adinj_add_row_with_text_box('ad_code_footer_alt_', 1, 'Alt content', $total_footer_alt_split); adinj_add_row_with_text_box('ad_code_footer_alt_', 2, 'Alt content', $total_footer_alt_split); echo '
'; adinj_postbox_end(); adinj_docs_tags(); adinj_testads(); } function adinj_add_row_with_text_box($name_stem, $num, $title, $total){ $ops = adinj_options(); $name = $name_stem.$num; $namesplit = $name.'_split'; $percent = adinj_percentage_split($name_stem, $num, $ops, $total); echo << $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.

Fully supported tags


The above adstart/adend tags and below adsensestart tag will not affect the top and bottom ad.

Other tags


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.