[EventCalendar] Re: Changing the date format in the event calendar...

Mike Anderson lunyboy at yahoo.com
Thu Aug 2 16:38:10 UTC 2007


Change the format section of the Date Param...

The 5 arguments are used to form the output, so
instead of using the default %DATE% template, you can
finesse one from here:

http://www.php.net/date

I am using "M" format to get my month as jan-dec, but
that is param no 5 and you shouldn't have to go quite
that far. I think something like "F j, Y" But don't
quote me, as I am not a PHP Programmer.


Mike Anderson


ps This is my code:

             <?php ec3_get_events(
                      '5',
                      '<span class="calcontainer">
<span class="calmonthdate"> <span class="calmonth">
%MONTH%</span> <span class="caldate">%DATE%</span>
</span> <span class="calevent" ><a
href="%LINK%">%TITLE%</a></span> <span
class="calsub"></span> </span><div
style="clear:both;"> </div>',
                      '',
		      'j',
		      '',
		      'M'
              ); ?>

and the results are in the left bar here:

http://andersonscorner.com/

I used many hooks to get that look with CSS. My only
request for future versions is this control for the
Schedule and an excerpt output in the get events call.




--- eventcalendar-request at firetree.net wrote:

> Send EventCalendar mailing list submissions to
> 	eventcalendar at firetree.net
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
> 
>
http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
> or, via email, send a message with subject or body
> 'help' to
> 	eventcalendar-request at firetree.net
> 
> You can reach the person managing the list at
> 	eventcalendar-owner at firetree.net
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of EventCalendar digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Adding the year to the upcoming events
> widget
>       (Dr. Peter Troxler)
> 
> 
>
----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 2 Aug 2007 08:36:46 +0200
> From: "Dr. Peter Troxler" <peter.troxler at gmx.net>
> Subject: Re: [EventCalendar] Adding the year to the
> upcoming events
> 	widget
> To: Support for EventCalendar plugin
> <eventcalendar at firetree.net>
> Message-ID:
> <5DA2864C-EE1D-4A3B-B0C5-CCA65E05401A at gmx.net>
> Content-Type: text/plain; charset="us-ascii"
> 
>
http://wpcal-archive.firetree.net/2007-July/002181.html
> 
> On 1-aug-2007, at 21:26, Dan Galfano wrote:
> 
> > I just want to make one edit to add the Year to
> the Upcoming Events  
> > widget.  Currently it displays as:
> >
> > Upcoming Events
> > >> 23 October:
> >        New Cooking Class
> >
> > I'd like it to read:
> >
> > Upcoming Events
> > >> October 23, 2008
> >       New Cooking Class
> >
> > Any ideas on how to do this specifically? I've
> looked through all  
> > the pages, but can't figure this one out.
> >
> > Thanks!
> >
> > Dan
> > _______________________________________________
> > Blog: http://wpcal.firetree.net/
> > EventCalendar at firetree.net mailing list
> > Unsubscribe:
> http://penguin.firetree.net/eventcalendar
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070802/22df4fc5/attachment.html
> 
> ------------------------------
> 
> _______________________________________________
> EventCalendar mailing list
> EventCalendar at firetree.net
>
http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
> 
> 
> End of EventCalendar Digest, Vol 22, Issue 3
> ********************************************
> 




More information about the EventCalendar mailing list