-
Flash Gordon
GoogleEarth kmz for profile
I just had the idea of adding a kmz (Google Earth location File) file
to my Signature as a link.
Then i thought, why not suggest adding a possibility to upload
such a kmz file to your Profile.
I know this is vBulletin, which is OpenSource, so just an idea
Maybe it is too much work, but i think it'll be a nice and special
goodie, which other sites don't offer
Here is, where i live:
http://www.aschers.de/sig/McUsher.kmz
If you have GoogleEarth installed you can open it directly there
My letters on the F1 key have faded, how are yours today?
-
Senior Member
http://www.wiltshire-hosting.com/map.php, from another member, Kevin_smithers.
and also, check my title.
Thanks!
-
Flash Gordon
damn i missed that somehow
tnx for the input
I thought only plain text is allowed in title.
Last edited by McUsher; 11-28-2005 at 10:03 PM.
My letters on the F1 key have faded, how are yours today?
-
Hay guys just an update for you the flash tracker should of been done by now but I have been really busy and off work for a week with a cold so I am trying to catch up at the moment.
Everything I needed to get working for the Google map tracker I now have working, my main problem was the post variables to the map for the coordinates which is working great now I figured out the initial cords to form code.
So this should be done for you by Christmas.
Mike quick question for you, in addition to the Google map clone of the flash tracker would you guys also want the map I have at www.wiltshire-hosting.com/map.php on here for all members? I do have another version of that one where by you could integrate it into the vBulletin database so the members would log into the map with their FL username and Password adn chainge their map details them selves, could be a good addition!! what do you think?
So far it has been quite popular with 58 Total members and I only posted the URL in the coffee lounge.
Last edited by kevin_smithers; 12-06-2005 at 10:02 AM.
-
Senior Member
Thanks for all the great work Kevin. We're all looking forward to the final version.
-
Avanza Comunicación Málaga
We have the same problem and try many options:
Code:
getURL("/google-earth-file.kmz");
getURL("javascript:self.location='/google-earth-file.kmz';");
getURL("javascript:window.open(/google-earth-file.kmz');");
but any works :-(
The solution is force the download with a little PHP script named download.php (for example). Copypaste:
PHP Code:
<?php
$filename = $_GET['file'];
if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 'Off');
$file_extension = strtolower(substr(strrchr($filename,"."),1));
if( $filename == "" ) {
// error: no $file specified
exit;
}
elseif ( ! file_exists( $filename ) ) {
// error: file not exists
exit;
};
switch( $file_extension ) {
case "kmz": $ctype="application/vnd.google-earth.kmz"; break;
case "kml": $ctype="application/vnd.google-earth.kml+xml"; break;
default: $ctype="application/force-download";
}
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: $ctype");
header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
readfile("$filename");
exit();
?>
in Flash you change the link with this:
Code:
getURL("/download.php?file=google-earth-file.kmz");
It works perfect!
Avanza Comunicación Málaga
www.avanzacomunicacion.com
-
Bearded (M|G)od
Over 3 years old? Come on now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|