We’re trying to get ads to show up on articles with a certain work in [segment3]. Three out of four of the possibilities work. Pagination without sponsorship breaks the page and the content is not loaded.
site.com/article/articlename/sponsor/P2 |works - http://i.imgur.com/pxpfH.jpg
site.com/article/articlename/sponsor |works - http://i.imgur.com/TcqaL.jpg
site.com/article/articlename/ | works - http://i.imgur.com/FJDgF.jpg
site.com/article/articlename/P1 |does not work - http://i.imgur.com/BVEpQ.png
{if segment_4 !=""}
{embed="includes/mod_header" adcall="{exp:replace find="_" replace="+"}{segment_3}{/exp:replace}" }
{if:else}
{if segment_3 != ""}
{embed="includes/mod_header" {if '{exp:is_page}' == TRUE} adcall="<?php print "$cat_url_title"; ?>" adcategory="<?php print "$sect_url_title"; ?>" {if:else} adcall="{exp:replace find="_" replace="+"}{segment_3}{/exp:replace}" }{/if}
{/if}
{if segment_3==""}
{embed="includes/mod_header" adcall="<?php print "$cat_url_title"; ?>" adcategory="<?php print "$sect_url_title"; ?>" }
{/if}