The online racing simulator
Live For Speed Windows Gadget
I have started making Gadgets for the Windows Sidebar and the Google Sidebar. Smile

The "Live For Speed Windows Gadget" and "Live For Speed Google Gadget" displays the Current Version of Live For Speed and the amount of Players Currently Online.

The "Live For Speed Friends Gadget" displays whether your Selected Live For Speed Friends are either Online, Spectating or Offline.

News:
- Live For Speed Windows Gadget v1.9.1.0 is now released (13th August 2009)
- Live For Speed Windows Gadget v1.1.0.0 is now released (14th April 2009)
- Live For Speed Vista Gadget v1.0.0.0 is now released (4th January 2009)

Live For Speed Windows Gadget v1.9.1.0 (LFSWG)

Fixes:
- Refresh button added
- Various other updates Thumbs up



DOWNLOAD(S):

Windows Live Gallery - Live Fo ... d Windows Gadget v1.9.1.0

Live For Speed Windows Gadget ... Download (MegaUpload.com)



Live For Speed Friends Gadget v0.8.1.0 Beta


DOWNLOAD(S):
Not Avalible Until v1.0.0.0




Live For Speed Google Gadget Beta v0.9.9.96 (LFSGG)
New Features/Changes:
-
Problems/Can anyone help?
- I can't get the php file to display on the Live For Speed Google Gadget...
- How do I auto-refresh a single php image file or the whole gadget every 60 seconds (1 min)?()

(Screenshot on the 15/07/2008)

DOWNLOAD(S):
Not Avalible Until v1.0.0.0


Thanks to all that have contributed to these gadgets!!! Thumbs up
James
-
Thanks ;) (Jamesisinthehouse12) DELETED by Jamesisinthehouse12
Anyone know...
Is there a way to convert Widgets into Windows Gadgets?
Yes...
Quote from wabbit :Is there a way to convert Widgets into Windows Gadgets?

If you mean widgets for websites to gadgets... then yes
The Amnesty Generator converts it for you

Overview
You can place Google gadgets, Grazr RSS readers, YouTube videos and more onto your Sidebar.
Copy and paste the HTML code for a web widget directly into Generator and generate a new Sidebar gadget with the click of a button.
★ Create gadgets without any coding experience
★ Autofill feature does the work for you
★ Inline step-by-step instructions included
★ Supports Flash widgets, games and video

www.amnestywidgets.com
What am I doing wrong?
What I want to do is very basic (I think)...
I want to have 3 pictures alltogether to make the whole gadget.

Like this:
<img/lfs-logo.png
<img/top.png
<realtime_numbers.php
<img/bottom.png

I also need to find out how I can make it auto-refresh the realtime_numbers.php () every minuite...

What am I doing wrong?
I don't know how or if I can have more than one background in a gadget.
Here is my code I have so far, what am I doing wrong?



Thanks in advance
#6 - herki
Err, you have 4 init functions there? That won't ever work that way.
To solve your problem of merging the images you could use a table, but I'd suggest you'd read into the basics of html/javascript before attempting something like this.
Call the PNG not the PHP file. PHP file is a script, the PNG file is not. It will put excess load on the server.
Dygear - the PNG gets dynamically generated on request. Linking to the PNG doesn't work as shown here: whereas to PHP : does work.
Quote from dawesdust_12 :Dygear - the PNG gets dynamically generated on request. Linking to the PNG doesn't work as shown here, whereas to PHP does work.

Ha! That's kinda ass backwords!
-
(Jamesisinthehouse12) DELETED by Jamesisinthehouse12
Thanks for your help ;)
Quote from herki :Err, you have 4 init functions there? That won't ever work that way.
To solve your problem of merging the images you could use a table, but I'd suggest you'd read into the basics of html/javascript before attempting something like this.

Ok, thanks
I will look into it
It it won't work that way... What about this way? :D
Quote from herki :Err, you have 4 init functions there? That won't ever work that way.
To solve your problem of merging the images you could use a table, but I'd suggest you'd read into the basics of html/javascript before attempting something like this.

It it won't work that way... What about this way?
I thought of using <g:image>, this works but it has a bit of a gap between the images... can the gap be removed?

What it is currently:




Thanks again
... the way you use <g image> from the MSDN... is wrong.

You're going <g:image> <img src="blah"/> </g:image>

The way I read it, is you need to simply go <g:image src="blah"/>

Same with "<g:background>" is wrong.
Quote from Dygear :Ha! That's kinda ass backwords!

HTTP Headers (specifically 'Content-Type') & header().

i.e. the script uses PHP to generate an image, sends the Content-Type "image/png" using header() and then outputs the raw image data. The browser gets the file (filename extensions are meaningless in this context), reads the header, sees that it's supposedly a PNG image, and interprets the rest of the data it receives as PNG image data. Hey presto, image.
Quote from JamesF1 :HTTP Headers (specifically 'Content-Type') & header().

i.e. the script uses PHP to generate an image, sends the Content-Type "image/png" using header() and then outputs the raw image data. The browser gets the file (filename extensions are meaningless in this context), reads the header, sees that it's supposedly a PNG image, and interprets the rest of the data it receives as PNG image data. Hey presto, image.

