Skip Navigation

[Resolved] Can I create an event submission form to use with the event calendar plugin?

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1150155

Tell us what you are trying to do? I want to display member events on a calendar and have the member submit through a form from the member area, without admin or dashboard access.

Is there any documentation that you are following? No, I did some searching, but found limited info

Is there a similar example that we can see? They have a community add-on, but it only lists the events separately from the main calendar.

What is the link to your site? membership.eyeprosper.com

#1150418

Hi,

I assume we are talking about the "the event calendar" plugin, download from:
https://wordpress.org/plugins/the-events-calendar/

You can use Toolset form to create event posts(post type slug is "tribe_events"), but there will be some unexpected problems, for example:
"the event calendar" plugin stores Start/End value in string format, you can check it in your database table "wp_postmeta", meta_key are these:
- _EventStartDate
- _EventEndDate
Values are similar like these:
2018-11-21 00:00:00
2018-11-21 23:59:59

But in Toolset side, custom date field created with Types plugin stores value in timestamp value, like this:
1542780448

As you can see, they are not compatible, but there is a workaround, for example:

1) you can create two date fields (start-date and end-date) with Types plugin, register them to post type "event",

2) Create a Toolset form for creating new "event" post, with above date fields (start-date and end-date)

3) After user submit the form, use action hook cred_save_data to trigger a custom PHP function,
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

4) in this PHP function, get the values from date fields (start-date and end-date) , and turn it into string format, then save them into "the event calendar" plugin date fields:
- _EventStartDate
- _EventEndDate

More help:
https://codex.wordpress.org/Function_Reference/get_post_meta
https://developer.wordpress.org/reference/functions/update_post_meta/
hidden link

For your reference.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.