[EventCalendar] How do I display a list of Past or Previous
Events on the sidebar?
Joe Subs
subs.scriber at gmail.com
Mon Sep 24 15:47:02 UTC 2007
Thank you again Dr.
1. your suggestion:
" to add <?php ec3_get_events('1 day'); ?>" to the sidebar.php"
that works!!
It shows "today's events" on the sidebar as needed. THANK YOU!
I tried it with by creating 2 different events happening "today" and
both are shown on the sidebar. Cool!
Correct me if I'm wrong but I think, the string "1 day" is today,
while "2 days" is "today and tomorrow", and so on; with "7 days" is
"today till 7 days from today"
Am I right?
========================
2. as for your suggestion for my wish to show past events in the same
manner:
"create a link to http://yourblog.com/your_event_category/?
ec3_before=today"
I know this and it will give me a link to the page listing the past
events.
I've tested that before and that works well.
But I don't want a link to a page. I want a list of past events on
the sidebar. the keyword here is the "SIDEBAR", not on a page, I want
it just like "today's events" above (no. 1)
=========================
Anyway, I'm happy! one works! That great.
however the need to show past events in the same manner is still
rather illusive.
is there a way to tweak the query: <?php ec3_get_events(' MYSTERIOUS
STRING ') ;?> to achieve that?
hmm.
anyway, good Dr.
Salut!
JK
On Sep 24, 2007, at 10:33 PM, Dr. Peter Troxler wrote:
>
> On 24-sep-2007, at 15:41, Joe Subs wrote:
>
>> thank you, Dr. for your prompt reply. i'm very grateful for your help
>>
>> but what i want is to know how can I feature a list of "past
>> events" on the sidebar.
>
> create a link to http://yourblog.com/your_event_category/?
> ec3_before=today
>
>>
>> with Upcoming Events, we can paste in the code: <?php
>> ec3_get_events(5); ?> somewhere in the sidebar.php of the theme,
>> and that will list 5 upcoming events there.
>>
>> but what is the code needed to show "past events",
>>
>> and while we are at it,
>>
>> can I also know what is the code to show "today's events"?
>
> from http://wpcal.firetree.net/template-functions/ec3_get_events/
>
>> Simple Example: Add this code to your sidebar.php
>> <li>Events <?php ec3_get_events(5); ?> </li>
>> Parameters:
>> $limit
>> The maximum number of future events or days to list. You can enter
>> a plain number, which limits the number of events, or you can
>> enter a string like '7 days' which shows all events for the next
>> week.
> try
>> <?php ec3_get_events('1 day'); ?>
>
>
>>
>> i'm doing a site for a community venue which hosts a lot of
>> theatre shows, exhibitions and gigs. and it would be super if we
>> can have that feature on the main page.
>>
>> thanks again,
>>
>> JK
>>
>>
>> On Sep 24, 2007, at 7:56 PM, Dr. Peter Troxler wrote:
>>
>>> you can set a time window with ?
>>> ec3_before=today&ec3_after=20070801 and you'd then set the after
>>> date with some suitable calculation
>>>
>>> for todays events check http://wpcal.firetree.net/advanced-queries/
>>>
>>> / pt
>>>
>>> On 24-sep-2007, at 13:21, Joe Subs wrote:
>>>
>>>> How do I display a list of Past or Previous Events on the sidebar?
>>>>
>>>> Hello all, I need your kind help...
>>>>
>>>> I'm using: WP 2.2 / EC 3.1.0
>>>>
>>>>
>>>> I know that we can display past events by using this as a page
>>>> link:
>>>>
>>>> http://domain.com./?ec3_before=today
>>>>
>>>> click on that an the whole page will feature a list of past events
>>>>
>>>>
>>>> but how do I display a list of past events on a sidebar?
>>>>
>>>> for a list of upcoming events, we can add this:
>>>>
>>>> <?php ec3_get_events(5); ?>
>>>>
>>>>
>>>> but what about past events?
>>>>
>>>> or today's event?
>>>>
>>>>
>>>> thanks in advance.
>>>>
>>>> cheers.
>>>>
>>>> jk
>>>> _______________________________________________
>>>> 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
>
> _______________________________________________
> 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/20070924/a5166ad9/attachment-0001.htm
More information about the EventCalendar
mailing list