I understand the concept, I just find it odd that the the PNG file is not the cached output, you know instead of having to hit the PHP file, start the PHP parser and then run all of the functions. I would place the PHP file on a cron and give everyone else the PNG file to use.
It can still be cached, quite simply, even using the above method. Only if we knew what the script was running, would we be able to definitively say no caching was used.
-
... (Jamesisinthehouse12) DELETED by Jamesisinthehouse12
-
Someone please help (Jamesisinthehouse12) DELETED by Jamesisinthehouse12 : Double Post
-
Someone Please Help!!! (Jamesisinthehouse12) DELETED by Jamesisinthehouse12
-
I Need Help!!! (Jamesisinthehouse12) DELETED by Jamesisinthehouse12 : Remove Clutter
New Screenshot of v0.9.9.85 (New Dragging Image, Logo and more!!!)
New Beta version v0.9.9.85!!!

New Features:
- New Dragging Image
- New Logo Image
- A link to www.lfs.net when you click on the Live For Speed image

Screenshot of v0.9.9.85


It is getting closer to the release!!!

But I still need help to get this finnished

If I can't get any help, I will release a beta version and hopefully someone will eventually help
Attached images
screenshot2rg6.jpg
I've not played about with this before, but can you pet multiple images inside a <g:image> tag? Does the <g:image> have any border or margin propreties that you can configure? Just some ideas off the top of my head.
-
Live For Speed Notifier Beta v0.9.9.95 - Almost done ;) (Jamesisinthehouse12) DELETED by Jamesisinthehouse12
-
Live For Speed Gadget Beta v0.9.9.95 (LFSG) (Jamesisinthehouse12) DELETED by Jamesisinthehouse12
Live For Speed Gadget Beta v0.9.9.95 (LFSG)
Quote from Jamesisinthehouse12 :I am making a Gadget for the Windows Vista Sidebar which will Display the Current Version of Live For Speed and the amount of Racers Currently Online.

News:
I finally got this thing almost complete
The problem was quite simple...

Just bad programming
I didn't write the script properly in some places

Features to add/edit/delete:
- Auto-Refresh every 60 seconds (1 min)
- Put the link to http://www.lfs.net back on the LFS logo
- Get rid of the last space/gap, I am guessing that I should be using a different command thing

Live For Speed Gadget Beta v0.9.9.95 (LFSG)

New Features/Changes:
- Space between the images is almost gone (just one spot left)
- Icon Update (shadow underneith)
- Removed the www.lfs.net link due to errors
- Changed the name from "Live For Speed Notifier" to "Live For Speed Gadget"


(Screenshot on the 12/07/2008)


At the moment, I have this:
<g:image [COLOR=red]src[/COLOR]="http://www.lfs.net/content/inc/realtime_numbers.php"/>

Should I have something like:
<g:image [COLOR=red]url[/COLOR]=""/>

What should I use for a php file?

Just need that answer and that should get rid of the space I think...

It is currently like this (with a gap/space):


I would love for it to be without any gaps or spaces, but if it can't this will have to do

How do I auto-refresh a single php file or the whole gadget every 60 seconds (1 min)?
()

Thanks to all that have contributed to this!!!
James


Thanks again guys
fighting with HTML can be the biggest bitch! lol
-
(Jamesisinthehouse12) DELETED by Jamesisinthehouse12
-
(Jamesisinthehouse12) DELETED by Jamesisinthehouse12
-
Please Help Me!!! (Jamesisinthehouse12) DELETED by Jamesisinthehouse12
Please Help Me!!! and other stuff :P
Quote from teedot :fighting with HTML can be the biggest bitch! lol

yep

Quote from Bob Smith :I've not played about with this before, but can you pet multiple images inside a <g:image> tag? Does the <g:image> have any border or margin propreties that you can configure? Just some ideas off the top of my head.

sorry... I only just notest your post :P
but that was what I did :P
http://www.lfsforum.net/showthread.php?p=856608#post856608 - already talked about it and used it :P

Could u help me with refreshing this gadget every 60 seconds (1 min) or the single php file?

Quote from Jamesisinthehouse12 :How do I auto-refresh a single php file or the whole gadget every 60 seconds (1 min)?
()

Thanks to all that have contributed to this!!!
James

Please Help Me

The sooner this is done the sooner it can get released, it is the only thing left to add/fix before release
here you go

Put this code in the HEAD section of your HTML code:

<meta http-equiv="refresh" content="60">

refreshes the page every 60 seconds.

Put this line in your code like this:

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Unicode" />
[B][U]<meta http-equiv="refresh" content="60">[/U][/B] <<<<<====== INSERTED CODE
<title>Live For Speed Notifier</title>
<style type="text/css">
....
-snip-

Just dont add the <<<<<====== INSERTED CODE part :P
I did...
Quote from teedot :if it allows straight HTML code... you could use a Meta Refresh tag. google that.

ah, thanks mate

will give it a try
Quote from teedot :here you go

Put this code in the HEAD section of your HTML code:

<meta http-equiv="refresh" content="60">

refreshes the page every 60 seconds.

Put this line in your code like this:

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Unicode" />
[B][U]<meta http-equiv="refresh" content="60">[/U][/B] <<<<<====== INSERTED CODE
<title>Live For Speed Notifier</title>
<style type="text/css">
....
-snip-

Just dont add the <<<<<====== INSERTED CODE part :P

I thought I already tried that tho...
oh well, will try again
Quote from Jamesisinthehouse12 :I thought I already tried that tho...
oh well, will try again

Yeah was giving you more detail rather than letting you search google
Quote from teedot :Yeah was giving you more detail rather than letting you search google

thanks

FGED GREDG RDFGDR GSFDG