Home › Forums › Calendar Products › Events Calendar PRO › Getting events for tomorrow
- This topic has 6 replies, 2 voices, and was last updated 7 years, 11 months ago by
Henk.
-
AuthorPosts
-
May 28, 2018 at 3:37 pm #1540338
Henk
ParticipantHi
There has to be a NOOB in every forum so it might aswell be me.
I used another events product before, I wrote a php script to extract events that would happen tomorrow. How the script works is:
– Get event for tomorrow.
– Check if the event is already published to Facebook
– if not published to facebook then extract event details and publishHow to extract events for tomorrow from the Events Calendar Pro… I looked at json but I am a complete rookie with that stuff. What is the json command to get all events for tomorrow?
Thanks
henkMay 29, 2018 at 8:39 pm #1541446Cliff
MemberHi, Henk. Glad to help, but we are limited in our ability to provide code customizations, per our Scope of Support / Terms.
I can point you in the right direction for step #1 but checking Facebook is out of our realm, especially with the recent Facebook App lockout/lockdown issues as a result of bad PR from their data breach(es).
Please reference https://theeventscalendar.com/knowledgebase/using-tribe_get_events/
- Because our calendar supports time zones, you’ll first want to determine what Today is and add a day to it to come up with the Start Date, such as 2018-05-30 00:00:00
- Then determine the End Date, such as 2018-05-30 23:59:59
Do note that our Day View is accessible at yoursite.com/events/today, which may come in handy if you’re doing day-specific views. However, we don’t have yoursite.com/events/tomorrow or other sort of “nicename” URLs, just “today”.
However, this sort of code could be made available by referencing https://github.com/mt-support/tribe-ext-schedule-day-view/blob/plain-language-url/index.php#L185 (unreleased so it only exists here at this time)
If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.
Please let me know if you have any follow-up questions on this topic.
June 1, 2018 at 4:44 pm #1544392Henk
ParticipantThanks mate Ill have a play around with it.
H
June 1, 2018 at 10:21 pm #1544447Cliff
MemberThanks for checking in. Feel free to reply whether or not you get it figured out on your own.
Please note that threads get Closed automatically after a couple weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.
Thank you!
June 2, 2018 at 10:27 pm #1544827Henk
ParticipantJust a question where in the tribe_get_events array is the event start date?
is the start_date returned?
Thanks
HJune 2, 2018 at 10:59 pm #1544832Henk
ParticipantAll good got it sorted.
Thanks
June 3, 2018 at 4:45 am #1544891Cliff
MemberGlad to hear and thanks for letting us know.
-
AuthorPosts
- The topic ‘Getting events for tomorrow’ is closed to new replies.
