It's absolutely basic question without an answer in documentation.
How to call an external script on First Subscription Activation ?
Would be obliged for a real support !
Because for such a powerful feature is ONLY ONE PAGE (386) under
7.5.6.19 Plans icon area Integrations Tab - URL sub-tab
and that's all.
No one real example there HOW IT SHOULD BE DONE EXACTLY ON CBSUBS GPL basis :huh:
Example - let's say on a First Subscription Activation we want to run once an external script on
www.example.com/testscript.php
No matter what this script does. May be just send a ping somewhere.
How to call the one to execute once ?
Using Get ? How to ?
or
Using Post ? How to ?
VERY BIG REQUEST TO WRITE/PUBLISH AN ARTICLE on Joomlapolis site with list of real basic examples how to use URL Integration under CBSUBS GPL.
3-5 examples will be enough to understand the key basis and adopt for own needs.
I think this is not only for me - but for all users of CBSUBS GPL, because of poor documentation regarding URL Integration (as mentioned above)
You give it a URL and that's all you need to do. It'll then use our Snoopy library to make an HTTP call to the URL. The descriptions directly next to the input give usage examples. Both GET and POST are explained in the information icons. Both also have examples provided in the information icons.
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.
Dear Kyle, I see this information but I can't understand how to use it.
This is why I still believe that a supporting article would be very helpful.
I'll try to make my question more precise.
Createdir.php is simplest predefined script to create a directory
*************
<?php
$dirPath = "/var/www/vhosts/example.com/HELLOCB";
$result = mkdir($dirPath, 0755);
?>
**************
So when I put the path
example.com/createdir.php
to browser - I know the script works and creates directory HELLOCB.
OK, now I choose under CBSUBS - Plans - Integrations - URL - First Subscription Activation - enter same path -
example.com/createdir.php
CBSUBS interface requires me to choose from three variants
Get
Post
XML
Which one should I choose to execute this PHP script once ?
GET is the same as navigating to the URL directly. So you'd use GET if you want to replicate going to the URL in your browser. POST is the same as submitting an HTML form. XML is like POST except it's sent with XML format and header.
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.