Assignment into two groups
-
fawilson@itechconcepts.net
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
11 years 9 months ago #665
by fawilson@itechconcepts.net
I have a checkbox field set up in CB. When the box is checked I want the user to be put in the "Restaurants" group. When unchecked they should go in the standard "Registered" group. For some reason it is adding new registrations to both groups if the box is checked.
Here is what I have set up..
cb_isrestaurant;1;Restaurant;True
cb_isrestaurant;0;Registered;True
Please advise
Thanks
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 9 months ago #668
by admin
Hi,
just add a single line (case sensitive, so "true" in lowercase):
cb_isrestaurant;1;Restaurant;true
In this way the Restaurant group is assigned/unassigned as the checkbox changes. You can leave the Registered group as default to any user (better not remove it).
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
fawilson@itechconcepts.net
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
11 years 9 months ago #688
by fawilson@itechconcepts.net
Luigi,
Thanks for the fast reply. Faster than I actually go a chance to check it.
I made the change as you stated but it still puts the user into both groups
Any Ideas?
Site is not live yet so I am fine with PMing you logon credentials if that will help?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 9 months ago #691
by admin
It seems fine, what is the problem?
To check if the rule works, just edit a user profile from CB backend. Save and check if group is assigned / unassigned.
The Registered group should not be removed from any user, why you want to do this? A user can have it and a second group. Please, advise.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
fawilson@itechconcepts.net
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
11 years 9 months ago #694
by fawilson@itechconcepts.net
Luigi,
What I am trying to accomplish, and maybe I am going about it all wrong, is I also have another plugin called nomad that takes a person to a different home page once they log in depending upon their group. I also am showing/hiding menu items based upon groups.
In essence registered the user base will be "restaurant diners", and "Restaurant Owners"; each get their own landing page and menu options. So... Maybe what I actually need to do is have 3 groups to accomplish what I need to do... Registered, Diners, & Owners... Let me give that a go and see if that solves the issue because right now all menu options for "Registered" show up for "Restaurants" because they belong to both groups.
If you have any other ideas I am all ears though.
Thanks
Fred
Please Log in or Create an account to join the conversation.
-
fawilson@itechconcepts.net
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
11 years 9 months ago #697
by fawilson@itechconcepts.net
FYI: Setting up 2 groups corrected the issue so now users always belong to "Registered" but depending upon the check box value also belong to either "Diners" or "Restaurant". I also reset the group levels on my menu items and they show/hide appropriately.
Thanks for the help and the great plugin!
Fred
Please Log in or Create an account to join the conversation.
Time to create page: 0.142 seconds