Skip to Content Skip to Menu

[SOLVED] Placing a user on top of a list

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago - 9 years 5 months ago #265192 by krileon
Replied by krileon on topic Placing a user on top of a list
You said that was done by using a usergroup. So at this point I'm just as confused as you are. I was explaining how to use the usergroup in the order by statement of the userlist query.

Sorry, you'll need to better explain how this is intended to be setup as I don't understand the relationship between group, chairman, and user. If the group is just a usergroup and not a GJ group then a CB field would probably work best (probably a select field) and then you could just sort your userlist by that field first.


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.
Last edit: 9 years 5 months ago by krileon.

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
9 years 5 months ago #265224 by fribse2011
Replied by fribse2011 on topic Placing a user on top of a list
I'm really sorry for confusing the question.

Ok, I have a set of users.

Some of them participate in different groups.

We have a 'board' 'juniorgroup' 'equipment group' 'tripgroup' etc.
Each of these groups have different responsibilities, and each of them has a chairman.
Currently I'm just using Joomla Groups, I've taken a short look on GroupJive, but haven't currently installed it, as I didn't see it solve this for us (I'm not done looking at it, but it doesn't really play well with 2.0 yet I think).

So to get back to the point.

Board:
Chairman: Søren
Members: Kenneth, Lian, Martin, Steen, Birger

Juniorgroup:
Chairman: Birger
Members: Henrik, Simon, Søren, Jørgen

Equipmentgroup:
Chairman: Jørgen
Members: Birger, Simon, Mads

Tripgroup:
Chairman: Simon
Members: Kenneth, Birger

So as you can see each chairman can be a regular member in another group, and vice versa. So I'm not sure how to create the select field, other than create a bunch of select fields, one for each group.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago #265253 by krileon
Replied by krileon on topic Placing a user on top of a list
As a user can be chairman of 1 group and a group can only have 1 chairman I'd just create a dropdown with the groups as the values and select which one the user is a chairman of. So you'd have the below options for example.

Option 1: Board
Option 2: Juniorgroup
Option 3: Equipmentgroup
Option 4: Tripgroup

Then you'd edit them and select which they're a chairman of. You could do the same for Member except use a multi-select.

GroupJive has a structure in place that could probably handle this though. The chairman would be the group owner and members would just be users of the group.


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.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
9 years 5 months ago #265269 by fribse2011
Replied by fribse2011 on topic Placing a user on top of a list
Yes, that sounds like a probable solution. An extra field for the user
That will mark a user as chairman, though I can have multiple chairmen this way.
How do I then make the list sort it so that the user that has the right 'chairman' post to be at the top, and not any of the other group chairmen?
I'm not sure if a group owner will work, as these chairmen often change every year.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago #265302 by krileon
Replied by krileon on topic Placing a user on top of a list
You'd add a sort by for that field. Your other users won't have a value selected at all so the chairman who has a value selected should be ordered first. If you need more refined ordering of those values you'll need to add the custom SQL for it by toggling Advanced usage of Sort By to supply your own Order By SQL to be added to the userlist 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.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
9 years 5 months ago #265354 by fribse2011
Replied by fribse2011 on topic Placing a user on top of a list
The only way I could figure it out was that I've created a field for each group, as a checkmark, and sort for that field in the list.
Now, it currently shows Yes and No, is it possible to get it to show a Checkmark insted?

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

Moderators: beatnantkrileon
Powered by Kunena Forum