Keyword

mod_k2_users - Retrieve specific users, order ignored

  • David Hansen
  • David Hansen's Avatar Topic Author
  • Offline
  • New Member
More
14 years 2 months ago #85721 by David Hansen
The drag & drop ordering of the users in the Module Parameters for mod_k2_users doesn't seem to work.  It does restrict the users to those selected, but the order returned by MySQL seems to be based on UID not the order specified.  I was unable to find any code that was meant to support this functionality so I added some.

If there is already some support for that desirable feature, where is it and how do I make 
use of it?

@version $Id: helper.php 483 2010-06-16 18:13:40Z joomlaworks $

++ after line 48 ::: $userObjects = db->loadObjectList() - added

$newUserObjects = array();
foreach ($IDs as $id) {
foreach ($userObjects as $uO) {
if ($uO->UID == $id) {
$newUserObjects[] = $uO;
break;
}
}
}
$userObjects = $newUserObjects;


Thanks,

David

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #85722 by Simon Wells
Hi David, I would suggest to add this to the bug forum so that it can be check and impleemnted in forth coming svn's

Regards,

Simon
K2 Support

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #85723 by luis
Hello, i have the same problem,

Did anyone solved it?

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #85724 by Kristine Korhumel
Replied by Kristine Korhumel on topic mod_k2_users - Retrieve specific users, order ignored
I am also having the same problem.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #85725 by sjsmit
Same problem here! Does someone have a solution yet?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum