Problems with using Repeet with the calendar
Posted: 20 November 2008 04:47 AM   [ Ignore ]  
Summer Student
Total Posts:  10
Joined  11-30-2007

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}

Profile
 
 
Posted: 24 November 2008 04:39 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  10
Joined  11-30-2007

Anyone? Bueller? Bueller?

Profile
 
 
Posted: 24 November 2008 10:33 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  752
Joined  08-16-2003

That doesn’t look like a Repeet problem, per se. Note that the error messages are coming from the Weblog module. I suspect you are running into a parse order problem. If that is, indeed, what is happening, you might try something like:

<td class='{switch}' >{day_number}
{embed
="calendar/.day_inner" day_number="{day_number}"}
</td>

And then in the calendar/.day_inner template:

{exp:weblog:entries weblog="schedule" year="{segment_2}" month="{segment_3}"  day="{embed:day_number}" limit="5" orderby="classtime"}
<div class="calendarEvent">{title}<br />with {teacher}<br />
{segment_2}
{if classtime
!=""}
{classtime}
{
/if}
</div>
{/exp:weblog:entries}

Untested, off-the-top-of-my-head.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66391 Total Logged-in Users: 43
Total Topics: 84715 Total Anonymous Users: 14
Total Replies: 454694 Total Guests: 194
Total Posts: 539409    
Members ( View Memberlist )