Hi GIJOE!
On my three sites I have a Coming Event Block and I run piCal 0.60pre02.
I don't know if this is a problem just on my sites or if anyone else has the same "problem"...
The time and date are 5 Feb 09:00
- A event scheduled today 08:00 - 10:00 is displayed with a red icon and "(cont.) - 10:00". This is correct.
- A event scheduled today 12:00 - 16:00 is displayed with a yellow icon and "12:00 - 16:00". This is correct.
- A event scheduled tomorrow 6 Feb 08:00 - 10:00 is
also displayed with a yellow icon and "08:00 - 10:00." This is confusing... - A event scheduled for the day after tomorrow 7 Feb 08:00 - 10:00 is displayed with a blue icon and "7 Feb". This is correct.
Is there a way to make tomorrows events more clear? Another icon with a different color or maybe just showing tomorrows date?
//Madsen
hi madsen.
I've just released bug fixed version (pre 03).
I made many fixes related with *'s blocks.
I hope this version solves your trouble.
hi madsen.
I've just read your article with care, and correctly understood it.
Coming events block don't care today or tomorrow, only calculate inside 24 hour or not.
This is not a bug but a spec.
If you want to change dot-gif by today or not, you can implement with rewrite a template only.
This is sample code for pical_coming_schedule.html
If you don't have any timezone differences, this templates will work correctly.
<{if $block.num_rows == 0}>
<{$block.lang_PICAL_MB_NOEVENT}>
<{/if}>
<{foreach item=event from=$block.events}>
<dl>
<dt>
<{if $event.distance == 0}>
<font size='2'><img border='0' src='<{$block.images_url}>/dot_started.gif' /> <{$block.lang_PICAL_MB_CONTINUING}> - <{$event.end_desc}></font>
<{elseif $event.distance == 1 && date('j',$event.start) == date('j') }>
<font size='2'><img border='0' src='<{$block.images_url}>/dot_today.gif' /> <{$event.start_desc}> - <{$event.end_desc}></font>
<{elseif $event.distance == 2 && date('j',$event.start) == date('j') }>
<font size='2'><img border='0' src='<{$block.images_url}>/dot_today.gif' /> <{$event.start_desc}></font>
<{else}>
<font size='2'><img border='0' src='<{$block.images_url}>/dot_future.gif' /> <{$event.start_desc}></font>
<{/if}>
</dt>
<dd style='margin-left:20px;'>
<font size='2'><a href='<{$block.get_target}>?smode=Daily&action=View&event_id=<{$event.id}>&caldate=<{$block.caldate}>' class='calsummary'><{$event.summary}></a></font>
</dd>
</dl>
<{/foreach}>
<{if $block.num_rows_rest > 0}>
<table border='0' cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td align='right'><small><{$block.lang_PICAL_MB_RESTEVENT_PRE}> <{$block.num_rows_rest}> <{$block.lang_PICAL_MB_RESTEVENT_SUF}></small></td>
</tr>
</table>
<{/if}>
<{if $block.insertable <> false}>
<dl>
<dt>
<font size='2'><a href='<{$block.get_target}>?smode=Daily&action=Edit&caldate=<{$block.caldate}>'><img src='<{$block.images_url}>/addevent.gif' border='0' width='14' height='12' /><{$block.lang_PICAL_MB_ADDEVENT}></a></font>
</dt>
</dl>
<{/if}>