Michael Rog presents

RogEE: Add-ons for ExpressionEngine 2

Tweetify 3.3

Tweetify formats URLs, @shoutouts, and #hashtags as HTML links, a la Twitter. I originally built it to work with Twitter Timeline, but it also functions nicely if you need Twitter-esque formatting of channel data, or if you want a more liberal URL-matching rule than EE2 provides out of the box.

Examples: General Use

Simply wrap your Tweet text in the {exp:tweetify} and {/exp:tweetify} tags to convert @names, #tags, and URLs into links.

{exp:tweetify}
My text here.
{/exp:tweetify}

You can use the parameters to add CSS class names to the formatted links (see below).

Examples: with Twitter Timeline

Ideally, you should wrap your Twitter Timeline inside Tweetify tags.

{exp:tweetify cache="no"}
{exp:twitter_timeline type="user" user="michaelrog" password="****" limit="3"}
<li>{text}</li>
{/exp:twitter_timeline}
{/exp:tweetify}

If you must put Twitter Timeline outside Tweetify, you'll need to use parse="inward" on the outer Twitter Timeline tag.

{exp:twitter_timeline type="user" user="michaelrog" password="****" limit="3" parse="inward"}
{exp:tweetify}
<li>{text}</li>
{/exp:tweetify}
{/exp:twitter_timeline}

Examples: Single-Function Use

{exp:tweetify:at} michaelrog @michaelrog #michaelrog http://michaelrog.com {/exp:tweetify:at}

{exp:tweetify:hash} michaelrog @michaelrog #michaelrog http://michaelrog.com {/exp:tweetify:hash}

{exp:tweetify:url} michaelrog @michaelrog #michaelrog http://michaelrog.com {/exp:tweetify:url}

Examples: Adding CSS Classes

You can use the class, atclass, hashclass, and urlclass parameters to supply class names to the formatted links.

{exp:tweetify class="class" atclass="at" urlclass="url1 url2" hashclass="hash1 hash2"}

Formatting channel data

Tweetify can be selected as a text formatting option for channel fields.