Recent photos section
fliegermaus
Registered Users Posts: 15 Big grins
Hi,
I would like to show the visitors of my site the most recent photos I added to the galleries.
Now, I know about the 'recent photos' feed but is there a simple way to show these recent photos as a gallery page?
I would like to show the visitors of my site the most recent photos I added to the galleries.
Now, I know about the 'recent photos' feed but is there a simple way to show these recent photos as a gallery page?
.
0
Comments
If you want to see it at work, go to the Kaleidoscope page on my site, then click "photos from the last 15 days".
Also - see this thread - http://www.dgrin.com/showthread.php?p=697258#post697258 - for code to create a find page, including a date box. You can see this working on my Find page.
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
My Website index | My Blog
I thought of the timeline at first, but it displays the photos in reverse order. Also, if I haven't added any photos in the last x days, after this time the timeline displays nothing if it's fixed at eg. 15 days.
I worked on a small hack earlier but I was a bit afraid of showing it off -- I didn't want to reinvent the wheel and then brag about it :-)
Anyway, I created a small javascript function for parsing the recent photos feed and displaying the photos on my home page. Only a few recent photos are shown but it won't be a problem to show more of them if needed. You can look at my site (http://kotografia.pl) to see it working. The top row of photos are the most recent photos added.
Fliegermaus -- you did reinvent the wheel, but I think your wheel is much more efficient than mine: http://www.dgrin.com/showthread.php?t=100758
I'm going to look at your code -- I'm sure it's better than what I've cobbled together. I did want to mention that I'm getting an error pop-up when I look at your page that says:
Ah, I see you're not actually dynamically populating your Recent Albums section (I guessed "Najnowsze" means recent), but rather have simply renamed the Featured Albums section. I have a hack to dynamically replace your Featured Albums with Recent Albums as pulled from the feed. Same concept as Recent Photos -- read the feed and then format it:
http://www.dgrin.com/showthread.php?p=688574#post688574
Running both Recent Photos and Recent Galleries hacks will probably be quite slow, as it'll have to load and parse two feeds. But I see you're using YAHOO.util.Datasource. I wonder if that's faster than whatever I copied from Dr. Dobbs. At least I won't have to have a lot of excess Javascript on my pages if there's already functions I can use from YAHOO.
That was me I was debugging the code on the live site using alerts instead of the logging package from Yahoo.
The first section "Najnowsze zdjecia" is populated dynamically from the RSS feed. The section below ("Najnowsze albumy") is renamed "Featured galleries".
What the script does is trick SmugMug into thinking it's displaying a regular gallery, but instead replaces the "regular" gallery feed with the recent photos feed.
You can see the script in action at my site. Click on any picture on the top row or on the "zobacz wiecej ostatnio dodanych zdjec" link just below the top row of photos. The gallery this link leads to is actually populated from the recent photos RSS feed.
The script still needs improvement but I dare to say it's not bad for one day's worth of work
Mike
I don't see any pictures at the top or the link you mention. Can we please see?
http://www.denisegoldberg.com/gallery/2659217
I thought I had seen a recent post describing how to do this but can't find it now. Any help would be appreciated, thanks.
Caroline
www.carolineshipsey.co.uk - Follow me on G+
[/URL]
Do you mean the link on that page to "photos from the last 15 days"? That's the javascript hack that I mentioned in my earlier post on this thread. I'll add it here rather then sending you back to that page (which I think linked to another page...). I can't remember who originally supplied the hack. It wasn't me - I'm just a happy user.
This goes in your bottom javascript box: Then, put this where you want to see the link to your recent photos - after changing the number in the function to the number of days you want to see, and after changing the text as desired:
I assume that's what you were looking for, not my "recent galleries" which displays an html-only gallery. But if it's the recent galleries you wanted, I posted a snippet of the code for the html-only gallery at http://www.dgrin.com/showpost.php?p=987907&postcount=7.
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com