TM-FORUM

The TrackMania universal forum ^_^
It is currently Sat Nov 01, 2014 6:54 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Image that is charging?
PostPosted: Fri Apr 01, 2011 12:53 pm 
Offline
sunday driver
sunday driver

Joined: Thu Jan 21, 2010 11:20 pm
Posts: 53
Location: Nancy France
Owned TM-games: tmu
Manialink(s): LFT
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:
<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

_________________
Image
Image
Image
=>Server Only Mix Environment and Car
Gamemode Stunts with Gerymania


Top
 Profile  
 
 Post subject: Re: Image that is charging?
PostPosted: Mon Apr 04, 2011 12:25 am 
Offline
swift roadking
swift roadking
User avatar

Joined: Fri Feb 16, 2007 4:40 am
Posts: 692
Location: Between DisneyLand and Paris
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
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..

_________________
Zelectrify!


Top
 Profile  
 
 Post subject: Re: Image that is charging?
PostPosted: Mon Apr 04, 2011 7:06 pm 
Offline
speedy pilot
speedy pilot
User avatar

Joined: Sun Dec 06, 2009 2:30 am
Posts: 304
Location: Bern, CH
Owned TM-games: TMUF, TMS, TMO
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:
<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?

_________________
Image
-> serverviewer.svenstucki.ch <-


Top
 Profile  
 
 Post subject: Re: Image that is charging?
PostPosted: Tue Apr 05, 2011 5:37 pm 
Offline
sunday driver
sunday driver

Joined: Thu Jan 21, 2010 11:20 pm
Posts: 53
Location: Nancy France
Owned TM-games: tmu
Manialink(s): LFT
Not not work.

Thank you to you: :)

pastis

_________________
Image
Image
Image
=>Server Only Mix Environment and Car
Gamemode Stunts with Gerymania


Top
 Profile  
 
 Post subject: Re: Image that is charging?
PostPosted: Tue Apr 05, 2011 8:43 pm 
Offline
speedy pilot
speedy pilot
User avatar

Joined: Sun Dec 06, 2009 2:30 am
Posts: 304
Location: Bern, CH
Owned TM-games: TMUF, TMS, TMO
Code:
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.)

_________________
Image
-> serverviewer.svenstucki.ch <-


Top
 Profile  
 
 Post subject: Re: Image that is charging?
PostPosted: Tue Apr 05, 2011 8:57 pm 
Offline
swift roadking
swift roadking
User avatar

Joined: Fri Feb 16, 2007 4:40 am
Posts: 692
Location: Between DisneyLand and Paris
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
nice one!
Thanks Svens :thumbsup:

_________________
Zelectrify!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group