-
- 46 Posts
I’m using the PHX:ago modifier in a Revolution snippet (getFeed) to embed a Twitter feed in a site. The :ago modifier is returning 41 years 1 month ago for a tweet posted yesterday! Can anyone point me in the right direction? My call and template chunk are as follows:
[[!getFeed?
&url=`http://twitter.com/statuses/user_timeline/46646566.rss`
&tpl=`twitterFeedTpl`
&limit=`1`
]]
And the Template is:
<div class="tweet">
<p>[[+description]] <br />
<a class="timestamp" href="[[+link]]">[[+date_timestamp:ago]]</a></p>
</div>
Thanks in advance.
Learning a little more each day.
-
- 2,877 Posts
-
- 46 Posts
I’m using Revolution, so it won’t accept a new snippet called phx:anything. It returns invalid snippet name. Besides, I simply followed the instructions
http://rtfm.modx.com/display/ADDON/getFeed.Adding+a+Twitter+Feed which seem to suggest that the :ago modifier is built into the core of Revo??
Learning a little more each day.
All of the phx functions are built in to Revo.
-
- 46 Posts
Thanks for the note and I had gathered that all PHX functions are inbuilt. However I still have the problem that the :ago function is incorrectly interpreting the Twitter time stamp and inserting 41 years ago! I’m slightly stuck as the client wants to display this info, I can’t add a custom PHX modifier in the way that I used to , i.e. via a new snippet called PHX:xxxx, so I’m hunting for suggestions!
Anyone care to comment or point me in the right direction?
Learning a little more each day.
-
- 46 Posts
Thanks everyone. It was that
needs to be changed to
@splittingred - if you read this... Could you please amend your instructions?
Learning a little more each day.
-
- 2,877 Posts
Quote from: aksteven at Mar 14, 2011, 02:18 PM
Thanks everyone. It was that
needs to be changed to
@splittingred - if you read this... Could you please amend your instructions?
You can use createdon or your own custom TV as timestamp as well.