Image links give me 404 errors :(

funkinfunkin Registered Users Posts: 2 Beginner grinner
I'm going to be building a php page (using phpSmug, but that's further down the line) that displays all of my albums. I saw this thread about getting a random image from an album and then tried to get it working on an external webpage.

I've got the URL to get a random image from one of my albums:
http://www.smugmug.com/photos/random.mg?AlbumID=5308866&Size=Tiny&AlbumKey=2Tcey

...but when I embed it in an HTML file (as an <img src> tag) or even a hyperlink it does not work, but when I just put the URL into a new browser window it does work.

I've set up an example of this at the following URL which I'd appreciate anyone taking a look at and offering me their thoughts.

http://funkin.no-ip.com/temp/smug_test.html

The bizarre thing is that sometimes the embedded image links will work - I just don't know why sometimes they do and sometimes(mostly) they don't.

Any help/advice would be appreciated as this is a rather large stumbling block for me before I move from a trial account to fully paid smugmug member.

*UPDATE* this should work now - read the reply to the thread below!

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited July 9, 2008
    the reason why it doesn't work on that gallery is because external links are disabled.
    David Parry
    SmugMug API Developer
    My Photos
  • funkinfunkin Registered Users Posts: 2 Beginner grinner
    edited July 9, 2008
    devbobo wrote:
    the reason why it doesn't work on that gallery is because external links are disabled.
    Doh! Thank you ever so much for spotting this beginners error! I've just updated it and its much happier now.

    Thanks very much for the speedy response.
Sign In or Register to comment.