Page 1 of 1

Photo Of The Day for 156 million myspace users?

Posted: Sun Feb 18, 2007 7:28 pm
by mikek4010
Suggestion to the person that uploads the photo of the day:

Is there a way to post a copy of the small photo of the day to a fixed URL with a fixed filename? i.e. http://antwrp.gsfc.nasa.gov/apod/image/ ... TheDay.jpg

This way, myself and 156 million other myspace.com users could display this image on our pages, with a link to http://antwrp.gsfc.nasa.gov/apod/astropix.html whenever someone clicks on it.

Just a suggestion to get these awesome images out to the masses!
-Mike

the trade off

Posted: Sun Feb 18, 2007 10:01 pm
by kovil
I have enjoyed the quietness of this posting board, all good things do come to a 156 million youtube end, eventually !

Posted: Mon Feb 19, 2007 9:20 am
by makc
yep, we have it.

Posted: Tue Feb 20, 2007 1:59 am
by mikek4010
nope, that won't work. MySpace has gone to great lengths to prevent users from pasting potentially malious HTML code into their page. As a result, an HTML page cannot be used as the source for an image tag, as the contents cannot be trusted. IMG tags must reference .jpg, .gif, etc.

The solution is clean and simple: when uploading the image of the day, make a copy that is always called PhotoOfTheDay.jpg and upload it to a fixed URL.

Any one of the 157 million myspace pages could then reference this URL and have a different image appear each day without the need to log in and change the URL. eg. img src= http://antwrp.gsfc.nasa.gov/apod/image/ ... TheDay.jpg

[note: your jscript solution is also not an option as you cannot create that activex control in a myspace page. step out of the forest, and see the simple solution :wink: ]

Posted: Tue Feb 20, 2007 8:35 am
by ckam
if it's so simple how come you can't implement it?
and. get off myspace, get yourself normal hosting.

p.s. can you use tinyurl in image tag source?

Posted: Tue Feb 20, 2007 3:56 pm
by mikek4010
For the person that uploads the daily photo, it's a simple thing.

Re: myspace, I also have normal hosting, but that doesn't change the fact that 158 million people use myspace. Any simple change (for the person that uploads the photo!) that results in promoting these photos, is a good thing (especially for those seeking public funding)

p.s. tinyurl is a well known way to hide malicious code, so no, it does not work on myspace.

Posted: Tue Feb 20, 2007 4:35 pm
by ckam
mikek4010 wrote:For the person that uploads the daily photo, it's a simple thing.
that won't be me, baby.
...I also have normal hosting...
so why don't you put there some php script like:

Code: Select all

<?php
header("Content-type: image/jpeg;");
readfile("http://www.astronet.ru/db/apod/last_apod_image.html");
?>
and then .htaccess file like

Code: Select all

RewriteEngine on
RewriteRule ^image.jpg$ image.php
and point 158M myspace users to image.jpg on your server?
...results in promoting these photos, is a good thing...
get a dictionary, look up the word, "hotlinking". many people out there will be glad to explain how hotlinking is NOT a good thing.

Posted: Tue Feb 20, 2007 7:00 pm
by mikek4010
I just don't get it -- why would you want someone to jump thru hoops to see these photos? no, I'm not hosting anything on my server.

Can we hear from the person who uploads the daily photo as to why it's a big deal to simply copy the daily photo to a fixed filename and upload to a fixed URL?

Posted: Wed Feb 21, 2007 8:59 am
by makc
mikek4010 wrote:Can we hear from the person who uploads the daily photo as to why it's a big deal to simply copy the daily photo to a fixed filename and upload to a fixed URL?
Don't think so buddy. Gods have not visited this place for monthes (if not for years).

What you want is a free lunch. and we all know that there is no such thing.