Thread

This is an archived forum and the content is probably no longer be relevant, but is provided here for posterity.

The active forums are here.

Two plugins: Time Ago, Youku EE

September 07, 2010 8:37am

Subscribe [9]
  • #1 / Sep 07, 2010 8:37am

    Milan Topalov's avatar

    Milan Topalov

    128 posts

    Time Ago - Download

    Converts past date to “1 minute ago”, “5 days ago” etc.

    Usage:

    {exp:channel:entries channel="news"}
    {exp:time_ago}{entry_date}{/exp:time_ago}
    {/exp:channel:entries}

    Youku EE - Download

    Fetches Youku (Chinese Youtube clone) video clip information.

    Usage:

    {exp:youku_ee:video_info video_id="{video_id}" partner_id="{partner_id}" refresh="60"}
    {swf} /* swf file URL */
    {image} /* thumbnail */
    {title}
    {description}
    {duration}
    {date format="%D, %F %d, %Y - %g:%i:%s"}
    {/exp:youku_ee:video_info}

    Video ID - e.g. XMjA0NDQ3MTQ4

    Partner ID - e.g. XMzA0 (you need to register with Youku to get your own)

    Updates:

    v0.2
    - Added caching: refresh=“60” will cache data for 60 minutes
    - Added description: {description}

  • #2 / Sep 07, 2010 4:38pm

    Lisa Wess's avatar

    Lisa Wess

    20446 posts

    Hi, Milan - I have moved this up to Community News and removed the files.  You’ll need to host these yourselves - please see our guidelines.

    Thanks!

  • #3 / Sep 08, 2010 6:32am

    Milan Topalov's avatar

    Milan Topalov

    128 posts

    Sorry about that! I wasn’t aware that you changed the policy.

    Files are now sitting in my Dropbox smile

  • #4 / Sep 13, 2010 6:28pm

    leeaston's avatar

    leeaston

    634 posts

    Thanks for Time Ago, very useful.

  • #5 / Sep 19, 2010 11:17am

    adamprocter's avatar

    adamprocter

    228 posts

    can you advise the format date should be in to be converted ? I wish to use this in conjunction with Twitter timeline - thanks

  • #6 / Sep 26, 2010 1:10am

    Lee Reamsnyder

    1 posts

    @adamprocter:

    If you want to use it with Twitter Timeline, you need to do two things:

    1) Use the created_at variable like this: {created_at format="%U"}  The %U timestamp format there matches the default output of the {entry_date} variable in the {exp:channel:entries} tag

    2) add parse=“inward” to your Twitter Timeline tag:
    {exp:twitter_timeline limit="10" screen_name="yours" twitter_refresh="30" parse="inward"}

    parse=“inward” will make sure the timestamp is output before {exp:time_ago} is parsed.

  • #7 / Sep 26, 2010 11:20am

    adamprocter's avatar

    adamprocter

    228 posts

    thank you that’s great :D Was using the parse inward anyway for fixing entities too

  • #8 / Oct 18, 2010 6:17pm

    Milan Topalov's avatar

    Milan Topalov

    128 posts

    Great news for all (both?) of Youku loving developers - I’ve updated Youku EE plugin!

    I’ve added caching - it’s much quicker now!

  • #9 / Dec 21, 2010 5:51am

    listen1999

    5 posts

    hey, just can’t download the file, please help

  • #10 / Nov 26, 2011 7:54pm

    EnergyFreak's avatar

    EnergyFreak

    102 posts

    Is this compatible with comment entries?

    {exp:time_ago revert_to_date_format="%d %F %Y"}{comment_date}{/exp:time_ago}

    It gives me a syntax error:

    Error

    The following tag has a syntax error:

    {exp:time_ago}

    Please correct the syntax in your template.

  • #11 / Dec 12, 2011 11:38am

    unolee

    3 posts

    I wish this addon support {edit_date} of entry.

  • #12 / Feb 18, 2012 11:15am

    shorn

    79 posts

    I think this is asked above, but does anyone know whether or not you can make this work with the date a comment was posted? Thanks!

  • #13 / Feb 19, 2012 6:50am

    shorn

    79 posts

    Well answered my own question by simply trying it and Yes! it does work!

  • #14 / Feb 27, 2012 12:53pm

    shorn

    79 posts

    All,

    Note sure if anyone else is experiencing this, but when testing comments on my site with Time ago installed I keep getting the following error”

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined offset: 7
    Filename: time_ago/pi.time_ago.php
    Line Number: 68

    each time that I submit the comment. If I refresh the comment is there, and its registered ok, just not sure why its throwing this error up?

  • #15 / Mar 20, 2012 3:34pm

    adamprocter's avatar

    adamprocter

    228 posts

    Updated to latest version of this and latest twitter timeline but parse inwards

    {exp:twitter_timeline screen_name="adamprocter" create_links="user_mentions|hashtags|urls" parse="inward"}

    means that even with create_links=“user_mentions|hashtags|urls”

    Only user_mentions are turned into links ?

    Removing create_links=“user_mentions|hashtags|urls”

    and user_mentions are still links

    any fixes ? please

ExpressionEngine News

#eecms, #events, #releases