PEAK XOOPS - Coming Events Block Display problem in englishin japanese

Coming Events Block Display problem

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/2/5 18:00
madsen  °ìÅùʼ   Posts: 12
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

Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/2/9 18:13
GIJOE  ÀèǤ·³Áâ   Posts: 4110
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.

Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/2/10 8:10
madsen  °ìÅùʼ   Posts: 12
Hi GIJOE,

I upgraded my three sites with pre03 version but the "problem" with tomorrows event remains... see above.

I will try to investigate this furter.

//Madsen

Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/2/12 6:49
GIJOE  ÀèǤ·³Áâ   Posts: 4110
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}>
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!