[EventCalendar] Event schedule box and pages / clash with subscribe2

Dr. Peter Troxler peter.troxler at gmx.net
Mon Sep 11 10:51:04 UTC 2006


On 11 sep 2006, at 12:40, Alex Tingle wrote:
>> so I had to use the ec3 filter on the excerpt rather than the  
>> content to get rid of this problem
>> (in eventcalendar3.php changed the function ec3_filter_the_content  
>> accordingly; not a nice hack...)
>
> Can you post a patch so that I can see exactly what you did?
>
> -Alex

not exactly a patch, but here is lines approx. 508 ff. where you  
actually hook in the plugin:

> // the original eventcalendar applies this to the_content.
> // however that clashes with the subscribe2widget since this  
> operates also on the_content
> // so as a work-around we apply the ec3_filter_the_content to  
> the_excerpt
> add_filter('the_excerpt',  'ec3_filter_the_content', 20);
>
> // similarly we do not use ec3's excerpt filter
> // remove_filter('get_the_excerpt', 'wp_trim_excerpt');
> // add_filter(   'get_the_excerpt', 'ec3_get_the_excerpt');

the consequence, of course, is, that I should not have empty excerpts  
for events in this blog.  since I use the excerpts for place and  
ticketing/price information that suits me well, including the table  
design

will check out the latest version when I get around digging into the  
sites again later this month

/ Peter

>
>
>> as I did here:  http://www.stachanow.net/dln/site/events/andrew- 
>> lyon-iff-the-outcomes-of-research-into-modern-management/
>> (subscribe2 widget in the left had sidebar top)
>>
>> any suggestions how to fix that in a more elegant way?  (or maybe  
>> the subscribe2 widget is the guilty one?)
>>
>> / Peter




More information about the EventCalendar mailing list