Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

cb-auto-actions-assigning-usergroup-based-on-cb-field-value

  • HdCms
  • HdCms
  • OFFLINE
  • Posts: 51
  • Thanks: 2
  • Karma: 0
9 years 9 months ago #261476 by HdCms
Hi,

My test with a user who is in a group, then leaves an ACL group
1 / User registers in the [cb_espacestructure] alter1
2 / user leaves the [cb_espacestructure] alter1
3 / user registers in the alter1 [cb_espacestructure] AND the [cb_espacestructure] alter1
4 / user leaves the [cb_espacestructure] alter1
5 / user registers in the [cb_espacestructure] alter1
6 / user leaves the [cb_espacestructure] alter1

At each step, I will rotate the ACL entry in a group and its removal.

Excluding this is highly uncertain. Sometimes it works, but not all the time.
I hope these pictures will help, but the test on the site would save us time !!

Regards

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 9 months ago #261481 by nant
ok - please PM me superadmin access and I will take a closer look.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
9 years 9 months ago - 9 years 9 months ago #261497 by krileon
You're using the wrong triggers. You should be using the after registration and after profile update triggers (frontend and backend) for 4 total triggers per action. The triggers you're currently using are firing when a tab edit is displayed and after profile edit is displayed so it takes double view after a change for the usergroups to cycle (giving the sometimes working scenario).


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 9 months ago by krileon.

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

  • HdCms
  • HdCms
  • OFFLINE
  • Posts: 51
  • Thanks: 2
  • Karma: 0
9 years 9 months ago #261500 by HdCms
HI,
Thank you for your reply, but I have trouble understanding :huh:
What triggers used?
Can you answer me, as I indicated in my post, that I have to?
Can you make an example?
I gave the admin code to Nant

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
9 years 9 months ago #261503 by krileon
The below for example would be the starting point to performing an action when profile data changes.

Triggers: onAfterUserRegistration, onAfterNewUser, onAfterUserUpdate, onAfterUpdateUser
User: Automatic
Access: Everybody

Your action will now fire for the user when their profile data is updated on frontend or backend. In this case you'd use a Usegroup action and assign usergroups as needed. The rest of your action looks fine (condition appears correct).


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

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

  • HdCms
  • HdCms
  • OFFLINE
  • Posts: 51
  • Thanks: 2
  • Karma: 0
9 years 9 months ago #261514 by HdCms
Hi,

Thank you it works :)
It was bad triggers :S

1/ Where is the detailed description of this plugin and mainly the list of triggers with his description ??

2/ and Format Functions ??
Usage
[cb:parse function="FUNCTION"PARAMETERS]CONTENT[/cb:parse]

3/ and buttons: YES/NO [Format Functions/tab Parameters]

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

Moderators: beatnantkrileon
Powered by Kunena Forum