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: All Authors Not Showing Up In Authors List  (Read 1959 times)

0 Members and 1 Guest are viewing this topic.

Offline cshulse

  • Newbie
  • *
  • Posts: 5
    • View Profile
All Authors Not Showing Up In Authors List
« on: 29 April 2009, 18:51 »
1. Wordpress 2.7.1
2. Custom theme built off of Sandbox: www.plaintxt.org/themes/sandbox/
3. http://www.awesomeopolis.com
4. WP-Stats 2.40
5. PHP:2.8.0.1, MYSQL:5.0.51a-log
6. None

I have a blog that I run with a few people, and the Author stats that come back are incorrect.

Under my statistics page, I see the following:
http://www.awesomeopolis.com/statistics/

Total Stats

    * 5 authors to this blog.
    * ...
    * OTHER STATS

And on the bottom, I see FOUR names.

Authors

   1. Corey (9)
   2. Ryan (2)
   3. Stephanie (3)
   4. Sathvik (2)

Both of these are wrong, as I have SIX authors to the blog, each with multiple posts.

I have a call to wp_list_authors() on another page, and it correctly shows all six of my authors.

http://www.awesomeopolis.com/archives/

Archives by Author

    * Corey (9)
    * Drew (6)
    * Matt (4)
    * Ryan (2)
    * Sathvik (2)
    * Stephanie (3)

Why is WP-Stats not showing all of my authors?

Thanks in advance.  I really love all the plugins you've created and they've been great in helping us build great functionality into our blogging project!

Best,
Corey
http://www.awesomeopolis.com

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: All Authors Not Showing Up In Authors List
« Reply #1 on: 29 April 2009, 19:34 »
1. Check wp_user table database to see if there is a activation key to the author not listed.
2. Ensure that their userlevel is more than 1 by checking usermeta table

++ 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 cshulse

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: All Authors Not Showing Up In Authors List
« Reply #2 on: 28 May 2009, 16:33 »
I just looked at the wp_users table.  Yes, those two users have activation key entries.  What does that mean?  I'm presuming they got an e-mail to validate their accounts but never did?  Is it safe to delete those entries from the database or is there a different way to go about it to make sure I don't screw up the database?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: All Authors Not Showing Up In Authors List
« Reply #3 on: 29 May 2009, 00:59 »
Yeap, you can just edit the activate key field to be blank and they will appear.

++ 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 kgagne

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All Authors Not Showing Up In Authors List
« Reply #4 on: 10 July 2009, 22:25 »
I'm having a similar problem.  Stats are displayed here:

http://www.showbits.net/stat/

Under Total Stats is "1 author to this blog".  Then under "Author Stats" are the post counts for all seven authors.

Their activation keys are clear:

http://www.gamebits.net/screens/cd1810c7005e863410372b015b89edfa.jpg

And their user levels are at least 1:

http://www.gamebits.net/screens/4e7064753048a5542efe19aafc6e9104.jpg

WordPress 2.8.1, WP-Stat 2.5.0.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: All Authors Not Showing Up In Authors List
« Reply #5 on: 11 July 2009, 03:03 »
For your case, a quick fix would be to modify:
Code: [Select]
$totalauthors = intval($wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users LEFT JOIN $wpdb->usermeta ON $wpdb->usermeta.user_id = $wpdb->users.ID WHERE $wpdb->users.user_activation_key = '' AND $wpdb->usermeta.meta_key = '".$wpdb->prefix."user_level' AND (meta_value+0.00) > 1"));
To:
Code: [Select]
$totalauthors = intval($wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users"));
It work fine on my site http://lesterchan.net/wordpress/stats/ I got 3 Authors but in Authors Stat only 1 is listed because the rest have 0 post.

What is your MYSQL version?

++ 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 kgagne

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All Authors Not Showing Up In Authors List
« Reply #6 on: 11 July 2009, 05:15 »
Thanks!  I replaced line 76 as directed.  Now it says I have nine authors -- the seven whose posts are counted, and two who have posted nothing, due to being only subscribers and not contributors:

http://www.gamebits.net/screens/f078e403d4b72c01275f9c58201c256d.jpg

I'm not sure why the original code isn't properly counting users who have posting capabilities (and published posts).  Ideally, both numbers should report 7.

I believe my mySQL version is 5.0.32 and PHP 5.2.9.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: All Authors Not Showing Up In Authors List
« Reply #7 on: 11 July 2009, 06:41 »
MYSQL version looks ok to me. I have also no idea why it does not work for you. I can't find anything wrong with the SQL statement. What is your table prefix?

++ 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 kgagne

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All Authors Not Showing Up In Authors List
« Reply #8 on: 11 July 2009, 13:17 »
$table_prefix  = 'wp_';


Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: All Authors Not Showing Up In Authors List
« Reply #9 on: 11 July 2009, 13:52 »
Hmm looks fine to me, let me KIV this first.

++ 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.