- This topic is empty.
-
AuthorPosts
-
January 17, 2011 at 2:04 pm #31253casiodanParticipant
Hi guys.
I’m building a website for a friend of mine. Its for a model boat club and they want the members to be able to add images to the gallery section.
I thought the simplest method would be to use flickr or picassa etc but they ideally want the gallery page to be integrated within the site.
Is there a script i can use to pull the images from a flickr gallery into a webpage?
Thanks
Danny
January 17, 2011 at 2:20 pm #65497dhechlerMemberYou could let users upload images with Nextgen Gallery. Or if you really want to pull from flickr, I might have a script for that.
January 17, 2011 at 2:23 pm #65498casiodanParticipantI’ll take a look at nextgen. i think they are familiar with flickr which is why i went down that route.
Cheers
January 17, 2011 at 3:10 pm #65504creativeMemberI love jquery, there got to be a way. Nextgen though is pretty good.
January 17, 2011 at 3:17 pm #65505dhechlerMemberWell, you could check out PHPFlickr. It’s a great script
January 17, 2011 at 3:17 pm #65506dhechlerMemberthen use JQuery Fancybox to display them
January 18, 2011 at 5:48 pm #65382casiodanParticipantok PHPFlickr looks like the way to go……..just got to work out how to set it up, my head is hurting so far. Any tips?
January 18, 2011 at 6:03 pm #65383dhechlerMemberThis is how to pull images from a users timeline
This could go on your page that you want to pull in the images.
require_once("phpFlickr.php");
// Create new phpFlickr object
// get api key from here http://www.flickr.com/services/api/misc.api_keys.html
$f = new phpFlickr("PUT YOUR APIKEY HERE");
$f->enableCache(
"db",
"mysql://USERNAME:PASSWORD@MYSQL ADDRESS/DATABASENAME"
);
?>
// Find the NSID of the username inputted via the form
$person = $f->people_findByUsername('FLICKRUSERNAME');
// Get the friendly URL of the user's photos
$photos_url = $f->urls_getUserPhotos($person);
// Get the user's first 36 public photos
$photos = $f->people_getPublicPhotos($person, NULL, NULL, 18);
// Loop through the photos and output the html
foreach ((array)$photos as $photo) {
echo "- buildPhotoURL($photo, "Medium") . ">";
";
echo " "src=" . $f->buildPhotoURL($photo, "Square") . " />";
echo "
//If it reaches the sixth photo, insert a line break
}
?>
January 18, 2011 at 6:08 pm #65344casiodanParticipantperfect.
is it possible to make that work with galleria? would i just put the script in the div where i would normally just list the images for galleria?
January 18, 2011 at 6:11 pm #65345casiodanParticipantor just a lightbox would do, galleria isn’t really required with that script
January 18, 2011 at 6:11 pm #65346dhechlerMemberyeah instead of an opening and closing UL tag, just use
around this script and then use
- buildPhotoURL($photo, "Medium") . ">";
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.