[EventCalendar] Re: 404 error when there are no future events
(EC 3.1._pre14 and EC 3.1._pre15)
Alex Tingle
alex at firetree.net
Fri Oct 6 09:35:37 UTC 2006
Steve,
I don't see this problem on my setup. Could you post a link to your site
so that I can see this for myself?
-Alex
--
On Fri, 6 Oct 2006 10:01:46 +0100
"Steve Winton" <stevewinton at gmail.com> wrote:
> Has no-one else noticed this? Could it be something to do with my setup?
>
> Thanks
> Steve
>
> On 10/4/06, Steve Winton <stevewinton at gmail.com> wrote:
> > Hi all
> >
> > What is the recommended way of avoiding the 404 error when using EC in 'Keep
> > Events Separate' mode and there are no future events scheduled?
> >
> > Currently I've hacked my 404.php template file as follows:
> >
> > <?php
> > global $wp_query;
> > if ($wp_query->query_vars['cat'] =
> > get_option('ec3_event_category')) :
> > ?>
> > <p>You were trying to access the events page, but there are currently no
> > scheduled events!</p>
> > <pre>
> > <?php
> > endif;
> > ?>
> >
> > But does anyone have a more elegant approach?
> >
> > Thanks,
> > Steve
> >
> >
>
> _______________________________________________
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
> Download: http://sf.net/projects/wpcal
--
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net +44-7901-552763
More information about the EventCalendar
mailing list