Not signed in (Sign In)

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

    • CommentAuthorsandro007
    • CommentTimeSep 27th 2005
     
    Hi,

    I wonder if it is possible to implement plogger to show only albums and not collections. In short. I would like to reduce one level cuz I don't have that many images.

    Could someone give me some guidelines? maybe I would have to change the code...If it is simple, that´s fine.

    Thanks : )
    •  
      CommentAuthormike
    • CommentTimeSep 27th 2005
     
    Just create a single collection. You can put as many albums as you need into it. If you don't want people to have to click in to the single collection to see your albums, you can link to your albums page directly.

    If you're using mod_rewrite, you could just have all your gallery links point to http://www.yoursite.com/plogger/collection-name/. This would create the illusion that your gallery is just albums. Even with mod-rewrite off you could do the same thing, just with a crufty URL.

    There is no simple code fix for this --, you would have to do quite a bit of heavy modifications to change the collections/albums paradigm -- the entire program is based on it.
    • CommentAuthorsandro007
    • CommentTimeSep 28th 2005
     
    I am not exactly sure about this mod_rewrite... how can I use it ? Is it something I can access from my control panel ? An what about crufty URL ?

    Appreciate your help

    Sandro
    •  
      CommentAuthormike
    • CommentTimeSep 28th 2005
     
    It's simple to use in Plogger. Just make sure your .htaccess file in your Plogger directory has write permissions (Use CHMOD/Change permissions in your FTP editor). Then, under the Plogger option page, check "Use Cruft Free URL's".

    This will rewrite your URLs to look much nicer, instead or
    http://www.yoursite.com/plogger/index.php?level=album&id=32

    they will be
    http://www.yoursite.com/plogger/collection-name/album-name/

    Cruft free!
    • CommentAuthorsandro007
    • CommentTimeSep 28th 2005
     
    Hey Mike,

    Great help. I've made the changes.

    Thanks a lot !
    • CommentAuthormgaray
    • CommentTimeDec 15th 2007 edited
     
    i've done this with 2 lines of code...
    on "gallery.php" line 54-57 says:

    $allowed_levels = array('collections','collection','album','picture','search');
    if (!in_array($GLOBALS['plogger_level'],$allowed_levels)) {
    $GLOBALS['plogger_level'] = 'collections';
    };

    change it for

    $allowed_levels = array('collection','album','picture','search');
    if (!in_array($GLOBALS['plogger_level'],$allowed_levels)) {
    $GLOBALS['plogger_level'] = 'collection'; //no collectionS
    $GLOBALS['plogger_id'] = '1'; //suposing that you only want collection number 1.
    };

    so, when you enter www.yoursite.com/plogger it will link you directly to your collection number 1

    greetings