- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 61 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Members_List module PHPNuke v6.9 Bug fix [ ]
Author
Message
WillClark
Nuke Cadet
Joined: Dec 12, 2003
Posts: 2
Posted:
Fri Dec 12, 2003 4:36 pm
Noticed a slight bug in the Members_List module in v6.9 of PHPNuke...
Code:
//
// Memberlist sorting
//
$mode_types_text = array($lang['Sort_Joined'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten']);
$mode_types = array('joindate', 'username', 'location', 'posts', 'email', 'website', 'topten');
The last line should be:
Code:
$mode_types = array('joined', 'username', 'location', 'posts', 'email', 'website', 'topten');
Otherwise sorting by Date Joined doesn't actually work!
Of course, you've probably all spotted this, but I thought it might be helpful just in case
Will
amonra
Nuke Cadet
Joined: Sep 14, 2003
Posts: 8
Posted:
Sat Dec 13, 2003 12:32 pm
Thank you very much,
I have noticed this too .. but i had no clue where to look in the script ...
Thanks =)
WillClark
Nuke Cadet
Joined: Dec 12, 2003
Posts: 2
Posted:
Sat Dec 13, 2003 12:38 pm
Hello, sorry... its in the modules/Members_List/index.php file, around about line 100 or so.
gunner
Sergeant
Joined: Jul 07, 2003
Posts: 140
Posted:
Sat Jan 10, 2004 11:02 am
Didn't work for me. When I select sort by date joined, the sorting is done alphabetically. Therefore, those that joined in august are listed first.
_________________ .::.
http://www.boozebros.ca
marhoog
Nuke Cadet
Joined: Nov 05, 2003
Posts: 4
Posted:
Sun Jan 18, 2004 12:39 pm
Ok... I have found the problem (well It worked for me!!)
In the modules/Members_List/index.php change the following:
Code:
switch( $mode )
{
case 'joined':
$order_by = "user_regdate $sort_order LIMIT $start, " . $board_config['topics_per_page'];
break;
Change it to:
Code:
switch( $mode )
{
case 'joined':
$order_by = "user_id $sort_order LIMIT $start, " . $board_config['topics_per_page'];
break;
Hope it also works for you...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum