News: Ad Revenue Sharing is now up & running Smiley Update your profile with your Adsense ID and start earning with us! For any concern/inquiry, send to admin[AT]pinoyblogosphere.com August 01, 2010, 07:14:22 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?
*

Help promote PBS Forum|Group Blog|BLOGopedia|PBS BlogNet|Directory|Webmail|Mailing List|Videos|Link eXchange|Privacy Policy None - Top Blogs Philippines
Show Top Commentators - show only people with links
Pages: [1]   Go Down
  Print  

  Show Top Commentators - show only people with links
Author Message
0 Members and 1 Guest are viewing this topic.
mikko
Lurker
*

Karma: +0/-0
Offline Offline

Gender: Male
Posts: 13



View Profile WWW
« on: March 10, 2008, 01:12:08 AM »

Hi.

Sa mga gumagamit ng Show Top Commentators WordPress plugin, mayroon akong paraan para mawala ang mga commentators na walang URL na nilagay. Nasisira kasi minsan ang design ng list kung walang list.

Here's how.

Edit your plugin by either:
(1) editing the plugin file show_top_commentators.php using Notepad, Dreamweaver or your favorite coding tool before uploading it to plugins folder.

or

(2) if it is already uploaded, login to your WordPress blog -> go to Plugins tab -> Plugin Editor -> then choose Show Top Commentators.



After which, find the part with this text:
   $commenters = $wpdb->get_results("
      SELECT COUNT(comment_author) AS comment_comments, comment_author
      FROM $wpdb->comments o
      WHERE $reset_sql
         AND comment_author NOT IN($ns_options[filter_users])
         AND user_id NOT IN($ns_options[filter_user_ids])
         AND comment_author != ''
         AND comment_type != 'pingback'
         AND comment_approved = '1'
      GROUP BY comment_author
      ORDER BY comment_comments DESC LIMIT $ns_options[limit]


and replace it with:
   $commenters = $wpdb->get_results("
      SELECT COUNT(comment_author) AS comment_comments, comment_author
      FROM $wpdb->comments o
      WHERE $reset_sql
         AND comment_author NOT IN($ns_options[filter_users])
         AND user_id NOT IN($ns_options[filter_user_ids])
         AND comment_author != ''
         AND comment_type != 'pingback'
         AND comment_approved = '1'
      GROUP BY comment_author
      ORDER BY comment_comments DESC LIMIT $ns_options[limit]


The difference of the two is that the line AND comment_author !='' is added. Cheesy

Have fun.
Logged

Build that Geek - http://conradmiguel.com/
[dYu]
Global Moderator
Junior Blogger
*****

Karma: +4/-0
Offline Offline

Gender: Male
Posts: 355


View Profile WWW
« Reply #1 on: March 10, 2008, 03:13:49 PM »

nice mikko Smiley salamat! keep on posting Wink
Logged


Pages: [1]   Go Up
  Print  
 

Jump to:  



Help promote PBS Forum|Group Blog|BLOGopedia|BlogYaNiHaN|FREE Blogs|Aggregator|Directory|Ranking|Webmail|Mailing List|Chat|Videos|Link eXchange