Quantcast

iGoogle Gadget

bbrowne's picture
Posts
4
Member
142 days
started by bbrowne on April 28, 2008

I would love to have the following graph display on my iGoogle page, with the past 3 months always displayed.

http://www.trifuel.com/log/plot_hrweekly.php?startdate=2008-01-28&enddat...

Anyone good with Google code?

--

Brennan

TriSooner's picture
Posts
653
Member
199 days
TriSooner posted 9 weeks ago.

+ 1 I'd use it too.

Ironman Germany (July 6, 2008)

Socket's picture
Posts
410
Member
408 days
Socket posted 9 weeks ago.

It could work...

Its easy enough to do that using the link as the source of an image as long as you have a persistent log-in on the browser you are looking at it from since the training log software uses a cookie to determine username and password and such.

I set a quickie page on my own webspace that only contains:

<img src="http://www.trifuel.com/log/plot_hrweekly.php?startdate=2008-01-28&enddate=2008-04-28">

and in FF where I'm logged in with a persistent cookie, the graph comes up fine. In IE, where I'm not logged in, I get an "image not found" red X. It won't work everywhere you log in, but only from where you would be logged in to the training log already.

If I could get access to the training log software's source, I could probably find a workaround that wouldn't expose too much of a security hole...

TriSooner's picture
Posts
653
Member
199 days
TriSooner posted 9 weeks ago.

NERDS! (j/k, I'll try it)

Ironman Germany (July 6, 2008)

tri-ac's picture
Posts
1377
Member
941 days
tri-ac posted 9 weeks ago.

Socket wrote:
and in FF where I'm logged in with a persistent cookie, the graph comes up fine. In IE, where I'm not logged in, I get an "image not found" red X. It won't work everywhere you log in, but only from where you would be logged in to the training log already.

If I could get access to the training log software's source, I could probably find a workaround that wouldn't expose too much of a security hole...

what are your log share settings set to?

Socket's picture
Posts
410
Member
408 days
Socket posted 9 weeks ago.

Now if you want to get even nerdier, you could set up a script that generates the image source string based on the current date and 30/90/whatever days prior which is what would be necessary to ensure that the graph is always up to date... which will require some date math which is never fun.

I'll see what I can come up with tomorrow.

bbrowne's picture
Posts
4
Member
142 days
bbrowne posted 9 weeks ago.

Thanks for the reply. The auto-update, based on the date, would be awesome. I was looking at the BeginnerTriathlete google gadget code and I think its very similar to this. If you can get it to work I will be excited to put it to use.

kylie's picture
Posts
3799
Member
1496 days
kylie posted 9 weeks ago.

How much time would you want displayed?

And if you share yours you could make a custom widget that uses the full link to the graph with the user number (like http://www.trifuel.com/log/plot_hrweekly.php?startdate=2008-01-29&enddate=2008-04-29&userid=2352 for Anton).

I believe it could be written in a way that everyone could customize it to show their own output if they share it by some javascript and user settings stuff to set the user id number, but I'd have to look a bit more to be sure.

Miles of Life --- Powered by MarkyV

Tribro's picture
Posts
2241
Member
2277 days
Tribro posted 9 weeks ago.

Dang, I haven't even started to look at the Google stuff. To much out there to keep track of. I'll take a look as well at some point.

Socket's picture
Posts
410
Member
408 days
Socket posted 9 weeks ago.

There ya go. Make it public and it'll work.

http://www.google.com/ig/adde?hl=en&moduleurl=http://spidermouse.us/iGoogle%2520Gadget.xml&source=imag

It defaults to Tribro's graph so we can keep an eye on 'im ;-)

ChunkyB's picture
Posts
841
Member
264 days
ChunkyB posted 9 weeks ago.

I would love a "Recent Posts" gadget. Can anyone out there whip something up for me right quick?

"The melting point of wax means nothing to me": Thrice

My Blog

Tribro's picture
Posts
2241
Member
2277 days
Tribro posted 9 weeks ago.

Socket wrote:

It defaults to Tribro's graph so we can keep an eye on 'im ;-)

That's scary :D guess if have to keep it updated and get out there...

I don't think you need a gadget for the forums, you can just add a feed link, ya.
http://feeds.feedburner.com/Trifuelforums (new threads feed)

ChunkyB's picture
Posts
841
Member
264 days
ChunkyB posted 9 weeks ago.

I don't really like how the recent posts RSS works. I love the display of the actual page, and how it shows you if the thread is new to you, and you can click to see just the new posts and what not. From what I can tell, the RSS just updates when a new thread is created, not every time someone posts in the forum. I wouldn't really want an RSS feed that did that because it would be so full and cumbersome. But a google gadget (or even better, a dashboard widget) that was basically just a screenshot of the top of the "recent posts page" or something would be awesome. BTW, I've tried using web clips to make a dashboard widget, but it doesn't stay at the top of the page for some reason.

"The melting point of wax means nothing to me": Thrice

My Blog

bbrowne's picture
Posts
4
Member
142 days
bbrowne posted 9 weeks ago.

Socket -- That is exactly what I was looking for. Thanks for putting the gadget together! Hopefully other users will find it useful. All the more motivation to train!

Cheers,

BB

tri-ac's picture
Posts
1377
Member
941 days
tri-ac posted 9 weeks ago.

so where do you find your userid #?

Socket's picture
Posts
410
Member
408 days
Socket posted 9 weeks ago.

if you go to your profile and click on "write private message" the number at the end of the link is your userid. that was the easiest way I found it anyway.