We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Repeet not working on daily listings

Development and Programming

Brandon C.'s avatar
Brandon C.
43 posts
16 years ago
Brandon C.'s avatar Brandon C.

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?

       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill

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”)?”

       
wondermade's avatar
wondermade
53 posts
16 years ago
wondermade's avatar wondermade

Thirds on this problem. I can’t get anything to return except the first event in the system.

       
mmcclung's avatar
mmcclung
172 posts
16 years ago
mmcclung's avatar mmcclung

Fourth. Ditto. Ibid. Loc cit.

       
Brandon C.'s avatar
Brandon C.
43 posts
16 years ago
Brandon C.'s avatar Brandon C.

I think its safe to say that this module is dead in the water. Anybody up to the task of making something similar? The client I was working on this for would pay a decent amount to have something that actually works…

       
mmcclung's avatar
mmcclung
172 posts
16 years ago
mmcclung's avatar mmcclung

I am in the same boat and could fund some development.

       
fostermade's avatar
fostermade
97 posts
about 16 years ago
fostermade's avatar fostermade

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.