Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    http://www.brianchapmanphotography.com

    Navigate to the 'Portfolio' section to see the Plogger integration. The site was built using Wordpress and Plogger manages the image galleries. I also integrated the lightbox javascript libraries for the full size image/slideshow.

    Let me know what you think and of course I'll be happy to share any of the modifications I made.

    Brian
    • CommentAuthorjack
    • CommentTimeMay 22nd 2006
     
    First: nice images!

    I like the lightbox script very much, but I'm not especially fond of the 'slow sliding' version. Other than that it looks very good and very clean. The arrows for next/previous are also very nice.

    Did you make these photogaphs with a 6x6 camera or did you 'just' crop them to be square? Doesn't matter really, I'm just curious.
  2.  
    Thanks!

    I agree about the 'slow sliding' - I'm starting to question how much I like it ;)

    The images are digital (Rebel XT) and cropped to be square.
    •  
      CommentAuthormike
    • CommentTimeMay 22nd 2006
     
    Yeah, cool mod Brian. I'm also a bit turned off by the new lightbox "opening" animation. It looks great, but at some point you just want to see the damn picture! =)

    Also, nice site overall. Clean and simple just the way I like it. Plogger is the perfect fit.
  3.  
    Thanks mike!

    Plogger is definately a perfect fit - not to mention it was easy to integrate! The only thing I miss is having more control over gallery order.

    I'll have to see if there's some script parameter to change the "load" speed.
    •  
      CommentAuthormike
    • CommentTimeMay 23rd 2006
     
    Yeah, we are working on sort order issues and the newest build currently allows you to specify sort order on the album, collection, and picture levels. You can't currently pick the order outright, unless you use alphabetical sort and name the images accordingly before upload.
    • CommentAuthorbillbody
    • CommentTimeJul 17th 2006
     
    Nice site, if you can please let me know how to use the lightbox sript
    Thanks in advance
    • CommentAuthormacinchik
    • CommentTimeJul 19th 2006
     
    Good work, and great material. Thanks for sharing.
  4.  
    thanks!

    billbody - what part are you having trouble with? it's kind of hard to explain in post here.

    here's the summary...essentially, when rendering an album you need to replace the code that would like to the details page for the photo with code that initializes the lightbox for the image. you'll need all the files from the lightbox site and you'll need to add the references to all the script(js) and css files in the header (look for $inHead = <<<EOT in the gallery.php file. then you need to find the location in the gallery.php file where the album is being rendered and find the part where each thumbnail is rendered...here's the line from the original gallery.php (row 422 in the file)

    $output .= '<li class="thumbnail"><div class="tag"><a href="' . generate_url("picture",$row["id"]) . '">' . $imgtag . "</a><br />";

    and here's the line from my file
    $output .= '<li class="thumbnail"><div class="tag"><a href="' . generate_thumb($row['path'], $row['id'], 'large') . '" rel="lightbox[cur]" title="' . $row["caption"] . ' | ' . $albumNameRow["name"] . '">' . $imgtag . "</a><br />";

    there are several differences here but the most important is the rel attribute which causes the lightbox to execute when that link is clicked on (the link would be the thumbnail of the photo).

    those are the basics...let me know if you need any help. i'll try to put together a quick tutorial but i've got a lot going on right now so it might take a while.

    brian
    • CommentAuthorbillbody
    • CommentTimeJul 23rd 2006
     
    Thanks for the explanation, I had used light box with in the pass, but with ploger I was just lost in where exactly insert the code.
    I play a little just for fun, coz now the gallery is more than 600 pictures I think lighbox will increase a lot the load time.
    Again thanks for the reply
    • CommentAuthorsynthflut
    • CommentTimeJul 24th 2006 edited
     
    nice site;) i like your link to the noctournes too!
    i like the lightbox... a little slow opening but nice effect !

    how do you name your pics without showing filnames?
  5.  
    synthflut - thanks for your comments (and sorry it took so long to get back to you)!

    to name the pics i use the caption field in the album manager - it will show up under the thumbnail in the album view if you enter a value for it. you can edit the caption under the actions section when your'e in teh album view in the plogger admin app. where are you seeing the file name that you'd like to hide? i was looking in the demo gallery to remind myself what happens and the only file name i see is when you have enabled the option to 'allow downloads'.

    this is the section of the gallery.php file in question...the last line is what outputs the filename as part of the checkbox control. you could change that to something else (the caption) or turn off the option alltogether.

    if ($config["allow_dl"])
    $output .= '<input type="checkbox" name="checked[]" value="'.$row["id"].'" />';

    $filename = basename($row["path"]);

    if (strlen($filename) > $config["truncate"] && $config["truncate"] != 0)
    $filename = substr($filename, 0, $config["truncate"])."...";

    $output .= $filename.'<br />';

    hope this helps...

    brian
    • CommentAuthoraf3
    • CommentTimeSep 24th 2006
     
    If you want to get rid of the image name in the breadcrum, this is how i did mine to show caption (if exist), otherwise, show the filename. This is somewhere at line 741 of gallery.php

    // original code below
    // $picture_name = basename($row["path"]);

    if ($row["caption"] == "") {
    $picture_name = basename($row["path"]);
    }
    else {
    $picture_name = substr($row["caption"],0,15)."...";
    }
    • CommentAuthorMegan
    • CommentTimeAug 9th 2007
     
    In the new version this code is on plog-functions.php around line 41. The code to comment out looks like this:

    $picture_name = SmartStripSlashes(basename($row["path"]));

    You can also change that code to show all of the caption or a different part of it. I have chosen to just show the whole caption, since I'm always keeping those short and keeping additional information in the description. I never want it to show the file name. Mine looks like this:

    $picture_name = $row["caption"];

    If the caption is empty then it will just show nothing.

    You could also modify the previous code bit to show more characters in the caption, just by changing the 15 in the last part to a number of your choice.