[EventCalendar] Remove time from Upcoming Events widget

Alex Tingle alex at firetree.net
Mon Dec 29 21:08:05 UTC 2008


Steve Maunsell wrote:
> Hi,
> 
> It is actually in template-functions.php that I needed to change this. The line
> 
> define('EC3_DEFAULT_TEMPLATE_EVENT','<a href="%LINK%">%TITLE% (%TIME%)</a>')
> 
> needs to be changed to 
> 
> define('EC3_DEFAULT_TEMPLATE_EVENT','<a href="%LINK%">%TITLE%</a>')
> 
> and this removes the time from being shown in the Upcoming Events widget.

Don't change the defines. Change it where you call the actual function. That's
why functions *have* parameters.

In this case, the call to ec3_get_events() is in your widget code in widget.php.

-Alex

--
> 
> -----Original Message-----
> From: eventcalendar-bounces at firetree.net [mailto:eventcalendar-bounces at firetree.net] On Behalf Of Damon Timm
> Sent: Tuesday, 30 December 2008 1:28 AM
> To: Support for EventCalendar plugin
> Subject: Re: [EventCalendar] Remove time from Upcoming Events widget
> 
> If you look around line 114 in the widgets.php file you will see the
> call to ec3_get_events() ...
> 
> http://plugins.trac.wordpress.org/browser/event-calendar/tags/3.1.4/widget.php
> 
> You can change these options in this function to whatever formating
> you want ... view this page for details:
> 
> http://wpcal.firetree.net/template-functions/ec3_get_events/
> 
> This gives you all the options.
> 
> That should do it.
> 
> Damon
> 
> On 12/29/08, Steve Maunsell <kiwiaudiophile at hotmail.com> wrote:
>>
>>
>> Hi, I have Event Calendar 3.1.4 working on Wordpress 2.7 and it's great. One
>> small thing I want to change is the showing of the time of the event in the
>> Upcoming Events widget in my sidebar. I have seen a site that does this but
>> am unable to work out how to remove it. I have tried removing a couple of
>> things in the widget editor but they didn't change anything so I put them
>> back in. I just want the title of the event to show.
>>
>> Any help would be appreciated.
>> _______________________________________________
>> Blog: http://wpcal.firetree.net/
>> EventCalendar at firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>>
> 
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
> 
> 
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar


-- 
:: Let me solve your problems: http://www.firetree.net/alex/
:: alex.tingle AT firetree.net  +44-7901-552763

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://penguin.firetree.net/pipermail/eventcalendar/attachments/20081229/66233c5f/signature.pgp


More information about the EventCalendar mailing list