- Posts: 3
COMMUNITY FORUM
mod_k2_users - Retrieve specific users, order ignored
- David Hansen
-
Topic Author
- Offline
- New Member
Less
More
14 years 9 months ago #85721
by David Hansen
mod_k2_users - Retrieve specific users, order ignored was created 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
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.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 9 months ago #85722
by Simon Wells
Replied by Simon Wells on topic mod_k2_users - Retrieve specific users, order ignored
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
Regards,
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- luis
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 2 weeks ago #85723
by luis
Replied by luis on topic mod_k2_users - Retrieve specific users, order ignored
Hello, i have the same problem,
Did anyone solved it?
Did anyone solved it?
Please Log in or Create an account to join the conversation.
- Kristine Korhumel
-
- Offline
- New Member
Less
More
- Posts: 1
14 years 3 days 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.
- sjsmit
-
- Offline
- New Member
Less
More
- Posts: 6
13 years 11 months ago #85725
by sjsmit
Replied by sjsmit on topic mod_k2_users - Retrieve specific users, order ignored
Same problem here! Does someone have a solution yet?
Please Log in or Create an account to join the conversation.