

![]() |
| | Thread Tools | Display Modes |
| |||
|
How can I sort the top users by the number of their submitted stories in descending order?
|
| ||||
|
Change the link top users so it points to topusers.php?sortby=1 instead of topusers.php You can make the change in your header.tpl file |
| |||
|
Version 9.5 actually uses $URL_topusers that I´ve substituted with $my_base_url/topusers.php?sortby=1 --> doesn´t work I´ve tried the full path but then the path is crippled to domain.com/topusers.phpsortby Code: <a href='http://www.domain.com/topusers.php?sortby=1'> {#PLIGG_Visual_Top_Users#}</a> |
| |||
| Quote:
Code: <a href="{$my_base_url}{$my_pligg_base}/topusers.php?sortby=6"> |
| |||
| Quote:
But - all the users without a submission don´t show up anymore. Take the example of someone who already wrote an comment but hasn´t submitted anything so far. He/she isn´t on the initial list but will show up if you click on the comments column. That´s a bug. Edit: I guess a conditional "where comments>0 or submitted>0" could solve the problem Last edited by tbones; 07-09-2007 at 05:11 AM. Reason: Solution suggestion |
| ||||
|
@tbones - thanks for confirming that bug. Was noticing some odd behavior when sorting
|
| |||
|
I´ve noticed that users with the same amount of comments/posts etc. are sorted in a random order. What has to be changed to order those alphabetically?
|
| ||||
|
Thank you, that was helpful for me, now I got ordered Top users (;-)
|
| |||
|
So I assume this problem has gone with the newer versions. :-)
|
| |||
| No, the problem remains, but it looks more like a misunderstanding created by the language file. Instead of "Top Users" could be used "Registered users" or "All users" Pligg 9.9.0 (yget template) has PHP Code: |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete users from database and admin user management | bbrian017 | Questions and Comments | 18 | 02-22-2011 12:51 AM |
| No users on YGET Manage Users page | JAPUNDIT | Questions and Comments | 2 | 08-02-2008 02:09 AM |
| How to sort top users by category in 'Top Users' page | aaronpais | Questions and Comments | 0 | 05-16-2007 09:55 AM |
| Top users sorting not working correctly. | Nikes77 | Questions and Comments | 0 | 12-07-2006 07:46 AM |
| Total votes sorting in top users page it is not working correctly! | Nikes77 | Questions and Comments | 2 | 12-06-2006 07:10 PM |