Recent Photos gallery broken
DJKennedy
Registered Users Posts: 555 Major grins
Not sure if this is due to what ever SM was working on tonight but I noticed a while back and again just now that when I click on my recent photos gallery - it gives me an error. It takes me to a Server Not Found error (FF2). Also, the URL changes to http://.smugmug.com/
What didcha do guys? :huh
I know *I* didn't make any changes...sooooo...did some one forget to turn something back on :wink
Derek
www.djkennedy.com
What didcha do guys? :huh
I know *I* didn't make any changes...sooooo...did some one forget to turn something back on :wink
Derek
www.djkennedy.com
http://www.djkennedy.com
What did Cinderella say when she left the photo shop? "One day my prints will come."
What did Cinderella say when she left the photo shop? "One day my prints will come."
0
Comments
Since "recent photos" isn't a known term by most, you might want to explain that your Recent Photos link on your home page is executing a javascript function showRecent(14) with this as the definition of that javascript function.
<pre>
function showRecent(days)
{
endDate = new Date();
oneDay = 1000*60*60*24;
startDate = new Date(endDate.getTime() - (parseInt(days) * oneDay));
sUrl = "http://www.smugmug.com/homepage/templatechange.mg?TemplateID=3&origin=http://www.djkennedy.com/date/";
sUrl += startDate.getFullYear() + "-" + padDate(startDate.getMonth() + 1) + "-" + padDate(startDate.getDate());
sUrl += "/";
sUrl += endDate.getFullYear() + "-" + padDate(endDate.getMonth() + 1) + "-" + padDate(endDate.getDate());
window.location = sUrl;
}</pre>
This ends up constructing an URL like this:
<pre>http://www.smugmug.com/homepage/templatechange.mg?TemplateID=3&origin=http://www.djkennedy.com/date/2008-01-01/2008-2008-02-01</pre>
The <pre>http://www.djkennedy.com/date/2008-01-01/2008-2008-02-01</pre> part of the URL works. It's the templatechange.mg part that isn't working. You'll need some advice from someone at Smugmug on that.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Well...yeah - thats true
Figured the guys n gals (SM gurus) would (hopefully) know what I was talking about. It's midnight so my brain is frazzled.
I do notice that using IE7, I get a page can not be displayed error, and in the addy bar, it shows .smugmug.com/homepage/templatechange.mg?TemplateID=3&origin=http://www.djkennedy.com/date/2008-01-26/2008-02-09
(stupid thing keeps adding url code to make it a link...)
Which is more than what FF shows. This issue only cropped up today as far as I am aware.
Derek
What did Cinderella say when she left the photo shop? "One day my prints will come."
Bump
What did Cinderella say when she left the photo shop? "One day my prints will come."
I know the recent photos (via Barb's code) works without a template specification because I use it from my blog.
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
In any case, as I said from the help desk, please wait for Devbobo to post. Thanks.
Portfolio • Workshops • Facebook • Twitter
Yep, left a msg in the thread you indicated in the email.
Maybe it will make sense to remove that link for the now.
What did Cinderella say when she left the photo shop? "One day my prints will come."
Denise: could you link me to where I can find 'recent photos/Barbs code' code? I'll probably need to update/upgrade mine anyway, now might be a good time to do it....
Derek
What did Cinderella say when she left the photo shop? "One day my prints will come."
You can see it in use on my Kaleidoscope page (where it says click for photos from the last 15 days).
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
Thanks Denise :P yeah I was a little confused there - doing a search didnt help.
Thanks again, I'll check that out.
Derek
What did Cinderella say when she left the photo shop? "One day my prints will come."
Change your javascript so that instead of generating and URL like this:
http://www.smugmug.com/homepage/templatechange.mg?TemplateID=3&origin=http://www.djkennedy.com/date/2008-01-01/2008-2008-02-01</pre>
It generates, an URL like this:
http://www.djkennedy.com/date/2008-01-01/2008-2008-02-01</pre>
by simply removing all the template change stuff at the beginning of it. You will still get your recent photos, you just won't be controlling what view they are in (it will pick that up from the viewer's last choice in their cookie).
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Thanks John - I will do that.
THanks again for your help!
(cant right now as I have to go back to work but will do so tonight!)
Derek
What did Cinderella say when she left the photo shop? "One day my prints will come."
Derek
Once again, one happy dude...
What did Cinderella say when she left the photo shop? "One day my prints will come."
What did Cinderella say when she left the photo shop? "One day my prints will come."