davidgagne.net

  • About
  • Archives
  • Twitter
  • Facebook
  • bartender.live
  • GitHub
  • LinkedIn

Timeline WordPress Plugin

October 9th, 2006 @ 4:37 pm PDT

In which I attempt to write a plugin

Timeline WordPress Plugin

This domain of mine has had stuff on it for a long, long time — before WordPress or MovableType or even Blogger. The original davidgagne.net is, sadly, lost forever. Some pieces of it have been kicking around on my various hard drives and FTP locations for a decade now.

One file that I could never seem to bring myself to delete was an ancient hand-coded HTML <TABLE> listing of a bunch of important events in my life. A few friends of mine actually built a company based on the idea. It was called “ShareTimelines.com”, had a magnificent interface, was all webbed up, and the site — last I checked — is completely dead. I wanted to have that timeline on this site again. I hadn’t updated it in years and years, and I would rather poke hot needles in my eyes than sit and hand-code a bunch of <td>s all day. “It should all be in a database, of course,” I said to myself. “And I should be able to edit it right in the WordPress Administrator, too. And seriously it should be written so that I can just give other people the ability to add timelines like that to their own sites.” ( I should stop talking to myself.)


There was really only one thing I could do. I wrote a plugin. You can see the results in the sidebar on the main page of this site. I am also using a timeline in this post (below) to track the updates I make to the plugin.

Make sure to view the README: Download v 1.332 (10/16/2006)

Timeline Plugin Updates

To Do:

  • handle bug that happens when user is using rich text editor
  • add rss feed for timeline events — requested by jcwinnie
  • create import script — requested by Lorelle
  • let timeline tag accept an optional “title” parameter

Feel free to digg this. :0)

More posts tagged:
code / hacks / plugins / time / wordpress

More posts categorized:
blogtech Programming

More posts from:
October 2006 / 2006

Post navigation

Previous Post
Previous Post BlogRolling Ping
Next Post
Next Post Aloysius Snuffleupagus

