It is currently Tue Apr 23, 2019 6:30 am




Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next
Author Message
 Post subject: Re: Feature Requests
Unread postPosted: Thu Mar 20, 2014 5:01 pm 
Offline

Joined: Tue Feb 09, 2010 7:03 pm
Posts: 30
Location: NYC, USA
Add the following hook when inserting/updating WP_CALENDAR_TABLE for new/edited entries:

Code:
do_action('add_calendar_entry');


Goes in two places. After the query on line 1221 and line 1388 or so.

The hook will allow me to write an ics file for google/calendar subscriptions (which I was running as a separate cron anyway). That way I only hit the server with a query when I update the calendar.

Thanks in advance,
John


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Thu Mar 20, 2014 7:49 pm 
Offline

Joined: Tue Feb 09, 2010 7:03 pm
Posts: 30
Location: NYC, USA
While I'm asking for hooks, how about a filter hook on the $linky variable in draw_events() function. I'd like to be able to change the '#' href to a link which will download the event as an ics file.

Right after you define$linky, you can add the following filter hook:

Code:
$linky = apply_filters('modify_calendar_link', $linky, $event);


By providing the $event object as an argument, I can use the ID property to develop my link for the ics file.

Thanks again,
John


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Fri Mar 21, 2014 6:38 pm 
Offline

Joined: Tue Feb 09, 2010 7:03 pm
Posts: 30
Location: NYC, USA
lexhair wrote:
Add the following hook when inserting/updating WP_CALENDAR_TABLE for new/edited entries:

Code:
do_action('add_calendar_entry');


Goes in two places. After the query on line 1221 and line 1388 or so.

The hook will allow me to write an ics file for google/calendar subscriptions (which I was running as a separate cron anyway). That way I only hit the server with a query when I update the calendar.

Thanks in advance,
John

Actually, this goes in three places (forgot the delete event query). I also added another argument so the do_action callback function would know whether it was a new event, edited event or deleted event.


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Wed Oct 01, 2014 7:08 pm 
Offline

Joined: Wed Oct 01, 2014 7:04 pm
Posts: 3
Export to ICS

It would be nice if site visitors could export calendar entries as an ICS file to import into Outlook.

Just a thought.

Best wishes,


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Tue Oct 07, 2014 3:39 am 
Offline

Joined: Tue Oct 07, 2014 3:36 am
Posts: 1
It would be great if we could create multiple calendars for different pages. I have different counties that would require different event calendars.

Thanks.


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Mon Nov 10, 2014 3:40 pm 
Offline

Joined: Mon Nov 10, 2014 3:38 pm
Posts: 1
It would be great if we could create multiple calendars for different pages. I have different counties that would require different event calendars.


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Mon Feb 02, 2015 1:22 pm 
Offline
User avatar

Joined: Sat May 26, 2007 1:55 pm
Posts: 2048
Location: London
sandralambert wrote:
It would be great if we could create multiple calendars for different pages. I have different counties that would require different event calendars.


You can do that already; create one category per country, then add the calendar to multiple pages with tags like the following
Code:
{CALENDAR;1}
{CALENDAR;3}

Where the digits specified are the category numbers.

_________________
Kieran O'Shea


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Tue Jan 05, 2016 5:14 pm 
Offline

Joined: Tue Feb 09, 2010 7:03 pm
Posts: 30
Location: NYC, USA
Please consider adding date_created and date_modified (or just date_modified) to the database table schema.


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Thu Jun 21, 2018 8:50 am 
Offline

Joined: Mon Apr 21, 2014 8:45 am
Posts: 6
I’m going to start adding events to my calendar which repeat on the Xth day of a month every year, eg every 3rd Wednesday in May every year. Any chance of making this an option on the recurring dates field?


Top
 Profile  
 
 Post subject: Re: Feature Requests
Unread postPosted: Thu Oct 04, 2018 10:17 am 
Offline

Joined: Thu Apr 19, 2018 4:08 pm
Posts: 1
Location: Barcelona
wxmmoz wrote:
I’m going to start adding events to my calendar which repeat on the Xth day of a month every year, eg every 3rd Wednesday in May every year. Any chance of making this an option on the recurring dates field?


Have exactly the same issue, I read in older posts that this feature may be already implemented. Any ideas on how to make use of it?

Thanks in advance!

_________________
Cursos de ingeniería industrial de Vester Industrial Training Center


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron