Page 1 of 1

Image that is charging?

Posted: 01 Apr 2011 09:53
by Pastis
Hello

Here d like to put this image on my manialink!
I know how, but I love that image to recharge every time!

This image changes every 6 minutes!
I want when entering the page or image is located, which is charging!


My code now is

Code: Select all

<quad sizen="46.8 6" posn="0 0 1" halign="ceneter" valign="center"image="http://serverviewer.svenstucki.ch/render.682.png" />
I miss that on?

Thank you for your help

pastis

Re: Image that is charging?

Posted: 03 Apr 2011 21:25
by Knutselmaaster
Well, the first time a players client gets the address, it will put the image in his cache.
Every next time the same "adress-file" is called, it will not download it but take it from the cache.
So, to make it work you will have to find a way that is automatically renames every time, and that surely won't be easy.

why don't you just connect to your server with xmlrpc to show the player information, and use the tmx api to get the track info?
That won't be easy neither, but i think it will be less hard to achieve than trying to rename the serverviewer image for every track..

Re: Image that is charging?

Posted: 04 Apr 2011 16:06
by svens
You could try to add a timestamp parameter to the filename. This will require PHP for your manialink and I'm not sure if this is enough to trick the cache.

Code: Select all

<quad sizen="46.8 6" posn="0 0 1" halign="ceneter" valign="center"image="http://serverviewer.svenstucki.ch/render.682.png?time=<?php echo time(); ?>" />
Does anyone know if TM can handle caching related HTTP headers?

Re: Image that is charging?

Posted: 05 Apr 2011 14:37
by Pastis
Not not work.

Thank you to you: :)

pastis

Re: Image that is charging?

Posted: 05 Apr 2011 17:43
by svens

Code: Select all

http://serverviewer.svenstucki.ch/render.682.<?php echo time(); ?>.png
You can now use an URL like this. This should definitely solve any caching problems. (But it of course requires PHP again.)

Re: Image that is charging?

Posted: 05 Apr 2011 17:57
by Knutselmaaster
nice one!
Thanks Svens :thumbsup: