SDMB RSS coolness!

I’m on a roll here guys.

I just created an RSS feed display for the SDMB using Google’s Dynamic Feed API, which can then be embedded into any website or blog.

Here’s what it looks like:

SDMB RSS Feed Display - Live Example
(make sure to stay on the site long enough to see the content refresh)

To add/embed it to your website or blog, use the following code:


<!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
  <!--
  // Created with a Google AJAX Search and Feed Wizard
  // http://code.google.com/apis/ajaxsearch/wizards.html
  -->

  <!--
  // The Following div element will end up holding the actual feed control.
  // You can place this anywhere on your page.
  -->
  <div id="feed-control">
    <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
  </div>

  <!-- Google Ajax Api
  -->
  <script src="http://www.google.com/jsapi?key=notsupplied-wizard"
    type="text/javascript"></script>

  <!-- Dynamic Feed Control and Stylesheet -->
  <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
    type="text/javascript"></script>
  <style type="text/css">
    @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
  </style>

  <script type="text/javascript">
    function LoadDynamicFeedControl() {
      var feeds = [
	{title: 'Straight Dope Message Board',
	 url: 'http://boards.straightdope.com/sdmb/external.php'
	}];
      var options = {
        numResults : 50,
        stacked : false,
        horizontal : true,
        title : ""
      }

      new GFdynamicFeedControl(feeds, 'feed-control', options);
    }
    // Load the feeds API and set the onload callback.
    google.load('feeds', '1');
    google.setOnLoadCallback(LoadDynamicFeedControl);
  </script>
<!-- ++End Dynamic Feed Control Wizard Generated Code++ -->

-xash
Administrator

No, srsly guys, this is cool. Really. You must use it on your websites and blogs.

I tried making this my Gmail signature, but Gmail doesn’t support that. But if your email client supports scripted html, you could have the coolest email signature in the world!

Ok, that is really cool.
I watched if for a few minutes, and it kept cycling through the same 4 thread titles, all with
“- 3 hours ago” after them.
Is that how it’s supposed to work?

Good catch.

By default it cycles through 4 threads. I just changed it to 50 threads by adding “numResults : 50,” and it’s seems to be working. Reload the above link and let me know if it works for you.

Updated the code in the OP. Thanks.

ETA: Right now it’s only doing 15 threads. Will check again in an hour and see if that changes.

I’m just happy to find out that there’s an SDMB RSS feed. I’ll probably add this ticker to the top of my page I send people to install plugins and stuff.

OK, I figured out what the problem was. The vBulletin setting had a max. of 15, so it wasn’t giving Google any more than 15 thread titles. I changed it to 50 and it cycles through 50 thread titles now. Google caches (and refreshes) the titles once per hour to serve anyone using this script, so the load on the server should be minimal.

Very nice xash, I’m trying it out at my home page and I’ll let you know if I have any problems.