Not signed in (Sign In)

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

    • CommentAuthorfanz
    • CommentTimeJul 18th 2009
     
    Hi!

    I would like to change my title structure because now they are not very search-engine friendly :( Can anybody help me?

    At the moment this is how they look:

    Name of Gallery: Name of collection >> Name of Album >> Title of picture

    This is really too long and the most important text is at the end.

    I would be much happier with something like this:
    * at picture level:
    Title of picture | Name of album

    *At album level:
    Name of Album | Name of Gallery

    If anybody is interested to see my gallery live here's the URL: http://picturesfromearth.com/travel/

    Thanks a lot for your help, Plogger is the best photo gallery system I've found!
    • CommentAuthorfanz
    • CommentTimeJul 18th 2009
     
    Oh by the way I've installed the latest svn revisions.
    • CommentAuthorfanz
    • CommentTimeJul 19th 2009
     
    Ok so after looking into the code, I found a hack that seems to be working for me.

    In plog-functions.php, I changed:

    on Line 455 I changed:

    return (SmartStripSlashes($config['gallery_name']).': '.$title);

    to:
    return ($title.' | '.SmartStripSlashes($config['gallery_name']));

    This is to put the gallery name at the end of my title instead of the beginning.

    Afterwards on Line 134 I changed:
    $breadcrumbs = SmartStripSlashes($row['name']).' » '.$album_name.' » '.' '.plog_tr('Slideshow');
    } else {
    $breadcrumbs = SmartStripSlashes($row['name']).' » '.$album_name;

    to:
    $breadcrumbs = $album_name.' » '.' '.plog_tr('Slideshow');
    } else {
    $breadcrumbs = $album_name;

    This is to get rid of the collection name that I don't need.

    And finally and most importantly for me:
    on Line 150:
    $breadcrumbs = $collection_name.' » '.$album_name.' » '.$picture_name;

    to:
    $breadcrumbs = $picture_name.' » '.$album_name;


    So with that at picture level my titles look like this:

    Title of picture >> Album name | Gallery name

    For search engines this looks much better I think. To see it live go to http://picturesfromearth.com/travel/