Hey all,
I’m building a calendar / timetable using the calendar function with the Repeet plugin. Rather than just having a title and link of the post in the calaendar, I’m putting the data from the post there, using
this:
{exp:weblog:entries weblog="schedule" year="{segment_2}" month="{segment_3}" day="{day_number}" limit="5" orderby="classtime"}
However, the day=”{day_number}” is causing this error message.
Warning: mktime() expects parameter 5 to be long, string given in D:\Domains\happobiken.com\wwwroot\ninja\modules\weblog\mod.weblog.php on line 1833
Warning: mktime() expects parameter 5 to be long, string given in D:\Domains\happobiken.com\wwwroot\ninja\modules\weblog\mod.weblog.php on line 1834
Anyone got any ideas? Here’s the entire code…
Any help would be appreciated.
{exp:repeet:get_ids weblog="schedule" parse="inward" calendar="yes"}
{exp:repeet:calendar weblog="schedule" interval_field="event_repeat" include_field="event_dates" exclude_field="exclude_dates" switch="calendarToday|calendarCell" entry_id="{repeet:entry_ids}" show_future_entries="yes" show_expired="yes"}
<table class="calendarBG" border="0" cellpadding: "6" cellspacing="1" summary="Monthly Schedule">
<tr class="calendarHeader">
<th colspan="7"><a href="http://www.happobiken.com/index.php?/schedule/{date format=" title="View all events in {date format=">{date format="%F %Y"}</a></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr class="calendarRow">{/row_start}
{if entries}
<td class='{switch}' >{day_number}
{exp:weblog:entries weblog="schedule" year="{segment_2}" month="{segment_3}" day="{day_number}" limit="5" orderby="classtime"}
<div class="calendarEvent">{title}<br />with {teacher}<br />
{segment_2}
{if classtime !=""}
{classtime}
{/if}
</div>
{/exp:weblog:entries}
</td>
{/if}
{if not_entries}
<td class='{switch}' >{day_number}</td>
{/if}
{if blank}
<td class='calendarBlank'> </td>
{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
<tr class="calendarMonthLinks">
<td colspan="3">
<div class="calendarPrevMonth"><a href="http://www.happobiken.com/index.php?/schedule/{previous_date format="><< {previous_date format="%M %Y"}</a></div>
</td>
<td></td>
<td colspan="3">
<div class="calendarNextMonth"><a href="http://www.happobiken.com/index.php?/schedule/{next_date format=">{next_date format="%M %Y"} >></a></div>
</td>
</tr>
</table>
{/exp:repeet:calendar}
{/exp:repeet:get_ids}
