[EventCalendar] ec3_get_events to show 2 or more date event

Martyn Driscoll martdris at gmail.com
Mon Mar 22 17:12:30 UTC 2010


I think you have misunderstood me, I am able to list the events, but when I
have an event over two or more days, it only displays in the ec3_get_events
as a 1 day event.
Right now is shows "1 May" but should actually be "1-2 May" or even the same
event listed repeatedly on individual lines, but with a different date
number.

Any idea how to make that happen?

Thanks

Martyn Driscoll


On 22 March 2010 16:57, Sam Drew <sam at trinitywebhosting.com> wrote:

>  It replaces a call like this
>
> ec3_get_events(
>    '7 days',                               // limit
>    '%DATE%: <a href="%LINK%">%TITLE%</a>', // template_event
>    '',                                      // template_day
>    'j',
>    '%MONTH%:'
> );
>
>
>  Sam Drew sam at trinitywebhosting.com
>
> Trinity Web Hosting <http://trinitywebhosting.com> -- Your Ministry
> Partner on the Internet
> http://trinitywebhosting.com 1-800-380-9506
>
>
> Martyn Driscoll wrote:
>
> Thanks for getting back to me, but which file and lines does this code go
> into?
>
> Thanks
>
> Martyn Driscoll
>
>
> On 22 March 2010 15:10, Sam Drew <sam at trinitywebhosting.com> wrote:
>
>> I could never get this to work, either, so I hard coded a solution.  You
>> can see it at mgachurch.com.  I've included the php code.  You will need
>> to put in the interval you would like.  There are no comments, but it is
>> pretty straightforward.
>>
>> Sam Drew sam at trinitywebhosting.com
>>
>> Trinity Web Hosting <http://trinitywebhosting.com> -- Your Ministry
>> Partner on the Internet
>> http://trinitywebhosting.com 1-800-380-9506
>>
>>
>> Martyn Driscoll wrote:
>>
>>  I have some events that take place over a series of days, but on calling
>> the ec3_get_events it only displays the first day of the event (see
>> http://www.southerners-bangkok.com), eg:
>>
>> 1 May:
>> Pattaya Rugby 10s 2010 (all day)<http://www.southerners-bangkok.com/pattaya-rugby-10s-2010>
>>
>> I would like it to actually be:
>>
>> 1 May to 2 May:
>> Pattaya Rugby 10s 2010 (all day)<http://www.southerners-bangkok.com/pattaya-rugby-10s-2010>
>>
>> What do I need to tweak to get this to work for me?
>>
>> Thanks
>>
>> Martyn
>>
>> ------------------------------
>>
>> _______________________________________________
>> Blog: http://wpcal.firetree.net/EventCalendar@firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>>
>> "; echo "
>> $thismonth\n
>>
>>    \n"; $permalink = get_permalink($thisevent['post_id']); $thistitle =
>>    $thisevent['title']; $current_date = substr($thisevent['start'],8,2); echo "
>>
>>    - $current_date:$thistitle <http://$permalink> \n"; while($thisevent =
>>    mysql_fetch_array($r)){ // Month changed? if(substr($thisevent['start'],5,2)
>>    != $current_month) { $current_month=substr($thisevent['start'],5,2); switch
>>    ($current_month) { case '01' : $thismonth = 'January'; break; case '02' :
>>    $thismonth = 'February'; break; case '03' : $thismonth = 'March'; break;
>>    case '04' : $thismonth = 'April'; break; case '05' : $thismonth = 'May';
>>    break; case '06' : $thismonth = 'June'; break; case '07' : $thismonth =
>>    'July'; break; case '08' : $thismonth = 'August'; break; case '09' :
>>    $thismonth = 'September'; break; case '10' : $thismonth = 'October'; break;
>>    case '11' : $thismonth = 'November'; break; case '12' : $thismonth =
>>    'December'; break; } echo "
>>
>>  \n"; echo "
>> $thismonth\n
>>
>>    \n"; } $permalink = get_permalink($thisevent['post_id']); $thistitle =
>>    $thisevent['title']; $current_date = substr($thisevent['start'],8,2); echo "
>>
>>    - $current_date:$thistitle <http://$permalink> \n"; } echo "
>>
>>  \n"; ?>
>> _______________________________________________
>> 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/20100322/f0230dac/attachment.htm


More information about the EventCalendar mailing list