TweetStream
Setup
---------------

1.  upload files to server in same directory

2.  If you want to use echo.php to display a TweetStream then
    please edit the title & meta data of echo.php, and build your layout.

3.  If you want to include TweetStream on another page follow these instructions:

    a. Include the below into the <head></head> section of the website you will call TweetStream from:
      
      <head>
        <script type="text/javascript" src="jquery.js">
        </script>
        <script>
            //jquery script to update stream. time interval is 20 seocnds.	
            var refreshId = setInterval(function() {
                $('#tweetstream').fadeOut("slow").load('tweetstream.php').fadeIn("slow");
            },
            20000);
        </script>
        <style type="text/css">
            .tweetstream { width: 400px; height: 148px; overflow:none; } .tweetstream_name,
            .tweetstream_name a:link, .tweetstream_name a:visited, .tweetstream_name
            a:active { color: #000000; } .tweetstream_name a:hover { text-decoration:none;
            } .tweetstream_description { color: #000000; } .tweetstream_description
            a:link, .tweetstream_description a:visited, .tweetstream_description a:active
            { color: #000000; } .tweetstream_description a:hover { text-decoration:none;
            }
        </style>
     </head>

     b. Call the TweetStream wheverever you want within your webpage by including this code:
        
        <!-- div that TweetStream will populate in--->
        <div id="tweetstream" class="tweetstream">
        </div>

     c. Add this just before the </body> tag:

        <!-------Populates the TweetStream on page load.---------->
        <script>
            $('#tweetstream').load('tweetstream.php')
        </script>
        </body>

4. EDIT TWEETSTREAM.PHP:
edit tweetstream.php where indicated.

5. THATS ALL! RUN AND ENJOY!

NOTE: temp.txt is needed, do not delete it. avatar.php is needed to produce the rounded cornor avatars

*be sure to @ your own channel on twitter and let them know your TweetStream has gone live.



-------------------------------------------------------------------------
*BONUS NOTE: ADD SOCIAL BOOKMARK LINKS ON YOUR STREAM! HERE's SOME CODE:
IMAGES ALSO INCLUDED IN IMAGES/ FOLDER.
-------------------------------------------------------------------------
<?php
$surl = "enter your url here";
$stitle = "Enter the title of your page here";
?>
<center>
			<a  rel="nofollow" target="_blank" href="http://twitter.com/?status=Check out <?php echo $stitle; echo " "; echo $surl; ?>"><img src="images/twitter.png" title="Tweet This!" border=0 valign=ABSMIDDLE></a>
			<a  rel="nofollow" target="_blank"  href="http://www.facebook.com/sharer.php?u=<?php echo $surl; ?>&t=<?php echo $stitle; ?>"><img src="images/facebook.gif" title="Share on Facebook" border=0 valign=ABSMIDDLE></a>
			<a  rel="nofollow" target="_blank"  href="http://del.icio.us/post?url=<?php echo $surl; ?>&title=<?php echo $stitle; ?>"><img src="images/delicious.gif" title="Bookmark on del.icio.us" border=0 valign=ABSMIDDLE></a>
			<a  rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&url=<?php echo $surl; ?>"><img src="images/digg.gif" title="Bookmark on Digg" border=0 valign=ABSMIDDLE></a>
			<a  rel="nofollow" target="_blank"  href="http://technorati.com/cosmos/search.html?url=<?php echo $surl; ?>"><img src="images/technorati.gif" title="Bookmark on Technorati" border=0 valign=ABSMIDDLE></a>
			<a  rel="nofollow" target="_blank"  href="http://reddit.com/submit?url=<?php echo $surl; ?>&title=<?php echo $stitle; ?>" ><img src="images/reddit.gif" title="Bookmark on Reddit" border=0 valign=ABSMIDDLE></a>
			<a  rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=add&bkmk=<?php echo $surl; ?>&title=<?php echo $stitle; ?>" ><img src="images/google.jpg" title="Bookmark on Google Bookmarks" border=0 valign=ABSMIDDLE></a>
			</center>
			<font style='font-size:8px'><i>Atwell Publishing 2009<br>Powered by: <A href="http://www.tweetstream.us">TweetStream 1.1</a></i></font><br><br>
</center>