Hi!
I am trying to change approval workflow based on CB field value and followed this tutorial:
www.joomlapolis.com/support/tutorials/107-use-cases/18219-changing-approval-workflow-based-on-cb-field-value
Being that my case is slightly different:
1. Form A: no need for approval.
2. Form B: needs to be approved.
3. Form C: needs to be approved.
And I don´t really want to mess with the emails, thought doing the opposite:
I Set “Require Admin Approval: yes” in the registration configuration and by auto actions want to set the auto approval for Form A users:
Auto actions:
• onBeforeUserConfirm
UPDATE `#__comprofiler` SET `approved`= '1' WHERE `user_id` = '[user_id]'
Everything fine up to this point: Have green in Approved, green in confirmed but red in enabled (user manager states).
So I tried another auto action:
• onAfterUserConfirm (or before)
UPDATE `#_users` SET `block` = '0' WHERE `id` = '[user_id]'
or
UPDATE `#__comprofiler` SET `enabled`= '1' WHERE `user_id` = '[user_id]'
None of them worked out. Not sure if the command is wrong or the time to apply it. Not sure if: ` SET `enabled`= '1' is valid neither…
Any help here, please???
Another thing is (seeing trouble coming) how to stop the admin email for the auto approved users…
Some more help here, please???
Tks
PS: more info (if needed) on how I set up the form here:
www.joomlapolis.com/forum/153-professional-member-support/192228-solved-need-help-with-conditional-field-and-multiforms