I have read all of the documentation and threads, and I am at a loss to make this work.
First this the latest version of Repeet (1.0.5) is running on EE 1.5.2. I have given all entries in the weblog of ‘roadtrip’ expiration dates.
As I understand it, by default, Repeet will set the interval to be daily and the start date is the entry date, and the end date is the expiration date. Meaning the code as I have it below should show events spanning more than one day, but it only shows it for the date entry and does not span further.
Here is my code. What am I doing wrong?
http://fungoman.com/roadtrip/test
{exp:repeet:get_ids weblog="roadtrip" parse="inward" calendar="yes"}
{exp:repeet:calendar switch="calendarToday|calendarCell" weblog="roadtrip" entry_id="{repeet:entry_ids}" show_future_entries="yes" show_expired="yes" }
<table class="calendarBG" cellpadding="6" border="0" cellspacing="1" summary="Calendar" width="90%">
<tr class="calendarHeader">
<th><div class="calendarMonthLinks"><a href="http://{previous_path=roadtrip/test}"><<</a></div></th>
<th colspan="5">{date format="%F %Y"}</th>
<th><div class="calendarMonthLinks"><a href="http://{next_path=roadtrip/test}class=calendarMonthLinks">>></a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}
<td width='15%' class='{switch}' align='center'>
<a href="http://{day_path=roadtrip/index}">{day_number}</a>
{entries}
<div><a href="http://{title_permalink=roadtrip/details}">{title}</a></div>
{/entries}
</td>
{/if}
{if not_entries}
<td width='15%'class='{switch}' align='center'>{day_number}</td>
{/if}
{if blank}
<td class='calendarBlank'> </td>
{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:repeet:calendar}
{/exp:repeet:get_ids}
Hi David, I have been asking Mr. Wilson for the past 2 weeks the same question, but the man is tight up with other matters, unfortunately. I am sure he will surface soon. Meanwhile, I tested a previous version 1.03 which left me with similar results.
Have you tried setting a repeat interval?
We might be able to work this out comparing notes…..
Think I have worked it out, David. Set interval to “daily”. In hindsight this computes, non?
Let me know if this solves it for you too. 😉
Addendum: I noticed that once the expiration date’s time is set even 1 minute earlier than the entry date, the event won’t show on the expiration date. I added a new interval “1 hour” to my list and this seems to do the trick.
I do feel that there are different ways to accomplish this and my guess would be the “BEGIN” & “END” parameters.
I had set the custom interval field to what it was supposed to be in the tag, and gave every entry a value of daily, but it didn’t work for me.
From reading the documentation, if you don’t supply it an interval, it will default to ‘daily.’ That’s why I am confused because the code I have posted should work.
Wilmy,
I don’t know what I did, but it seems that dates are “repeeting” now: http://www.fungoman.com/roadtrip/test/2007/07/
However I have a ton of notice errors. Do you have any insight into what is causing that?
EDIT: it is probably the begin and end parameters but I have no idea how to use those.
http://www.fungoman.com/roadtrip/test/2007/07/
{exp:repeet:get_ids weblog="roadtrip" parse="inward" calendar="yes"}
{exp:repeet:calendar switch="calendarToday|calendarCell" weblog="roadtrip" entry_id="{repeet:entry_ids}" interval_field="repeat_interval" show_future_entries="yes" show_expired="yes" }
repeat_interval is a custom weblog field that includes the value of ‘daily’
The errors being produced:
Notice: A non well formed numeric value encountered in ~/pi.repeet.php on line 1914
Notice: A non well formed numeric value encountered in ~/pi.repeet.php on line 1914
Notice: A non well formed numeric value encountered in ~/pi.repeet.php on line 1915
All seems to work fine on this end…Titles are showing and links are working to the entries. Send some (screenshot) examples if it persists after you have logged in and out and you might as well clear your cache out while you are at it. (Admin/Utilities/Clear Cached Data) Same for your browser (restarting will do) if the first two actions didn’t work…
Can you check your repeat_intervals in the Custom Fields settings in your events Field group and make sure they are conform the author’s guidelines? (daily, weekly, etc..)
Also, have you added any Custom dates and times in some of your entries and if so, check the format of the times/dates and compare with the author’s guidelines.
I’ll be out for a few hours, let me know the results.
Cheers:-)
A non well formed numeric value encountered in
It may have to do with the version of PHP being used. I get the same thing.
About the only thing I found when googling was:
It’s just discussing the error message in one person’s code.
I thought that might be a culprit as well.
I also see that errors are displayed to super admins, which explains why I was only seeing the errors when logged in. I went into system preferences and turned debugging errors off for now until I have to do other work on the site.
Thank you very much everyone for the help.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.