Skip to Content Skip to Menu

how to force user in this way?

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
4 years 6 months ago #317864 by saman2
how to force user in this way? was created by saman2
hi.
q1-is it possible set condition in auto action to run only in front-end?

q2:
i want send sms verify to user for registration in my web site instead of email verification. i want check with you my scenario.please advise me if i am in false way...
1-user register via cb registration form
2- set default usergroup for new user in "waitforverify" usergroup.
3-set autoaction to onAfterRender for each user in that group to redirect to my custom Fabrik From that has send sms and if verify via user, then set that user to defult "Register" group in joomla
4- user is an normal and regular activated and enabled user

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
4 years 6 months ago #317883 by krileon
Replied by krileon on topic how to force user in this way?

q1-is it possible set condition in auto action to run only in front-end?

Somewhat, yes. There's a substitution to determine location as shown on our substitutions tutorial page below.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

It is as follows.

[cb:if application_context="frontend"]Frontend Only[/cb:if]
[cb:if application_context="administrator"]Backend Only[/cb:if]

You can combine it your condition to force some sort of behavior to be limited to a location. Example as follows.

[cb_test] Equal To 1

This would become the following.

[cb:if application_context="administrator"]0[cb:else][cb_test][/cb:else][/cb:if] Equal To 1

Now it should always fail the condition in backend.

3-set autoaction to onAfterRender for each user in that group to redirect to my custom Fabrik From that has send sms and if verify via user, then set that user to defult "Register" group in joomla

That's redirecting too early. You'd interrupt registration. You'd need to use the below which will fire when registration is completed.

onAfterSaveUserRegistration

I can't comment regarding the rest of your process as we've no support for SMS verification in any way.


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