6/3/2006 ↓

WP Plugin: Top 10 posts with Widgets Support

Thanks for visiting! If you're new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.

WP Plugin: Top 10 posts with Widgets Support Paul has added widgets support to my old Top 10 Posts plugin. Thanks Paul. Also, there is a news section of weblogtoolscollection that makes it easier to post new items to weblogtoolscollection.

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.6 out of 5)
Loading ... Loading ...
Sphere: Related Content | stumbleit |
Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

Latest Videos

6 Comments | Leave a comment | Comments RSS

  1. I have modified this plugin so that it will work with Polyglot (i.e. the original one does not). The modifications are marked between “Polyglot begins/ends”, just in case anybody interested.

    function show_pop_posts() {
    global $wpdb, $siteurl, $tableposts, $id;
    $results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 10");
    echo "";
    if ($results) {
    foreach ($results as $result) {
    // Polyglot begins
    if (function_exists('lang_picker_respect_more')) {
    $result->postnumber = lang_picker_respect_more($result->postnumber);
    }
    // Polyglot ends
    echo 'postnumber).’”>’.lang_picker_respect_more(get_the_title($result->postnumber)).’ (’.$result->cntaccess.’)';
    }
    }
    echo “”;
    }

    Just cut and paste the function into the Top10.php plugin. If you have problems, you can download the mod file here:
    http://www.tzmartin.com/downloads/wordpress/plugins/top10.phps

    (just rename the file and upload it to your ‘plugins’ folder.)
    http://www.tzmartin.com/blog/files/

    tzMartin (2 comments.) — 06/11/2006 @ 12:17 am
  2. I have modified this plugin so that it will work with Polyglot (i.e. the original one does not). The modifications are marked between “Polyglot begins/ends”, just in case anybody interested.

    function show_pop_posts() {
    global $wpdb, $siteurl, $tableposts, $id;
    $results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 10");
    echo "";
    if ($results) {
    foreach ($results as $result) {
    // Polyglot begins
    if (function_exists('lang_picker_respect_more')) {
    $result->postnumber = lang_picker_respect_more($result->postnumber);
    }
    // Polyglot ends
    echo 'postnumber).’”>’.lang_picker_respect_more(get_the_title($result->postnumber)).’ (’.$result->cntaccess.’)';
    }
    }
    echo “”;
    }

    Just cut and paste the function into the Top10.php plugin. If you have problems, you can download the mod file here:
    http://www.tzmartin.com/downloads/wordpress/plugins/top10.phps

    (just rename the file and upload it to your ‘plugins’ folder.)
    http://www.tzmartin.com/blog/files/

    tzMartin (2 comments.) — 06/11/2006 @ 12:17 am
  3. Just reporting a bug: the Top 10 posts also lists PRIVATE posts that you have made, though clicking on them results in a 404 error. Still, I’d prfer the private posts not show up at all on the list. :-(

    Lincoln — 07/30/2006 @ 5:32 pm
  4. In Wordpress 2.1 this plugin doesn’t count correctly

    Joern (1 comments.) — 02/17/2007 @ 1:25 pm
  5. [...] la même façon, vous pourrez modifier les plugin équivalents comme Top 10 posts ou Daily Top 10 [...]

  6. [...] Top 10 Posts With Widgets Support - The name says it all. Click here to find the original Top 10 Posts [...]

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required, will not be published)


S2