Skip to Content Skip to Menu

Show only selected User Profiles

  • spike277
  • spike277
  • OFFLINE
  • Posts: 22
  • Thanks: 1
  • Karma: 0
2 months 2 weeks ago #338735 by spike277
Show only selected User Profiles was created by spike277
I would like to work with two lists. A menu item that is displayed all users profiles (done and worked).

A second menu item in which only selected users and their profiles are displayed (e.g. by selecting the user IDs).

Is this possible?

Thanks in Advance

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
2 months 2 weeks ago #338736 by krileon
Replied by krileon on topic Show only selected User Profiles
Yup, you can create as many userlists as you like and as many Joomla menu items to those userlists as you like.

To have your userlist only display specific users you'll need to use the Filters feature. Click the "Advanced" option under Filters tab of the userlist. Next use the below to filter down to only specific users.
Code:
ue.`id` IN ( USER_IDS_HERE )

Replace USER_IDS_HERE with a comma list of user ids. Example as follows.
Code:
ue.`id` IN ( 20, 30, 58, 91, 1001 )

Alternatively you can create a new Joomla usergroup for this. Assign that usergroup to the users you want displayed then under the Global tab select that usergroup for the "Usergroups" parameter.

Another alternative is you could create a new checkbox field in CB > Field Management. Then under the Filters tab select the "Basic" option and add a filter for your checkbox field to be equal to 1. This would allow per-profile display selection in the userlist and offers some additional flexibility.

As for menu items create a Joomla menu item with a menu type of Community Builder > Userlist type then in the "List ID" parameter supply the ID of the userlist you want it to display.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: spike277

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

Moderators: beatnantkrileon
Powered by Kunena Forum