Responses to “Timeline WordPress Plugin”

  1. October 10th, 2006 @ 10:30 pm
    Abhilash

    I don’t see the timeline. Am I missing something??

  2. October 11th, 2006 @ 6:47 pm
    April

    What a cool plugin!

  3. October 12th, 2006 @ 6:45 am
    jared l.

    woah! not bad, might be some use for personal recordings… keep up!

  4. October 12th, 2006 @ 7:24 am
    NoHandleBars

    I always first install on a local copy before uploading changes to my live site. It allowed me to edit the first entry, but every time I go to add a new entry I get the following error messages in lieu of the 2nd drop-down date menu:

    Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in G:\www\wordpress\wp-content\plugins\dgEvents\options-timeline.php on line 183

    Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in G:\www\wordpress\wp-content\plugins\dgEvents\options-timeline.php on line 183

    Line 183 contains the following:

    “ (without the backticks, of course)

    Any assistance would be much appreciated.

  5. October 12th, 2006 @ 8:10 am
    Aaron B. Hockley

    Very cool, although I won’t give up the rich text editor for it. Hopefully you can resolve that bug soon.

  6. October 12th, 2006 @ 8:19 am
    Chris

    I’ve uploaded, activated and created a new page for my timeline but when I insert the timeline code all I get is a blank page.

    I’m no noob when it comes to plugins but am I missing something?

  7. October 12th, 2006 @ 10:33 am
    jcwinnie

    It’s okay to talk oneself. The question, obviously, who is it that listens.

    By the bye: Is the plugin XML-ish?

  8. October 12th, 2006 @ 1:36 pm
    GreyDuck

    Nothing. If I use the code marker from the readme, I get blank. If I use the code marker shown in the Options page (hint: It lacks the ! mark), I get… that code marker. I’m not seeing any errors. I’m not seeing anything.

    I’d really, really like to use this plugin… and I don’t use the rich text editor.

  9. October 12th, 2006 @ 2:05 pm
    Lorelle

    I’m very interested in adding this to my family history blog. I’d like to import the data from a gedcom or text file into the database so I don’t have to manually enter in hundreds of dates and bits of genealogy info. I know how to handle the import, but I’d like to work with you on developing the process so others could benefit from this. This could make the Plugin even more valuable. Thanks.

  10. October 12th, 2006 @ 4:42 pm
    dvg

    GreyDuck: Thanks for the tip about the missing exclamation point in the Options page. I fixed that.

  11. October 12th, 2006 @ 5:19 pm
    alon

    can you alter this script to keep timelines of posts and no globaly? i mean everytime someone comment or the post being edited it makes a timeline entery?

  12. October 13th, 2006 @ 1:22 am
    Boris

    I am also trying this, but I see no timeline and can’t add any entries…

    http://www.dreisechzig.net/wp/672/

  13. October 15th, 2006 @ 6:49 am
    NoHandleBars

    Thanks for correcting the issue I posted above. (He’s already included it in the latest download.) How about a delete button to easily remove an event? Keep up the great work!

  14. October 15th, 2006 @ 4:02 pm
    NoHandleBars

    …and…could a future version allow more than one post to be assigned to an event? This would be useful when an event covers a date range and there are more than 1 posts relating to it. For instance, I’m actually posting a weekly reading plan as a timeline and then I could assign all the posts to that week/portion of the reading plan. Or a date range might pertain to a confernce, vacation, etc. Not a “deal breaker” but would be a nice enhancement. Thanks again!

  15. October 15th, 2006 @ 4:39 pm
    Jason

    What is the trick to get this bad boy working???
    The code marker does nothing.

    Thanks

  16. October 16th, 2006 @ 4:12 am
    klaus

    could this have something to do with the date format..? the plugin is not working on my danish-language (and date format) blog, but ok on a test blog straight out of the box…

  17. October 16th, 2006 @ 4:32 pm
    Gary

    I’m gratified to read that I’m not alone in this. I’ve got my site using WP 2.0.4, and I installed this plugin and read the README several times. I create a new page containing the tag as shown in the readme; it’s a blank page when I open it.

    No matter what combination of text I add to the page, or leave it completely blank, using NO rich text editor, and it remains stubbornly blank.

    If I look at the HTML source for the page, the tag is visible in the code, with no replaced text at all. There is a new table in my SQL database, wp_dg_tblEvent, that has six fields and no records at all.

    So, what magic extra step do I need to do that I’m not understanding?

  18. October 16th, 2006 @ 5:00 pm
    dvg

    I think I may have stumbled upon a possible solution to the mysterious “missing timeline” problem.

    The timeline plugin looks for a page_id querystring variable to determine with which Page the timeline is associated.

    If your timeline doesn’t exist on a URL that has a page_id querystring parameter, it won’t display.

    My timeline here, for example, exists at index.php?page_id=6187 and the 6187 is the timeline plugin’s “key” to know which timeline to display.

    I will do my best to update the timeline to work with people who are using different URL structures!

  19. October 16th, 2006 @ 5:45 pm
    dvg

    New version (1.331) released which should (hopefully!) fix the mysterious missing timeline bug.

  20. October 16th, 2006 @ 6:06 pm
    dvg

    Note: Now that I have (hopefully) fixed the problem caused by my (stupid) use of the querystring page_id parameter instead of the (intelligent) $post class, I’m wondering if that will also solve the problem that I *thought* was caused by the rich text editor.
    Is anyone successfully using the plugin with the rich text editor?

  21. October 16th, 2006 @ 6:25 pm
    Gary

    That is fantastic. The fix took care of the “no timeline” issue. New toys!

  22. October 16th, 2006 @ 6:55 pm
    Jason

    Yes!! Problem solved. New version now works.

    Thanks!

  23. October 16th, 2006 @ 7:36 pm
    Jason

    A few questions (and maybe a new bug) now that this cool plugin works…
    Creating the first entry what should one enter for postID?
    If left blank what should happen?
    If you enter a number where your blog already has a post with same ID then the Timeline “read-more” links to that story. Hmm, that by design?

    Should you always leave the postID blank? Unless perhaps you want to link it to a post/article.?

    After creating entry, all the text displayed on the Timeline page but also the “read-more” link was present. There is nothing more to read.

    Also the read-more link for me appends an extra /
    http://www.mydomain.com/blog/2006/10/16//

    which leads to a 404 error.

  24. October 16th, 2006 @ 11:23 pm
    dvg

    Jason,
    Yes, you only enter a PostID on the timeline edit / add screen if you want to link a particular event to a blog post.

    I will look into the extra slash issue as soon as I can.

  25. October 16th, 2006 @ 11:57 pm
    m-alo

    I get an error:
    [You have an error in your SQL syntax near '' at line 8]
    insert into wp_dg_tblEvent(PostID, StartDate, EndDate, Event, TimeLineID) select 0, '2006-10-17', '', 'Timeline Created', 430

    But now, at least I see something on the page!

  26. October 17th, 2006 @ 12:00 am
    m-alo

    I get an error:
    [You have an error in your SQL syntax near ” at line 8]
    insert into wp_dg_tblEvent(PostID, StartDate, EndDate, Event, TimeLineID) select 0, ‘2006-10-17’, ”, ‘Timeline Created’, 430
    But at least now something’s happening 🙂

  27. October 17th, 2006 @ 1:01 am
    klaus

    bingo..! it’s working – but some of my fellow dk-bloggers still seem to have various problems…

  28. October 17th, 2006 @ 6:15 pm
    butuki

    I just installed the timeline plugin and all is working fine, except when I try to set the date for an entry I can’t get it to display anything before December 31, 1969. Since I’m a living fossil from before that fateful year, and would like to display events that occurred in my life before then, what can I do to get the timeline to display these prehistoric dates? Hope it’s not too difficult a problem. Thanks!

  29. October 23rd, 2006 @ 12:17 am
    Philip

    For a nice example of timelines, take a look at: http://www.dandelife.com

  30. November 2nd, 2006 @ 6:09 pm
    JC

    I installed the timeline plugin and I am also getting the error: WordPress database error: [You have an error in your SQL syntax near ” at line 8]

  31. November 11th, 2006 @ 3:43 pm
    ^^DVDA~~bLoG » Blog Archive » Links

    […] Timeline […]

  32. November 30th, 2006 @ 4:00 am
    WordPress Plugin: SIMILE Timeline at freshlabs journal

    […] Timeline WordPress Plugin […]

  33. December 5th, 2006 @ 7:39 pm
    Gary O

    Very useful plugin. I’m wondering if it is possible to create some additional code outside of the loop that creates the table to do some totaling of days, etc.

    I would like to use the Time Line as a log for my Travels. How many days we have been travelling. If its possible to add extra fields, then how many miles we have travelled. Average daily travels, etc, etc.

    Is this something that could be added in some future update?

  34. January 22nd, 2007 @ 4:36 pm
    AI3:::Adaptive Information » Blog Archive » Converting ‘Sweet Tools’ to an Exhibit

    […] Like David Gagne’s Timeline plug-in for WordPress, it probably makes sense for someone with PHP experience (not me!) to make an Exhibit plug-in as well. […]

  35. February 5th, 2007 @ 9:02 am
    amazing space! » these are a few of my favourite things…

    […] dagon design sitemap generator – [genererer et sÃ¥kaldt sitemap over bloggen – det er nemmest at forstÃ¥ ved at kigge pÃ¥ et eksempel, sÃ¥ her er mit: http://www.klaus-johansen.dk/sitemap/ ] http://www.dagondesign.com/ david’s event timeline – [denne lader sig ogsÃ¥ bedst forklare ved at se et eksempel: http://www.listemageren.dk/blog/tidstest/ m-alo har lavet en version som er en smule forbedret for danske brugere…] http://www.davidgagne.net/?p=6188 democracy – [en af mange muligheder for at oprette en afstemning enten i sidebar’en eller i indlæg…] http://blog.jalenack.com/ […]

  36. February 7th, 2007 @ 9:22 am
    WordPress plugins » M-ALO’s Monologer : Om alt og intet, og hvad derimellem hører!

    […] David’s Event TimeLine 1.332 […]

  37. February 12th, 2007 @ 9:26 am
    datter

    For the record, NOTHING is lost forever. 🙂

    http://web.archive.org/web/*/http://www.davidgagne.net

    An example;
    http://web.archive.org/web/20000816002939/http://www.davidgagne.net/

    Enjoy the memories.

    datter

  38. February 18th, 2007 @ 10:26 am
    m-alo

    After upgrading to WordPress 2.1, I get the following error when trying to edit an event:

    Fatal error: Call to undefined function: the_quicktags() in /[…edited out…]/wp-content/plugins/dgEvents/options-timeline.php on line 216

  39. February 18th, 2007 @ 10:29 am
    m-alo

    Same error appears when trying to add a new event, by the way…

  40. March 1st, 2007 @ 8:04 am
    Scott Jones

    Looks like the plugin might not be WP 2.1 compatible…I have the same error as you m-alo on a new WP site I just created, but have not problems on my main personal timeline.

    I’m itching to get the new timeline up and running, so whenever you get some time, David, to make it 2.1 compatible, please do.

    By the way, I absolutely adore the plugin, and it’s the one of the best plugins out there, IMO. Quick question, though: can you have multiple timelines on the same WP install? I’d love to either have a few different timelines (such as one charting outings/vacations and one charting major life events), or even just an ability to categorize events within a single timeline.

  41. August 11th, 2007 @ 6:32 pm
    The WordPress Podcast » Blog Archive » Episode 8: Dealing with splogs, posting by e-mail and more

    […] Timeline […]

  42. September 18th, 2007 @ 9:56 pm
    Delores

    Doesn’t work in WordPress 2.2 and when “Timeline” is selected in “Options” it slowly loads the blog index file instead.

  43. October 30th, 2007 @ 4:34 pm
    altoyes

    hi scott
    i have the same probemas the two mempbers above.
    the plugin looks grest… woul love to get it working
    thankyou for your time. my errois below
    alto

    Fatal error: Call to undefined function the_quicktags() in /home/worldpea/public_html/fab/wp-content/plugins/dgEvents/options-timeline.php on line 221

  44. March 17th, 2008 @ 3:25 am
    WordPress Plugins Database » Plugin Details » David's Event TimeLine

    […] Visit […]

  45. October 23rd, 2008 @ 11:50 am
    Dana Parkinson

    Hi there,
    I am unable to download the timeline plugin through the links provided. Can anyone please send me the file or tell me where I can download it to get started?

  46. October 23rd, 2008 @ 11:57 am
    dvg

    Hey, Dana,
    The plugin stopped working after WP2.1 and I haven’t had time to update it.

  47. February 22nd, 2010 @ 2:14 pm
    wordpress plugins

    You have some great plugins on your post. Your insight and expertise would be a welcome addition to our new community, i hope you will consider joining, and thanks for sharing!

  48. May 15th, 2012 @ 6:52 pm
    Arsie

    I don’t see the timeline, am I the only one not seeing it?

  49. May 15th, 2012 @ 9:51 pm
    dvg

    @Arsie: I’m no longer using the plugin on this site and haven’t even thought about it in years. If you’re seriously interested I can dig up the code for it and will be happy to send it to you.

Comments Closed

New comments are disabled on this post.

Search


Give Easily

Give Easily

Did you know that Amazon will donate to the charity of your choice when you use smile.amazon.com to do your online shopping? It doesn't cost you anything extra, and you can make a big difference just by using this link.

  • Support A Charity

© David Vincent Gagne. All rights reserved. Custom WordPress Theme by Jacket Industries.