Add Instructables to Personal Google WebPage

This instructable has been removed by the author.

6 comments
Feb 19, 2007. 7:46 PMjeffreyf says:
Awesome!

I started working on a Google Gadget for the same purpose (largely so the RSS feed doesn't say "explore"). I took the code from here:
http://googlemodules.com/module/1881/
and made some modifications. Code below:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs
title="Latest Instructables"
title_url="http://www.instructables.com"
author="Jeff"
description="The Latest Instructables from Instructables.com"
screenshot=""
thumbnail="http://static2.instructables.com/pub/F1B/0QPT/F1B0QPTW8LETOMKGK7.small.jpg" height="100">
<Require feature="dynamic-height"/>
<Require feature="analytics"/>
</ModulePrefs>
<UserPref name="num_entries" display_name="Number of Entries:" />
<Content type="html">
<![CDATA[]
<script>
_IG_Analytics("");
</script>

<style> #content_div { font-size: 80%; margin: 5px;} </style>

<div id=content_div></div>
<script type="text/javascript">
// Get userprefs
var prefs = new _IG_Prefs(MODULE_ID);
var entries = prefs.getInt("num_entries");

// If user wants to display more than 9 entries, display an error
// and set the value to 9, the max allowed.
if (entries > 9)
{
alert("You cannot display more than 9 entries.");
entries = 9;
}

// Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
// the specified URL. Then combine the data with HTML markup for display in
// the gadget.
_IG_FetchFeedAsJSON("http://www.instructables.com/tag/type:instructable/rss.xml",
function(feed) {
if (feed == null){
alert("There is no data.");
return;
}
// Tells gadget to resize itself
// _IG_AdjustIFrameHeight();

// Start building HTML string that will be displayed in gadget.
var html = "";

// Access the fields in the feed
//html += "<div><b>" + feed.Title + "</b></div>";
//html += "<div>" + feed.Description + "</div><br>";

// Access the data for a given entry
if (feed.Entry) {
for (var i = 0; i < feed.Entry.length; i++) {
html += "<div>"
+ "<a target='_blank' href='" + feed.Entry[i].Link + "'>"
+ feed.Entry[i].Title
+ "</a> ";
html += "</div>";
}
}
_gel("content_div").innerHTML = html;
// Tells gadget to resize itself
_IG_AdjustIFrameHeight();

// The rest of the function parameters, which are optional: the number
// of entries to return, and whether to return summaries.
}, entries);

</script>

]]>
</Content>
</Module>

Someone else did a pretty awesome RSS feed reader here:
http://googlemodules.com/module/2497/
but it wasn't working properly in firefox 2.0, so I abandoned it.
Feb 21, 2007. 7:56 PMjeffreyf says:
I wanted to do that, but couldn't find the xml code google uses when it makes a gadget out of an RSS feed. Do you have any idea where I might find it?
Feb 19, 2007. 7:49 PMjeffreyf says:
Hrm.. the HTML parser is stripping some of the code, so I've attached the file.
Feb 19, 2007. 8:37 PMPetervG says:
Wow, very useful, thanks a lot.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
116
Followers
43
Author:Brennn10
Brennn10 is now at college studying Electrical Engineering. He is also currently researching nanotechnology applications for solar cells.