Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Twitter Feed – How to get rid of created_at time

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27775
    afulton
    Participant

    I would like to add a twitter feed on my website, but I need to get rid of the text at the end of each tweet that says when it was posted (ex "about an hour ago"). How can I do this?

    My code looks like this:

    Code:


    Thanks!

    #70294
    Chris Coyier
    Keymaster

    I’m not sure how to do it with the official Javascript, but I use twitter.js (http://code.google.com/p/twitterjs/). It lets you set the parameters for the feed. To update the feed you call the function getTwitters(); and with that function you can specify how the feed is display. Here’s the function from my old site:

    Code:
    getTwitters(‘twitterFeed’, {
    id: ‘pathartl’,
    count: 3,
    enableLinks: false,
    ignoreReplies: true,
    clearContents: true,
    template: ‘

    %text%
    %time%


    });

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.