[EventCalendar] Upcoming events widget can not display recent past events as advertised?

Glenn Huther glenn at huther.net
Mon Feb 2 01:11:25 UTC 2009


Awesome! Worked like a charm.

Thanks Alex!

G

> Try the 3.2 version - it definitely works:
>   http://downloads.wordpress.org/plugin/event-calendar.zip
>
> -Alex
>
> --
>
> On 27 Jan 2009, at 13:17, Glenn Huther wrote:
>
>> Hi All
>>
>> Awesome plugin/widget. (I'm using 3.1.4).
>>
>> Just one major (for me) issue. I really needed the widget to show
>> recent past events, but I cannot get it working.
>>
>> The hover message on the 'Number of events' textbox in the widget
>> config says I should be able to do this with a negative number -
>> "Examples: '5', '5 days', '5d'. To display recent past events, use a
>> negative number: '-5'"
>>
>> However using a negative number does NOT successfully show past events
>> on the widget within my sidebar. Setting different POSITIVE values
>> works fine.
>>
>> Line 380 in template-functions.php says "elseif(intval($limit)<1)"
>> .... could this be the problem? Ie are all negative numbers falling
>> into this condition despite the indication given in the message above?
>> I'm not much of a coder so that might be a red herring.
>>
>> Ideally/optionally I'd like to do this with the ec3_get_events
>> function... but that also refuses to play nicely with negative
>> numbers...
>>
>> Help please?
>>
>> Thanks, Glenn



More information about the EventCalendar mailing list