• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: PHP application to add form details to a GCalendar

PHP application to add form details to a GCalendar 10 years 2 months ago #26547

  • josh.thomson
  • josh.thomson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
I have been asked to create a feature that will automatically take the details from a form submission and to populate & create a google event on an existing google calendar. Hopefully to all process as the user clicks "Submit"

I have been looking into the Google Api Documentation and at various guides, but have been unable so far to produce any results.

Does this seem like a plausable feat?


My current plans:

Build a php script to use OAuth, the authentication parameter for using google api services... then to sign into a preset account, create the event using the details from the calendar (using a getElementById / Class PHP function to save the details as variables.

Save the google calendar event, close the connection and end the script.


User... Fills in RSForm, Clicks submit, redirected to homepage. (Background processes: Creates event, now viewable on the calendar)
The administrator has disabled public write access.

PHP application to add form details to a GCalendar 10 years 2 months ago #26559

  • josh.thomson
  • josh.thomson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
This video Explains the Issue:


Thanks
Last Edit: 10 years 2 months ago by josh.thomson.
The administrator has disabled public write access.

PHP application to add form details to a GCalendar 10 years 1 month ago #26763

  • josh.thomson
  • josh.thomson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
For anyone interested, I managed to develop a script to complete this specification. (without much help)

It can be found here:

amazewebs.yitweb.com/#scriptv5

The script I created is using a Google Service Account for authentication and takes the variables from the forms output.

To get the form to output these variables I wrote this code within the "PHP Scripts/$thankYouMessage":
$thankYouMessage= '
<form id="silentform" action="/path/to/this/file.php" method="get">
<input name="name" value="'.$_POST["form"]["Name"].'"/>
<input name="dateFrom" value="'.$_POST["form"]["DateFrom"].'"/>
<input name="dateTo" value="'.$_POST["form"]["DateUntil"].'"/>
<input name="comment" value="'.$_POST["form"]["Comment"].'"/><br />
<input type="submit" value="Send This Data to Script">
</form>';

Be sure to enable the 'Thank you' message
The administrator has disabled public write access.
The following user(s) said Thank You: sam.samiei

PHP application to add form details to a GCalendar 8 years 7 months ago #32282

  • sam.samiei
  • sam.samiei's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Thank you received: 1
Hi Josh,
im looking to add the form submission to Google calnder and was wondering if you could share the script as the link mentioned above is not live,

thanks.
Sam
The administrator has disabled public write access.

PHP application to add form details to a GCalendar 7 years 6 months ago #35921

  • corévol
  • corévol's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi, I try the link but it does not word and I really need this kind of script.

So can you help mle please ?

Regards
The administrator has disabled public write access.

PHP application to add form details to a GCalendar 5 years 4 months ago #38666

  • preart3
  • preart3's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Try to use some code of this generator: kalinka.tardate.com/
In my case there was:

{date:value} - as calendar value in date format: Ymd
{time:value} - as dropdown field to choose hour:
0900|9:00
1000|10:00
{data:value} - as text field

Then code should look like this:
<a href="www.google.com/calendar/event?action=TEM...&details={data:value}">Add to Google Calendar</a>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!