On This Day Plugin (2.0)

i’m now releasing the On This Day Plugin version 2.0. It’s been Totally rewritten/hacked/etc. This plugin is basically a stripped down version of the exp:weblog:entries tag, so it should be quite familiar. There are a couple of things that are a bit different. Sorry that I don’t have a changes file, I’ve lost most of my old documentation and was going on just what was in the plugin itself.

To install the plugin, simply put the plugin file into your /system/plugins directory, then load up your plugin manager to view the usage for this plugin. If you have any issues or bugs, please let me know!

You can download the plugin from the Downloads Page.

How does this post make you feel?
  • Excited
  • Fascinated
  • Amused
  • Bored
  • Sad
  • Angry
This entry was posted in Uncategorized by Yoshi. Bookmark the permalink.

3 thoughts on “On This Day Plugin (2.0)

  1. Are you going to beat me senseless if I tell you it doesn’t work?  Perhaps I’m doing something wrong?

    Does the {exp:onthisday} code get nested inside the {exp:weblog:entries} or outside?

    If I put it inside I get something like this where the only entry listed is the current entry, not entries from previous years.  This makes sense since it is within the tags, but I get weird funkiness if I put it outside.

    If I put the code outside of the {exp:weblogs} I get something like

    this where (freakishly enough?) January 1, 2003 (why 2003?) shows up for today’s “on this day” entry. I understand that “January 1st” is being pulled from the specification of day="01" month="01" but why 2003?  (2004 and 2002 both have entries on 01/01) Is day="01" month="01" not the correct usage for “today’s date”?

    Also, {date_format}seems to be either superfluous or else “not working” because regardless of when/where I put it, it prints out the text {date_format} as well as the actual date (the year, in my case.)

    Sorry.  I know… I’m a pain, but I just wanted to clarify and figure out if the plugin really is broken or if I’m just goofing something up.

  2. Hmm I’m not sure how it will work inside the exp:weblog:entries tag. it was never made to work within it. that could have some crazy results. if you’re trying to show the entries on the same day as one such entry, i’m not exactly sure if that will work well.

    if you do specify the day and month, then yes, it should show them for all years. i’m not exactly sure why it’s causing that problem. I’d like to see the actual template code to be able to give more advice on what’s going on there.

    Hmm there is no {date_format} tag. if you’re trying to display the date, then be sure to use {entry_date format="%m/%d/%y"}. Check out the plugin usage to determine the right usage for this plugin. The plugin has been totally changed on how it works.

  3. Sorry, I just cut and paste the code used in the example within the plugin manager page.  I should have realized that probably had “old” information from before the plugin was updated.

    This is the exact code (cut and paste from your “read me” file) that I used:

    {exp:onthisday weblog="weblog1" word_limit="10" limit="5" day="01" month="01" orderby="entry_date" sort="desc" status="open" dynamic="off" no_entries="No Entries"}

    <div>

    {date_format}

    {entry_date format="%Y"}

    {/date_format}

    {title}

    </div>

    {/exp:onthisday}