- Posts: 9
COMMUNITY FORUM
List all users
- Claus Lücking
- Topic Author
- Offline
- New Member
Less
More
10 years 11 months ago #119568
by Claus Lücking
List all users was created by Claus Lücking
Hi,
I have a requirement of listing all K2 users in a page. Have tried the "K2 Users" module - but here I can only select either users in a group or specifik users. But I have my users in two groups... and do not want to use the function for selection specifik users in order to keep maintenance at a minimum.
Any suggestions?
I know I could just create two modules and embed those in a page but then they will not all be shown alphabetic.
Thanks.
I have a requirement of listing all K2 users in a page. Have tried the "K2 Users" module - but here I can only select either users in a group or specifik users. But I have my users in two groups... and do not want to use the function for selection specifik users in order to keep maintenance at a minimum.
Any suggestions?
I know I could just create two modules and embed those in a page but then they will not all be shown alphabetic.
Thanks.
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
- Offline
- Platinum Member
- Joomla Developer
10 years 11 months ago #119569
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Re: List all users
Hi Claus,
You can try to set the filter "Fetch users" to any value other than "By K2 user group", then set the Limit parameter to high value that ensures getting all of the users.
You can try to set the filter "Fetch users" to any value other than "By K2 user group", then set the Limit parameter to high value that ensures getting all of the users.
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Claus Lücking
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
10 years 11 months ago - 10 years 11 months ago #119570
by Claus Lücking
Replied by Claus Lücking on topic Re: List all users
Thanks, but this does not working. Only users who has comment or posted something are then viewed and I need to list all users no matter they have posted anything.
Just to clarify, I only have the possibility to fetch either specific users or users by filter. If I choose filer, I only have the possibility to fetch by K2 user group or "with most something".
Just to clarify, I only have the possibility to fetch either specific users or users by filter. If I choose filer, I only have the possibility to fetch by K2 user group or "with most something".
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
- Offline
- Platinum Member
- Joomla Developer
10 years 11 months ago #119571
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Re: List all users
Then you need to hack the module, considering that you will need to apply the hack whenever you update K2.
Edit the file modules/mod_k2_users/helper.php , line ~104
replace this line:
with this line:
And choose to filter with K2 user group.
This modification will retrieve all users regardless the chosen user group.
PS: This will affect all the module instances.
Edit the file modules/mod_k2_users/helper.php , line ~104
replace this line:
$query .= " WHERE users.block=0 AND profiles.`group`=".(int)$params->get('K2UserGroup');
with this line:
$query .= " WHERE users.block=0 ";
And choose to filter with K2 user group.
This modification will retrieve all users regardless the chosen user group.
PS: This will affect all the module instances.
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Claus Lücking
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
10 years 11 months ago #119572
by Claus Lücking
Replied by Claus Lücking on topic Re: List all users
Okay, Thanks!
Please Log in or Create an account to join the conversation.