This plugin was is the brainchild of Andy Marshall, @moogaloo, and was developed by me. It searches through the passed data for @ ("at mentions") and # ("hash tags"). When it finds them it automagically turns them into links to twitter user pages and hash tag searches. You can see it in action on the homepage of my website. I'm using it in conjunction with the Twitter Search plugin to show and add links to my latest tweet.
Features
- Works with both EE 1.6.x and EE 2.x
- Automagically turns @mentions and #tags into links to twitter
- Can be used on single words or full text (see docs for usage)
Example Usage
This is part of the code I’m using on my homepage to produce my latest tweet and link up any @mentions and #tags
{exp:twitter_search:find q="from:erikreagan" rpp="1" lang="en" convert_url="yes" cache="yes" refresh="5" parse="inward"}
<p><span class="tweetl">“</span>
{exp:er_tweet_me}{text}{/exp:er_tweet_me} <span class="tweetr">”</span></p>
<p class="right"><a href="http://twitter.com/{twitter_username}">Follow me on twitter</a></p>
{/exp:twitter_search:find}
Comments
Hey Chris. Any chance I can peek at a live version of your test? Ping me at erik(at)erikreagan{dot}com :)
Fantastic! Glad you like it. The parse parameter is for when you have a plugin within a plugin and the inner plugin should be parsed on the results of the outer plugin, if that makes sense.
Hey Erik - Should this work with twitter timeline as well? Twitter Search isn’t pulling all accounts I try it with.
Yes, it should (in theory) work as long as you remember the parse=“inward” piece that Chris and I discussed in the above comments. That said, I have not tested it with Twitter Timeline specifically.
Ah cool. I thought Twitter timeline make links live as well? Or was that an update I found in the forums somewhere…
If Twitter Timeline makes links live then you probably wouldn’t want to (or have a need to) double up and use both. Thinking about that scenario, it might actually cause a syntax error.
Sorry…two nights of short sleep here leaving me a bit muddled. What I’m looking for is @mentions, #hashtags, and links to all be clickable. With twitter timeline and this I get the first two but not the third. Do you get all 3 using twitter search?
Of note: ER Tweet Me 1.1.1 was just released adding in a feature that automatically adds in a link to URLs in the tweet. Thanks Mike :)
Hi Erik. Great add-on! Is there a way I can display the number of Twitter followers with this add-on? Thanks!
Thanks Adam. This add-on actually just makes links. It doesn’t even make any authenticated connection to twitter with your account. So it does not have the ability to display the number of followers.
Your Words of Wisdom
Hmmm, sounds like what I could really use, but even when I use your exact sample, I’m getting no conversion. :-/ Am I missing a setting? I’m even using twitter_search, just like you.
Chris Kennedy on Nov 16th at 4:56 pm