On This Day Plugin v3.0.1 is released. This is a bug fix update. If you were using the conditional, it wasn’t displaying anything if there were no results. Fixed!
You can download the bug fix from the Downloads page.
On This Day Plugin v3.0.1 is released. This is a bug fix update. If you were using the conditional, it wasn’t displaying anything if there were no results. Fixed!
You can download the bug fix from the Downloads page.
Unfortunately for me, it doesn’t work exactly as I imagine it should. On some entries it points to entries written the day before or after the current date. For instance:
http://www.thatlittlebastad.com/ecc/when/more-test/buttered_up/
This entry is for May 28. The 2004 and 1998 links work fine (in the sidebar under the “ON THIS DATE IN” heading). But the 2003 and 2002 links go to entries on May 27.
Is this an error in the plugin or a database thing? In either case, does anyone have any idea how to fix it?
This is a problem in the database. As far as I can tell. It has to do with the way entries are imported into the database as far as I can tell. Because they are put in via GMT time, for some reason, the original post might have been posted on 5/27, however, when calculating the day/month/year of the post, it shows up as 5/28. It all depends on what time zone you’re in, i think.
This probably doesn’t happen for any posts that you actually made in EE. I’d bet that this happens mainly on posts that were imported. I mean the query for this is rather simple, check the same day and month for any year. :)
Actually it’s not really a matter of an error or problem in the database, now that I think of it. It’s mainly to do with the GMT time, essentially. I’ll continue to think of a more “accurate” way to resolving this. Because the entries are showing up “localized” for the member browsing them, the dates could potentially be off by a bit! Regardless, I understand that for at least the author the dates should show up for that day.
Yoshi I was using an older version of onthisday and it worked fine. I just installed 3.0 and then this one and it shows nothing. I went back to check my entries and I DO have entries on that day a year ago…any ideas?
The only thing I can think of for that one jenny is the date issue. Especially if they were imported entries. Because it checks the Year/Month/Day fields on the welob entries, it’s not exactly the same as the “entry_date” field. I think I’m just going to have to make it so it checks both the Y/M/D fields AND the entry_date field to be a bit more accurate.
This looks ace
What happened to the “no entries” tag from v2.0? That is much needed.
I also noticed that an entry I created today does not show up. If I change the date to any previous year, it shows up.
the no entries parameter is now replaced with the {if no_results}…{/if} statement within the onthisday tag itself. I’ve really got to update the documentation about that.
typically, the onthisday plugin displays only entries that are not within the year it is searching. so if it’s looking at the current day, it won’t show this years entries. I guess if you wanted that functionality, then i could put that in. the plugin was designed to display those entries that were posted like “on this day in another year…”