WordPress.org

Ready to get started?Download WordPress

Forums

Quick Adsense
quick-adsense can be easely broken by any other plugin. (2 posts)

  1. NextScripts
    Member
    Posted 1 year ago #

    for some reasons quick-adsense is using global variable $ShownAds to count how many ads were already inserted in the process_content function.

    Any call from any plugin that for it's internal reasons need to process post text by calling apply_filters('the_content', will trigger that process_content function.

    Since $ShownAds is global such calls will increase the counter and when it's time to actually output the post this counter could be 10 or 20. If the limit of 5 ads is set - NO ads will be shown, because the plugin will think that limit is already reached.

    Please consider stop using global variables, this is a very bad development practice.

    http://wordpress.org/extend/plugins/quick-adsense/

  2. hdsouza
    Member
    Posted 1 year ago #

    I have frequently seeing no ads on my pages. It happens off and on. At times the problem lastes for several hours at a time. When the problem occours there is a blank space where the ad is supposed to be.

    The above explanation rightly suggests the problem. Thanks NextScripts.
    Revenue has been down over the last several months. Explains why
    I hope the quick adsense folks get a fix soon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic