Forums

[Plugin: Post Layout] Too many inclusions (3 posts)

  1. B_K_B
    Member
    Posted 1 year ago #

    The default of this module includes Adsense adverts too many times. I've written a post with details here about how to fix it:

    http://bits.6w9.org/?p=469

    http://wordpress.org/extend/plugins/post-layout/

  2. satollo
    Member
    Posted 10 months ago #

    The plugin inject code, it cannot know if it's adesense code or whatever. So the patch cannot be added to the plugin. Better is to use php code in the code block to check the number of inclusions.

    <?
    global $ccc;
    if (!$ccc) $ccc=0;
    $ccc++;
    if ($ccc < 3) {
    ?>
    xxx
    <?
    }
    ?>

  3. satollo
    Member
    Posted 10 months ago #


Topic Closed

This topic has been closed to new replies.

About this Topic