Twitter for Umbraco 1.3

Rating: No reviews yet
Downloads: 47
Released: Aug 10, 2009
Updated: Aug 10, 2009 by warrenbuckley
Dev status: Beta Help Icon

Recommended Download

Application TwitterforUmbraco1.3.zip
application, 6K, uploaded Aug 10, 2009 - 47 downloads

Release Notes

In this release the Friends updates stopped working as twitter decided to password protect this XML feed, this is now fixed in this version, in addition I have added the option to show or hide @replies in the tweets that are listed.

Any problems/questions let me know.

How to use this version (1.3)

  • Install the Twitter for Umbraco package
  • Insert the XSLT CWS - Twitter macro into your template
  • Fill out the parameters for the macro
    • Twitter Username - Your twitter username. Only use this if you want to display your friends tweets.
    • Twitter Password - Your twitter password. Only use this if you want to display your friends tweets.
    • Number of statuses - The number of statues you want to display. The maximum number you can request/show is 20.
    • Show friends updates? - If you wish to use you must include your twitter username and password as this XML feed is password protected.
    • Show @replies? - Select whether you wish to show @replies in the statuses you show on your website.
  • Edit the XSLT file - CWS_twitter.xslt to customise your markup and output for the tweets you wish to show.

Editing the XSLT file

Open up CWS_twitter.xslt and edit only the markup inside this template:

    <xsl:template match="status" mode="tweet">
        <!-- Change the XHTML here for how you want each tweet to be displayed -->        
        <div>
            <p>
                <img src="{user/profile_image_url}" />
                <strong>
                    <xsl:value-of select="user/name"/>
                </strong>
                -
                <xsl:value-of select="umbraco.library:FormatDateTime(CWS.Twitter:FormatTwitterDate(created_at), 'ddd d MMM yy @ H:mm')"/>
                <xsl:value-of select="CWS.Twitter:FormatURLS(text)" disable-output-escaping="yes"/>
            </p>
        </div>
    </xsl:template>

Here is the tweet XML that twitter returns, so you can customise your tweet markup even further.

Reviews for this release

No reviews yet for this release.