My client is dismayed about their twitter feed on the front-end always being blank due to lack of tweeting and twitter's ever-shrinking tweet-archival time. I'm using the TweetLines snippet in evo to output the data. Is there any way i can easily pull in the client's tweets via an RSS archive of the twitter account, thus keeping the newest ones there indefinitely? Is there already an addon or snippet for this? Thanks in advance.
-
MODX Staff
- 2,502 Posts
Unfortunately Twitter has removed the RSS feed from their service recently. The only way to do this is to use the API. I don't know if it's been done yet or not.
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
☆ A M B ☆
- 3,112 Posts
You don't need special add-on for this:
on the template, just add this for the response's holder:
<ul id="twitter_update_list"></ul>
and add this JS:
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://api.twitter.com/1/statuses/user_timeline/[Change_This_With_Your_Username].json?callback=twitterCallback2&count=4"></script>
<iframe src="
http://pastebin.com/embed_iframe.php?i=dn0VvEm0" style="border:none;width:100%"></iframe>
PS:
this modx forum parses the links badly, so, please ignore the <a/> tags inside the src=""
Look at here instead
http://pastebin.com/dn0VvEm0
[ed. note: goldsky last edited this post 13 years, 11 months ago.]
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
wait is the js supposed to populate the <ul> on it's own? i'm not getting anything...
-
☆ A M B ☆
- 3,112 Posts
Quote from: pjldesign at Oct 17, 2012, 04:40 PMwait is the js supposed to populate the <ul> on it's own? i'm not getting anything...
yes
http://revo.virtudraft.com/spiefeed/twitter-feed.html
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.