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 » Fri Nov 06, 2009 11:13 am

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 :)

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mycalendar plugin and longer events

Post by garvinhicking » Fri Nov 06, 2009 8:53 pm

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 » Sat Nov 28, 2009 10:01 am

It works. Thank you very much!

Regards,
Jutta

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: mycalendar plugin and longer events

Post by stm999999999 » Mon Nov 30, 2009 1:33 am

garvinhicking wrote:If that works out for you, I can update the plugin!


Did you find the time for an update meanwhile?
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mycalendar plugin and longer events

Post by garvinhicking » Mon Nov 30, 2009 10:37 am

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: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: mycalendar plugin and longer events

Post by stm999999999 » Tue Dec 01, 2009 8:46 pm

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 » Fri Jun 11, 2010 2:05 am

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