Skip to Content Skip to Menu

🐰 Happy Easter! Great savings on Professional and Developer Memberships! Get 20% off now with code EASTER-2025!

[SOLVED] Autoactions, usersgroups and users aprovement.

  • dyvymtvar
  • dyvymtvar
  • OFFLINE
  • Posts: 34
  • Thanks: 0
  • Karma: 0
12 years 4 months ago - 12 years 4 months ago #216511 by dyvymtvar
I want to create a group of buyers (Workshops) with a discount at the store. I need to verify that it really is a workshop.

I plan to create a check box (I'm workshop) in the registration form So if this box is checked the user does not approve automatically, but have to do it myself and when I'll do put it directly in workshops group.

In addition will send an email to the user informing of the situation in which the registry is and he have to send me some documentation.

I've been testing the autoactions and I think it is possible but I don't understand well how the plugin works.

Anybody can help me?
Last edit: 12 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49069
  • Thanks: 8388
  • Karma: 1458
12 years 4 months ago #216516 by krileon
CB Auto Actions can't change the users approval status. You'd need a custom plugin that acts on the user object reference with the before registration trigger and sets them to require approval. You can try doing it through a database query in a Query action, but that won't update the user object value so CB will probably ignore the change.


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.

  • dyvymtvar
  • dyvymtvar
  • OFFLINE
  • Posts: 34
  • Thanks: 0
  • Karma: 0
12 years 4 months ago #216525 by dyvymtvar
In autoactions there is an autoaction type called registry.

In this option I can set the approval and the confirmation to no, yes or default but I don't know how I should configure it.



There's something in this autoaction that I don't understand Why an username substitution is required?
Attachments:

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

  • dyvymtvar
  • dyvymtvar
  • OFFLINE
  • Posts: 34
  • Thanks: 0
  • Karma: 0
12 years 4 months ago #216583 by dyvymtvar
Ok, I found this www.joomlapolis.com/support/tutorials/107-use-cases/18219-changing-approval-workflow-based-on-cb-field-value .

It works and do exactly what I want but now the multilingual doesn't work. When I change the langauge I only see a white page. Could it have a relationship?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49069
  • Thanks: 8388
  • Karma: 1458
12 years 4 months ago #216614 by krileon

In autoactions there is an autoaction type called registry.

This will not help you. This action registers a user, it does not change an existing user; it creates a new one.

Ok, I found this www.joomlapolis.com/support/tutorials/10...ed-on-cb-field-value .

Correct, it's using queries in a query action as suggested in my earlier post.

It works and do exactly what I want but now the multilingual doesn't work. When I change the langauge I only see a white page. Could it have a relationship?

Don't see what changing the approval status of a user has to do with Joomla language usage. If you have a blank page then you probably have an unclosed quote (" or ') in one of your CB language plugins files.


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.

  • dyvymtvar
  • dyvymtvar
  • OFFLINE
  • Posts: 34
  • Thanks: 0
  • Karma: 0
12 years 4 months ago #216706 by dyvymtvar
It is possible that the problem is that I change something when I modify the _UE_USER_CONFIRMED language string in my language.php file?

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

Moderators: beatnantkrileon
Powered by Kunena Forum