mycalendar plugin and longer events

Creating and modifying plugins.
Post Reply
ju
Regular
Posts: 50
Joined: Wed Oct 01, 2008 4:27 pm

mycalendar plugin and longer events

Post by ju »

I use mycalendar plugin on www.queernews.at to announce events. It works fine, but I have a problem with events that last longer than one day - eg from November 4th to November 8th. It only shows before and on Nov. 4th. When the day is over, it gets offline. So either I have to update it every day or I have to keep old events online for some days (which will make the list long and confusing because it shows events that are over). Would be nice to have a solution in a future version :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mycalendar plugin and longer events

Post by garvinhicking »

Hi!

I think this should be easily doable. Could you edit the serendipity_plugin_mycalendar.php file and simply replace this line:

Code: Select all

 $filter = "WHERE eventdate > " . $timeout;
with:

Code: Select all

 $filter = "WHERE eventdate2 > " . $timeout;
This should use the end-date instead of the start-date as the filtering point. If that works out for you, I can update the plugin!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ju
Regular
Posts: 50
Joined: Wed Oct 01, 2008 4:27 pm

Re: mycalendar plugin and longer events

Post by ju »

It works. Thank you very much!

Regards,
Jutta
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Re: mycalendar plugin and longer events

Post by stm999999999 »

garvinhicking wrote:If that works out for you, I can update the plugin!
Did you find the time for an update meanwhile?
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mycalendar plugin and longer events

Post by garvinhicking »

Hi!

Just committed it.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Re: mycalendar plugin and longer events

Post by stm999999999 »

hi,

in the backend should made a similar patch, I think.

So that the "delete me" button is not dependend from eventdate but eventdate2, too.

and perhaps in the layout, the button could be after the eventdate2 field?
Ciao, Stephan
polydream
Regular
Posts: 12
Joined: Thu Jun 10, 2010 12:17 am

Re: mycalendar plugin and longer events

Post by polydream »

Hi, I have an other problem with this plugin.
I use it to display aevents but the description of the event is never shown.
I can enter it while im making the post but it doesnt show up anywhere.

And maybe there is an option to link it to the post automaticly?


Thanks
Post Reply