Page Options
You are here : Blog
...and the Geek shall inherit the Earth Blog... Minimize
Feb 12

Written by: Lance Larsen
2/12/2009 4:30 PM 

image Added a live Twitter Feed to my DotNetNuke site

Getting the CSS formatted to look the way I wanted was a little tricky, but after looking around at a couple other blog postings on the topic – settled on the following code.

Use it and if you have suggestion / further refinements – let me know.

   1:  <!-- TWITTER CSS -->
   2:  <style>
   3:  #twitter_div { width: 180px; padding: 0px 0px 0px 0px; }
   4:  ul#twitter_update_list { list-style: none; padding: 0; margin: 0; }
   5:  ul#twitter_update_list li { list-style: none; font-family: Verdana, Geneva, sans-serif; 
   6:      font-size: 11px; padding: 5px; margin: 0px 0px 0px 0px; }
   7:  ul#twitter_update_list li a { font-size: 10px; }
   8:  </style>
   9:   
  10:  <!-- TWITTER -->
  11:  <div id="twitter_div">
  12:      <p align="center"><a href="http://twitter.com/lancelarsen" title="Follow me on Twitter"
  13:      target="Twitter">Follow me on Twitter</a></p>
  14:      <ul id="twitter_update_list">
  15:          <li></li>
  16:      </ul>
  17:      <p align="center"><a href="http://twitter.com/lancelarsen" title="Follow me on Twitter"
  18:      target="Twitter">Follow me on Twitter</a></p>
  19:  </div>
  20:  <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
  21:  <script type="text/javascript" 
  22:  src="http://twitter.com/statuses/user_timeline/lancelarsen.json?
callback=twitterCallback2&amp;count=10"
  23:  ></script>
  24:  <!-- END TWITTER -->

Tags:

4 comment(s) so far...

Re: Live Twitter Feed CSS

Sweet man thanks!

It works great!

By Greg Althoff on   6/14/2009 8:29 PM

Re: Live Twitter Feed CSS

We're only using a part of the Twitter API that just reads your posts - like the main twitter page even when you aren't logged in. The API call we're making does not require your (or anybody's) password. If we were to add the ability to post (or if you changed the code), then maybe it would need a password. But the code generated by psd2css Online doesn't require a twitter password to work.

By Rapid Share on   2/2/2010 4:16 AM

Re: Live Twitter Feed CSS

Agreed - no password in the code above. Anyone can read a twitter feed, thus not required - and obviously would be a really bad idea to ever embed your password. :)

By Lance Larsen on   2/2/2010 9:07 AM

Re: Live Twitter Feed CSS

Thanx alot! You saved me time in having to tweak it myself!!

By Karuana on   2/6/2010 7:23 PM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Categories Minimize
Search Blog Minimize
Publish Dates Minimize

Copyright 2008 by Lance Larsen ( A.I. Labs )
Privacy StatementTerms Of Use