Not signed in (Sign In)

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

    • CommentAuthorGamefisher
    • CommentTimeApr 26th 2009
     
    Is there a way to embed a single collection or album in a web page, rather then the whole gallery?
    • CommentAuthormimmo_l
    • CommentTimeMay 1st 2009
     
    I think if in your html code instead of calling index.php put :index.php?level=album&id=3 this should call the album. change the id to what ever album you want displayed.
  1.  
    It does not seem to work that way. Is this correct?
    <?php require("gallery.php?level=album&id=4"); ?>

    Here is the error page:
    Warning: require(gallery.php?level=album&id=4) [function.require]: failed to open stream: No such file or directory in /home/jdsleds/public_html/gallery/indexalbum.php on line 21

    Warning: require(gallery.php?level=album&id=4) [function.require]: failed to open stream: No such file or directory in /home/jdsleds/public_html/gallery/indexalbum.php on line 21

    Fatal error: require() [function.require]: Failed opening required 'gallery.php?level=album&id=4' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jdsleds/public_html/gallery/indexalbum.php on line 21
    • CommentAuthormimmo_l
    • CommentTimeMay 5th 2009
     
    hi sorry for any confusion so..

    in your browser:
    www.mydomain.com/plogger --> shows the collections
    http://www.mydomain.com/plogger/?level=album&id=7 --> shows the pictures in the album.

    so either
    1) link to the album you want (you need to use proper album id)
    2) use iframes and direct to the album you want. (this will also hide the plogger url)

    hope this helps
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 5th 2009 edited
     
    You can also change the global variables after you include the gallery.php file like this:
    <?php
    require('gallery.php');
    if ($GLOBALS['plogger_level']=='collections' || $GLOBALS['plogger_level']=='collection' ) {
    $GLOBALS['plogger_level'] = 'album';
    $GLOBALS['plogger_id'] = #; // Enter the id# of the album here
    }
    ?>

    [more code goes here]

    <?php the_gallery_head(); ?>

    [more code goes here]

    <?php the_gallery(); ?>


    This will skip the overall collections and a single collection level and go strait to an album. If you want it to go to a certain collection, just modify the $GLOBAL variables to 'collection' and the collection id#.