get the user token

5 years 8 months ago - 5 years 8 months ago #306713 by krileon
Replied by krileon on topic get the user token
You can replace that with CB Auto Actions and its Request action with the below initial setup.

Plan Active
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A

Plan Expired
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Not Equal To A

Alternatively I suppose a Code field with the below API usage could be used to output it. You'd then substitute in the code field.

www.joomlapolis.com/forum/149-usage/237307-get-the-user-token?limitstart=0#297055


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 to join the conversation.

5 years 8 months ago #306714 by MarlonFungai
Replied by MarlonFungai on topic get the user token
Ok I think my head just split open after that last response hold on I think there is something I didn't explain properly;

The field cb_token actually has the correct value in it so if for example if I set it in the body section as
1=[cb_token] instead of [cb_token] = 1 the substitution will work correctly the problem is it doesn't work at all, in reverse.

Let me try and set up the auto action as well I just have a lot of auto actions.

Please Log in to join the conversation.

5 years 8 months ago #306716 by krileon
Replied by krileon on topic get the user token
Substitutions are not applied to the GET or POST key in CBSubs URL, which is what you're trying to do using [cb_token]=1. It's too dangerous to allow user supplied values to set GET or POST keys, which is why substitutions are disabled for them.


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 to join the conversation.

5 years 8 months ago #306720 by MarlonFungai
Replied by MarlonFungai on topic get the user token
"It's too dangerous to allow user supplied values to set GET or POST keys, which is why substitutions are disabled for them." does this apply to keys in auto actions as well?

Please Log in to join the conversation.

5 years 8 months ago #306726 by krileon
Replied by krileon on topic get the user token

"It's too dangerous to allow user supplied values to set GET or POST keys, which is why substitutions are disabled for them." does this apply to keys in auto actions as well?

Yes.


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 to join the conversation.

5 years 8 months ago #306731 by MarlonFungai
Replied by MarlonFungai on topic get the user token
Is there another way I can post the token to the url? Maybe via placing the full input tag on the registration form?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.596 seconds

Facebook Twitter LinkedIn