Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-15-2006, 01:53 PM
New Pligger
 
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Top users problem

If you click a column heading to sort (I assume?) by that column it drops data.

http://ashtest1.pligg.com/topusers.php

Click news, published news, comments or published votes and you go from having 16 pages of users to 1.

Click total votes and there is 2 pages.
Reply With Quote
  #2 (permalink)  
Old 04-15-2006, 01:57 PM
Yankidank's Avatar
Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,726
Thanks: 112
Thanked 168 Times in 115 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Um, I assume this isn't a problem. I think that people just sign up as users and don't vote or do anything else on the site. That would mean that the total users page gets 16 pages of results, but most other pages that take into account that the user must vote/comment and such there is only one page. It may look like an error, but it's actually a good thing because it's not listing anyone who is completely inactive.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #3 (permalink)  
Old 04-15-2006, 01:59 PM
New Pligger
 
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
If that is the case that it's just not listing the inactive ones, perhaps they should be seperated completely.

If it's not regular, consistent (not only with the site, but with what Joe Average is accustomed to) behaviour than it's a problem.
Reply With Quote
  #4 (permalink)  
Old 04-15-2006, 07:41 PM
AshDigg's Avatar
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Thanks: 237
Thanked 346 Times in 207 Posts
Yeah, thats a bug. You can see that some people have "1" in the "news" column. If you click news, you get only 1 page and it stops at "2" news and doesn't show any of the "1" people.
__________________
- Ash
Reply With Quote
  #5 (permalink)  
Old 04-24-2006, 07:06 PM
Constant Pligger
 
Join Date: Feb 2006
Posts: 120
Thanks: 5
Thanked 1 Time in 1 Post
Any progress on this? I don't want users to be dropped from the table, even if they have a zero under the column that im sorting it by. What should I change in the code to make it so that doesn't happen?
Reply With Quote
  #6 (permalink)  
Old 04-25-2006, 05:04 PM
AshDigg's Avatar
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Thanks: 237
Thanked 346 Times in 207 Posts
I havn't dropped it, just been a wee bit sick. It on the bug tracker here
__________________
- Ash
Reply With Quote
  #7 (permalink)  
Old 04-26-2006, 06:34 PM
AshDigg's Avatar
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Thanks: 237
Thanked 346 Times in 207 Posts
Partial fix...

/templates/skidoo_too/topusers_center.tpl

This should be the same line number for other templates (different folder of course), but I'm not certain.

Change line 21

from

$rows = $db->get_var("SELECT count(*) as count $from_where $order_by");

to

$rows = $db->query("SELECT * $from_where");


This doesn't show all users, just the users that have >0 in the column you've selected to sort by.
__________________
- Ash
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing Problem reporting dwg Bug Report 7 07-28-2006 09:51 AM
Problem form doesn't work! nabil Bug Report 1 04-01-2006 07:53 PM
Help with new installation login problem vbmark Installation and Upgrade Help 3 03-31-2006 12:27 PM
Invalid URL problem in get($url) clancey Retired Threads 2 03-28-2006 10:46 PM
Top Users php page config andyc General Help 1 03-19-2006 02:49 PM


Search Engine Friendly URLs by vBSEO 3.2.0