Skip to Content Skip to Menu

User cat

  • Samantha
  • Samantha
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: -1
10 years 3 months ago #246773 by Samantha
User cat was created by Samantha
Hello and please excuse my bad english.
The following problem: I want the CB to assign its specific category to each user, eg red, yellow and blue. Once a user has registered, should appear in the menu on a Module position on click on red, yellow and blue lists only users that match the appropriate color (category). Is this possible in principle? If so, with a module? With what and how do I put this exactly? with best regards

Samantha

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

  • Samantha
  • Samantha
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: -1
10 years 3 months ago #246789 by Samantha
Replied by Samantha on topic User cat
Nobody an idea or can no one what to do with this question?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #246838 by krileon
Replied by krileon on topic User cat
You could create a select field with your colors. The user could then select what color they want at registration. You could also auto assign a color using CB Auto Actions and the field action to force a value for the field based off whatever criteria you need. Next you'd create multiple userlists within CB > List Management (1 for each color) then create Joomla menu links to them (have to use External menu items as the List ID param is broken in CB 1.x).


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: Samantha

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

  • Samantha
  • Samantha
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: -1
10 years 3 months ago #246854 by Samantha
Replied by Samantha on topic User cat
Prima that You have answered me .... I thought I stay here on my problem sitting ....

Well, your description I had already tried it myself first and foremost - worked, but would be very awkward if not would adding more colors. I'm thinking rather

select user-list where user is "red" or something like that - that is what any SQL query in a module .... So rather an automatic ....

Would be glad if you answer again and had another hot tip for me. mfg

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #246864 by krileon
Replied by krileon on topic User cat
Being a field it would be in the database. You can query for them by querying the _comprofiler table and checking your fields column. Example as follows.

Code:
SELECT c.`name` FROM `#__comprofiler` AS c INNER JOIN `#__users` AS u ON u.`id` = c.`id` WHERE c.`cb_color` = 'Red'

The above for example would select all the user rows with the color Red selected. This assumes your select fields name is cb_color and has a value of Red.

To display the results in a module I suppose you could use a 3rd party module that displays results of a database query or try using CB Content Module and substituting in a CB Query Field with your query.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum