All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: Displaying and sorting users by most active rater  (Read 1600 times)

0 Members and 1 Guest are viewing this topic.

Offline Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Displaying and sorting users by most active rater
« on: 20 September 2007, 11:42 »
I've managed to get a list of all my (registered) users and how many ratings they have submitted by hacking the wp_list_authors function (in wp-includes/author-template.php) with the following code:

$q="select * from wp_ratings where rating_username='$name'";
$res=mysql_query($q);
$count = mysql_num_rows($res);


Now I'd like to sort the list by $count (ie by the number of times the have submitted a rating) to get an "Most active user top list". How would I do this in php?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Displaying and sorting users by most active rater
« Reply #1 on: 20 September 2007, 15:21 »
sorry I don't do custom mod (my sig)

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: Displaying and sorting users by most active rater
« Reply #2 on: 21 September 2007, 23:10 »
nor do I...
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers