Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other client wants to add images to gallery page

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #31253
    casiodan
    Participant

    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

    #65497
    dhechler
    Member

    You could let users upload images with Nextgen Gallery. Or if you really want to pull from flickr, I might have a script for that.

    #65498
    casiodan
    Participant

    I’ll take a look at nextgen. i think they are familiar with flickr which is why i went down that route.

    Cheers

    #65504
    creative
    Member

    I love jquery, there got to be a way. Nextgen though is pretty good.

    #65505
    dhechler
    Member

    Well, you could check out PHPFlickr. It’s a great script

    #65506
    dhechler
    Member

    then use JQuery Fancybox to display them

    #65382
    casiodan
    Participant

    ok 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?

    #65383
    dhechler
    Member

    This 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:[email protected] 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 "$photo[title] "src=" . $f->buildPhotoURL($photo, "Square") . " />";
    echo "
  • ";
    //If it reaches the sixth photo, insert a line break
    }
    ?>

    #65344
    casiodan
    Participant

    perfect.

    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?

    #65345
    casiodan
    Participant

    or just a lightbox would do, galleria isn’t really required with that script

    #65346
    dhechler
    Member

    yeah instead of an opening and closing UL tag, just use

    around this script and then use



Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Other’ is closed to new topics and replies.