OK guys, got a weird one for you. I’m working on an event calendar for a magazine and I have Repeet working more or less except for one major issue. When you go to look at the calendar from a month or year view, it displays everything properly:
http://nevadamagazine.com/index.php/calendar/events/2009/02/
The “Carnival Cabaret”, for example, is displaying correctly with a date range selected in the date tab (the 11th through the 28th) and the repeat interval set to “days of the week: 0, 1, 3, 4, 5, 6”. This effectively skips every Tuesday, which you can see at the 17th of February gets skipped. Now, when you go into an individual day (the 15th for example):
http://nevadamagazine.com/index.php/calendar/events/2009/02/15/
You get nothing. However, it works if the event is a one-day only affair, with no repeat interval set:
http://nevadamagazine.com/index.php/calendar/events/2009/02/13/
In that example the cabaret show should be listed as well but its not. My template for the /events/ area looks like this:
{exp:repeet:parse date_header_interval="day"}
{repeet:date_header}<h2>%M %d, %Y</h2>{/repeet:date_header}
{repeet:no_results}Oops, looks like there aren't any events in the time range you specified.{/repeet:date_header}
{exp:repeet:get_ids weblog="calendar" parse="inward"}
{exp:weblog:entries weblog="calendar" entry_id="{repeet:entry_ids}" dynamic="off" show_expired="yes" show_future_entries="yes"}
{repeet:item}
{repeet:entry_date}{entry_date format="%Y-%m-%d %H:%i"}{/repeet:entry_date}
{repeet:expiration_date}{expiration_date format="%Y-%m-%d %H:%i"}{/repeet:expiration_date}
{repeet:interval}{repeat_interval}{/repeet:interval}
{repeet:include_dates}{include_dates}{/repeet:include_dates}
{repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
{repeet:display}
<div class="cal_listingFront">
{if event_thumb}<a href="http://{title_permalink=calendar/details}">{event_thumb}</a>{/if}
<h4><a href="http://{title_permalink=calendar/details}">{title}</a></h4>
{if event_city}{event_venue}{/if}
{event_summary}
<a href="http://">More »</a>
</div>
{/repeet:display}
{/repeet:item}
{/exp:weblog:entries}
{/exp:repeet:get_ids}
{/exp:repeet:parse}
Any idea what’s going on?
I’m having weird issues with daily listings also. Seems to not work unless the event’s start date is within the current month. I’d gladly chip in to have repeet’s issues fixed to work with the current EE version. Mr. Wilson, what are your terms? 😊 Howzabout a “Repeet Pro” version (or was that meant to be “Caloree”)?”
I’m using a simplified repeet setup on a site and ran into the same issue. In my case I am only using the “daily” option as all I needed was a way for an event to span multiple days. My site does not have an option for the exclude or include dates as it wasn’t needed.
I poked around in repeet for a bit and was able to solve the “daily” issue for my particular needs. I’m in no way claiming this to be the correct solution but am putting it our here in case it helps you.
In pi.repeet.php I changed line 253 from
$stop = mktime(date("H", $item_expiration_date), date("i", $item_expiration_date), 0, date("m", $end), date("d", $end), date("Y", $end));
to
$stop = mktime(23, 59, 0, date("m", $end), date("d", $end), date("Y", $end));
-Shawn
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.