ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with Pagination and ad support

August 20, 2010 2:24pm

Subscribe [1]
  • #1 / Aug 20, 2010 2:24pm

    MahjChad

    1 posts

    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}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases