SimpleTwitter

A Quick Update to Simple Twitter

Posted in SimpleTwitter on January 26th, 2010 by Navarr – View Comments

A lot of people use my Simple Twitter Feed written in JavaScript (for some reason).  Well, today I pushed out a quick update that should fix all the woes users have given me in the past.

The code should now be valid XHTML strict, and I know longer use innerHTML for each list element.  Instead, I’ve moved from adding the list elements via innerHTML to DOM Manipulation (appendChild).  I’m not sure exactly what the benefits of this are, but I’m sure they exist.

As the previous HTML code seems to have been broken, this may cause some rendering errors for a few websites, but all in all it should work better than it has previously.

I’m not writing out a whole changelog, I’m just going ahead and saying that some changes were made – and hopefully Simple Twitter should work a lot easier for everyone using it.

SimpleTwitter Update

Posted in SimpleTwitter, Twitter on October 30th, 2009 by Navarr – View Comments

I’ve pushed a simple update to the SimpleTwitter JavaScript.  Change log (if its even needed) below.

  • Support for Twitter Lists
    • Uses the same format as twitter, for example @navarr/shogi
  • Support for Turled Profiles
    • Using the variable &turl=true will link @replies to turled beta-profiles instead of twitter profiles.
    • Surprisingly, this doesn’t break in co-ordination with lists.  It just doesn’t display the list.
  • Uses Search API
    • We moved to the search API for retrieving tweets, as well as pulling a JSON file instead of XML.  This MAY BREAK your current implementation (though it should not).  If it does, you can use the older script by pulling old.php from the server instead of index.php

Yeah, that’s it.  Was thinking about making the default for &turl being true instead of false, but figured that’d probably annoy more people than it was worth (at least until I get turled to be of more use as a twitter replacement).

JavaScript: Changes to the Simple Twitter Feed

Posted in SimpleTwitter, Twitter on February 24th, 2008 by Navarr – View Comments

Recently, I had resumed working on the Simple Twitter Feed, and decided to make some improvements after reading Dave Winer’s "What am I up to?" post.

So, the Simple Twitter Feed has one fix, and four additional optional parameters.

start STR – Symbol or Text to look for at the beginning of a post
time BOOL – Whether or not to display the "about x minutes ago"
client BOOL – Whether or not to display the "from x"
br BOOL – Whether or not to place a break between the tweet and the extra data

The simple fix is that the count parameter would check the last (x) amount of tweets, whereas now it displays up to (x) amount of tweets.

JavaScript: Simple Twitter Feed

Posted in SimpleTwitter, Twitter on February 12th, 2008 by Navarr – View Comments

This is code that I will kindly let anyone use.  It only works with public twitter accounts, however, but it is perfect for placing on any web page.

First we have the Inclusion of the File (can only be included once per page). Then the HTML for where the Twitter Feed is going to go, and then the JavaScript to include the file.

<script type="text/javascript" src="http://www.gtaero.net/twitter/twitter.php?user=USERNAME"></script>
<div id="twitFeed">Optional Placeholder Text</div>
<script type="text/javascript">twitter2id("twitFeed");</script>

Feel free to use this code anywhere you want to.  It is my gift to you!

UPDATE: Some additional (optional) variables have been added to the script for further tweaking.

February 24, 2008.

UPDATE: Support for twitter lists and turled profiles has been added to the script.  Your script might break with these changes, please view the post for more information.

October 30, 2009.