Not signed in (Sign In)

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

  1.  
    Hi guys. A question on a bit of customisation I'm doing:

    I have two collections, and multiple albums in each collection. Instead of having the gallery homepage being two collections, I want the collection name to be in a H2 tag, and the albums inside that collection shown below, for both collections. If that makes sense.

    Currently:
    [collection 1 img] [collection 2 img]

    What I want:
    [collection 1 name]
    [album 1 img] [albmb 2 img] [album 3 img] ...
    [collection 2 name]
    [album 1 img] [albmb 2 img] [album 3 img] ...

    Any ideas how to achieve this? I've been pulling my hair out for about an hour already, and I've searched the forums but couldn't find anything.

    Any help will be amazing. Thanks.
    •  
      CommentAuthorsidtheduck
    • CommentTimeOct 26th 2008
     
    Hi scottfreeman,

    This can be done, but I wanted to know if you wanted a general overall explanation or (if you let me know what theme you are using) I could give you a specific code edit / replacement answer.
  2.  
    Hi Sidtheduck.

    I've got a decent enough understanding (I think) of how Plogger works, so a basic rundown might get me on the right track.
  3.  
    I've figured it out. For anyone who's interested, this is the code I used.

    $GLOBALS['plogger_level']="collection";
    $GLOBALS['plogger_id']="2"; //ID of the Album
    $GLOBALS['available_albums']="4";
    $GLOBALS['album_counter']="0";
    plogger_init_albums(array(
    'from' => 0,
    'limit' => 4,
    'collection_id' => 2, //ID of the album
    'sortby' => !empty($config['album_sortby']) ? $config['album_sortby'] : 'id',
    'sortdir' => !empty($config['album_sortdir']) ? $config['album_sortdir'] : 'DESC'));

    if (plogger_has_albums()) {
    while (plogger_has_albums()){
    plogger_load_album();
    $num_pictures = plogger_album_picture_count();
    print '<a href="' . plogger_get_album_url() . '">';
    $desc = plogger_get_album_description();
    print '<img src="'.plogger_get_album_thumb().'" title="'.$desc.'" alt="'.$desc.'" /></a>';
    }
    }
    else {
    print "No pictures in this collection!";
    }


    No idea if that makes sense to anyone, but it worked for me. If you decide to use that code, then good luck, you're on your own!