[EventCalendar] How do I display a list of Past or Previous Events on the sidebar?

Dr. Peter Troxler peter.troxler at gmx.net
Mon Sep 24 17:13:54 UTC 2007


Hi Joe

seems I have a sad live or otherwise nothing to do, but here comes  
maybe the solution to your problem
<http://wp21.stachanow.net/ec3_get_past_events/>

enjoy

/ pt

On 24-sep-2007, at 18:25, Joe Subs wrote:

> Dr. PT,
>
> I think, for the moment at least, I will have to go with just  
> having a link to a page of "past events" as suggested.
>
> thanks for you help,
>
> cheers,
>
> JK
>
> BTW; trawling through google looking for answers can be daunting. I  
> wish we have a database of EventCalendar's "troubleshooting",   
> "solved problems", and "tips & tricks" to guide many of us who have  
> little knowledge of PHP.
>
> I hope to start one such blog when I'm freer by collecting all the  
> pointers, suggestions etc. from this mailing list.
>
>
> On Sep 25, 2007, at 12:07 AM, Dr. Peter Troxler wrote:
>
>>
>> On 24-sep-2007, at 17:47, Joe Subs wrote:
>>
>>> 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?
>>
>> as per the manual, yes.
>>>
>>> ========================
>>>
>>> 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?
>>
>> that would need some re-programming of the ec3_get_events  
>> function ... if you're handy with php this is straight forward, if  
>> not you'd need to find somebody to code something like a  
>> ec3_get_past_events() function for you.
>>
>>>
>>> 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
>>>
>>> _______________________________________________
>>> 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/dfc17239/attachment-0001.htm


More information about the EventCalendar mailing list