Not signed in (Sign In)

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

    • CommentAuthorpaco758
    • CommentTimeAug 22nd 2007
     
    http://johndmartiniii.com/gallery

    This is my v1.0 integration using the Plogger Press plugin for Wordpress. I modded my WordPress template to make the navigation for single page gallery posts on the blog to appear as a gallery page in the navigation while still appearing as a regular blog post in the blog.

    Right now I am working on a script to grab a random image from the albums posted in the individual gallery posts and place it in within the 'li' on the "Gallery Home" page, so that there will be a preview thumbnail. I may modify the PloggerPress plugin so that you will be able to place a loop generated list of gallery posts on any page, with or without link thumbnails or text.

    Any suggestions or whatever would be awesome.

    I would also like to add the slideshow function to the lightbox, but it looks like a hassle. I might wait for someone else to do it.

    J
    • CommentAuthorjammindice
    • CommentTimeAug 22nd 2007
     
    well you could use this sql statement to just pull a random record from the database...

    SELECT id,path FROM plogger_pictures where parent_album=2 ORDER BY RAND() LIMIT 0,1;

    you might just need the path, then hard-code in your plogger directory and ad the result of the sql statement to get the link to the picture, or you could lookup the plogger generated thumb (instead of loading the full picture and resizing) based on the row information.

    Oh yeah, and you would need to lookup which parent_album number you would need for each preview thumb. My number were all over the place, so including plog-functions.php would probably help so you could do get_album_by_name() or something to return the correct number.