PDA

View Full Version : 'Latest photos' -> 'Latest photos made public' ?


segal3
9th of December 2006 (Sat), 03:10
I'm not sure exactly how this would be re-coded...but there has to be some way to pull up photos ordered by the most recent moved into a public gallery? Often there are photos/galleries that I upload, but then have private for some amount of time - when I finally move these photos into the public-space, they don't show up as 'recent', instead they're 2-3 months old compared to something uploaded a week ago.

While I'd prefer the above, I realize it may be difficult to code, so this may be an easier solution. Is there any way to call for a certain photo ID in php code (similar to snippets) and have EE return a thumb, or microthumb, or link for *that specific photo ID* ? That way, I only have to update, say, 5 photoID numbers instead of looking for each microthumb image file to drop into a <img src> tag.

For example, say I have an index page on my site that displays 5 'latest public photos' (which are really just user-defined here)...and the call code would be:


<?php
$get = "latest_public"; //whatever function is defined as
$photoID = "1002|1040|1041|1052|1055"; //calls for specific IDs
$thumbsize = "microthumb";
$viewas = "image";
$thumbclass = "ee_css_thumb";
$linkclass = "";
@include("./gallery/snippets.php"); //probably some other include, but just pulling from the snippets example
?>


I know you're busy Pekka - any direction you can point me in?

segal3
9th of December 2006 (Sat), 03:59
After a good 25min of coding (and actually getting somewhere ;)...I almost have it done actually)...I think this might be able to be accomplished with a virtual exhibition, and limiting the 'latest photos' calling-function to that exhibition alone.