Skip to Content Skip to Menu

cb_Code triggers in cbSubs

13 years 6 months ago #161416 by bruceisaacson
Replied by bruceisaacson on topic Re: cb_Code triggers in cbSubs
Thanks again.

It's working, now. I un-published my CB Code trigger, then tried again, and it worked. Then I re-published it, tried again, and it still worked. Probably just one of those weird co-incidences

Now, my next problem is how to get access to the ID code of the performer. If I have a button on the performer's profile page that the viewer can use to subscribe to that plan/performance, will I have the performer's ID code available to the On First Subscription URL POST process? If so, how would I identify it?

Again, thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
13 years 6 months ago - 13 years 6 months ago #161501 by krileon
Replied by krileon on topic Re: cb_Code triggers in cbSubs
User ID can be obtained using a substitution of [user_id]. This can be used in many of the incubator projects, delimiter fields, tab descriptions; basically anywhere substitutions are supported. Simply add this to the URL such as index.php?userid=[user_id] and you can obtain it through PHP GET/REQUEST. If using POST method pass it as a variable.


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: 13 years 6 months ago by krileon.

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

13 years 6 months ago #161535 by bruceisaacson
Replied by bruceisaacson on topic Re: cb_Code triggers in cbSubs
Thanks again.

The ID I am interested in now is for the owner of the profile page I am currently visiting. I have seen reference to parameters #me and #displayed. Are these what I should be using?

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
13 years 6 months ago #161558 by krileon
Replied by krileon on topic Re: cb_Code triggers in cbSubs
#displayed is used for the user being displayed and #me is for the user viewing. So you'll want to use #displayed (this is used by default so in most cases is not necessary).


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.

13 years 6 months ago #161565 by bruceisaacson
Replied by bruceisaacson on topic Re: cb_Code triggers in cbSubs
Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
13 years 6 months ago #161566 by krileon
Replied by krileon on topic Re: cb_Code triggers in cbSubs
Don't recommend using #displayed or #me in CBSubs as you're needing the User ID of the user subscribing. Simply using [user_id] would give you just that. No idea how #displayed or #me will behave in CBSubs URL or CB Code scenarios.


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