[EventCalendar] Event schedule box and pages
Alex Tingle
alex at firetree.net
Mon Sep 11 10:40:16 UTC 2006
Hi Peter,
On 11 Sep 2006, at 10:53, Dr. Peter Troxler wrote:
> I wonder if it would be better the other way round, i.e. adding the
> extra filters only where you want them to appear, but again, this
> depends on the application context:
>
> -- if the blog/site is event-centric you probably want the schedule
> most of the time
> -- if the blog/site is not event centric, you might be inclined to use
> the box only on specific templates
Most WP users are not comfortable with editing templates. There's a
steady trickle of users who ask how to add ec3_get_calendar() to their
sidebar. I don't think those users should be expected to do more, so
they should be given the most useful set-up as a default.
I believe that default set-up has to display the event date/time both
from within the loop and on the single-post page. I couldn't think of a
more elegant way to do it than
Now, I don't really like the idea of adding stuff in
filter:the_contents, but it seemed like the best way to do it. I'm open
to alternative suggestions.
> BTW.
>
> I had some troubles connected with the "Subscribe2 Sidebar Widget V1.1
> by Matthew Robinson (http://subscribe2.wordpress.com/)" when the
> ec3_filter_the_content filter was on, the filter was then applied to
> the sidebar-widget.
>
> you can still see it here: http://www.stachanow.net/arac/?cat=4
> (subscirbed2 widget in the right hand sidebar, near the bottom)
I see it, but I don't understand what's going on. Why is the text for
that sidebar going through filter:the_contents at all?? Which post's
content is being filtered?
You might like the try the latest code from Subversion - Darrell has
added some code to restrict content filtering to posts. That might
solve your problem.
> 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
> 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
>
> On 11 sep 2006, at 11:13, Alex Tingle wrote:
>
>> Add the following to the top of templates where you do NOT want to
>> see the schedule box:
>>
>> remove_filter('the_content','ec3_filter_the_content');
>> remove_filter('get_the_excerpt','ec3_get_the_excerpt');
>>
>> You usually only need one of these two, depending upon whether your
>> loop shows content or excerpts.
>>
>> Let me know how you get on. If this works for people, then I want to
>> put it in the standard documentation.
>>
>> -Alex
>>
>> --
>> Dammit Jim, I'm a programmer... not a mind reader!
>>
>> On 11 Sep 2006, at 09:50, Linquity HELP wrote:
>>
>>> Hello all,
>>>
>>> I am using the latest beta of EventCalendar downloaded last week
>>> together
>>> with WP2.0.4
>>>
>>> I am wondering if I can disable the schedule box from being
>>> displayed on the
>>> normal pages,
>>> and to appear only within posts with events. Now, it appears on both
>>> pages
>>> and posts loop and
>>> assuming that pages are not a schedule, I would like to know how can
>>> I
>>> prevent
>>> from showing it on normal pages.
>>>
>>> Another issue, where can I modify the names of the months and days?
>>> I am
>>> trying
>>> to adapt it for a romanian concert season schedule, and currently the
>>> schedule box
>>> is displaying the months in english.
>>>
>>> Thank you,
>>> Alex
>>> _______________________________________________
>>> EventCalendar mailing list
>>> EventCalendar at firetree.net
>>> http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
>>
>>
>> _______________________________________________
>> EventCalendar mailing list
>> EventCalendar at firetree.net
>> http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
>>
>
>
> _______________________________________________
> EventCalendar mailing list
> EventCalendar at firetree.net
> http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
More information about the EventCalendar
mailing list