WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
WordPress Popular Posts Stats panel (7 posts)

  1. janvanarkel
    Member
    Posted 2 years ago #

    Hi all,

    Is it possible to display more posts than the standard 10 in the WordPress Popular Posts Stats panel in the Dashboard? Can't find a settings option for the dashboard.

    Setting something in the widgets doesn't work for the dashboard...

    Thanks,
    Jan

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. majcenoff
    Member
    Posted 2 years ago #

    Hi, I would also like to know the answer to this question.

  3. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hi guys,

    You'd have to hack the plugin to achieve that. Here's what you need to do:

    1. In the plugin folder, find a file called stats.php and open it using a editor such as notepad or Adobe Dreamweaver.

    2. Find this:

    <div class="wpp-stats wpp-stats-active" id="wpp-daily">
        <?php echo do_shortcode('[wpp range=today stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]'); ?>
    </div>
    <div class="wpp-stats" id="wpp-weekly">
        <?php echo do_shortcode('[wpp range=weekly stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]'); ?>
    </div>
    <div class="wpp-stats" id="wpp-monthly">
        <?php echo do_shortcode('[wpp range=monthly stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]'); ?>
    </div>
    <div class="wpp-stats" id="wpp-all">
        <?php echo do_shortcode('[wpp range=all stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]'); ?>
    </div>

    ... and replace with:

    <div class="wpp-stats wpp-stats-active" id="wpp-daily">
        <?php echo do_shortcode('[wpp range=today stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol> limit=20]'); ?>
    </div>
    <div class="wpp-stats" id="wpp-weekly">
        <?php echo do_shortcode('[wpp range=weekly stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol> limit=20]'); ?>
    </div>
    <div class="wpp-stats" id="wpp-monthly">
        <?php echo do_shortcode('[wpp range=monthly stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol> limit=20]'); ?>
    </div>
    <div class="wpp-stats" id="wpp-all">
        <?php echo do_shortcode('[wpp range=all stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol> limit=20]'); ?>
    </div>

    ... where limit=20 is the max number of posts you want to see at the WPP Stats panel.

  4. majcenoff
    Member
    Posted 2 years ago #

    Thanks for the fast reply. Love your plugin, it's one of the best.

  5. desert_storm23
    Member
    Posted 2 years ago #

    Hello!
    I need some help.
    I already installed the plug-in on my blog about 3 days ago, but until now I am only seeing the word "Sorry. No data so far.", I also tried the short code and template code with no avail.
    I am using the Arras theme.
    Thanks in advance!

  6. RandyGarcia
    Member
    Posted 2 years ago #

    Howdy,

    i have the same Problem like User desert_storm23.

    It Shows: "Sorry, no data so far"

    cheers Randy

  7. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hi guys,

    A bug on my plugin is preventing the creation of two tables used by it to track your blog's data. I'm already working on a fix, it should be out soon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic