Skip to Content Skip to Menu

change the user group

  • AlecsRU
  • AlecsRU
  • OFFLINE
  • Posts: 111
  • Thanks: 3
  • Karma: 0
6 years 2 months ago #307776 by AlecsRU
change the user group was created by AlecsRU
Please help me. First time working with CB and very little detail about triggers. I need to change the user group when the user updates the field with the drop-down list. Unfortunately I can't do it. I would be grateful for a hint

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
6 years 2 months ago #307779 by nant
Replied by nant on topic change the user group

AlecsRU wrote: Please help me. First time working with CB and very little detail about triggers. I need to change the user group when the user updates the field with the drop-down list. Unfortunately I can't do it. I would be grateful for a hint


CB Auto Actions does this.

I believe there is a tutorial on this also here:

www.joomlapolis.com/documentation/291-cb-auto-actions/tutorials/18237-cb-auto-actions-assigning-usergroup-based-on-cb-field-value

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

  • AlecsRU
  • AlecsRU
  • OFFLINE
  • Posts: 111
  • Thanks: 3
  • Karma: 0
6 years 2 months ago - 6 years 2 months ago #307783 by AlecsRU
Replied by AlecsRU on topic change the user group
Yeah, I saw that article. The translation of trigger names is so inaccurate that it is unclear what the trigger does. You have to study blind and a lot of time trying each trigger.

The user must enter the word "YES" in the CB_demo field and update. Must be implemented to change the group of users is registered on the demo.
I put a trigger in after field row, type "usergroup", access"registered".
In terms of [cb_demo] , the operator "Equals" and value "yes". In the action tab, replace user group and demo group.

When you enable auto action error 502 Bad Gateway appears in your account and in the admin panel of the user.
Last edit: 6 years 2 months ago by AlecsRU.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48603
  • Thanks: 8300
  • Karma: 1445
6 years 2 months ago #307803 by krileon
Replied by krileon on topic change the user group
Our demo site is restricted in some regards to protect the demo site it self. You may not be able to do somethings with CB Auto Actions there. I can't help you in regards to the translations of triggers; that would be up to the volunteer language teams or your self to translate them. Most triggers are rather self explanatory. For example onAfterUserRegistration is triggered after a user registers. Also note the tutorial covers user registration from frontend only and following its instructions exactly should work fine.


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.

  • AlecsRU
  • AlecsRU
  • OFFLINE
  • Posts: 111
  • Thanks: 3
  • Karma: 0
6 years 2 months ago - 6 years 2 months ago #307879 by AlecsRU
Replied by AlecsRU on topic change the user group
You misunderstood me. I'm not talking about your demo site. On my site, I'm trying to make a change to the access rights of a user who fills in a specific field in the profile and updates the profile

Here's what I did:

Created a Yes and No combo box.
The user selects Yes and should automatically change the access level
I selected trigger "onafterfieldrow", user access level "Registered", type " Uesrgroup"
In the second tab " Conditions "I specified the field name [cb_demo], operator" Equal "and value"Yes".
In the third tab I specified to change the user group from" Registered "to"Demo group".
As a result of activation of the trigger (before changing a record in a field) on my website in the personal account of the user 504 error. The same error is in the administrative panel of this user.

I would be grateful if you could explain my mistake.
Last edit: 6 years 2 months ago by AlecsRU.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48603
  • Thanks: 8300
  • Karma: 1445
6 years 2 months ago #307887 by krileon
Replied by krileon on topic change the user group
You do not have an active subscription for CB Auto Actions, no download history for CB Auto Actions, and no purchase history. So if you do have CB Auto Actions it's either massively out of date (from before the launch of our new site) or obtained my unknown means. I can not help you any further. If you purchased with a separate account please login to that account and post in the support forums otherwise you're welcome to purchase a subscription for support. We do not provide free support for our products beyond basic CB questions, sorry.


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