Not signed in (Sign In)

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

    • CommentAuthorenrico7
    • CommentTimeAug 23rd 2007
     
    Hi,

    I need this modification:

    Change the picture_name in to picture_caption in breadcrump

    Sorry for my bad english, any help is appreciated!

    Thanks.

    Enrico
    • CommentAuthorjammindice
    • CommentTimeAug 23rd 2007 edited
     
    to change this is easy, open plog-functions.php and find this line:
    $breadcrumbs = $collection_link . ' &raquo; ' . $album_link . ' &raquo; ' . '<span id="image_name"><b>' . $picture_name.'</b></span>';

    about line 48 or so, and change the $picture_name to $picture_caption but leave the image_name alone.

    WARNING: you must keep your captions short or you will break the look of the menu area up top. 25-30 characters i think would be the max depending on the collection/album name lengths.
    • CommentAuthorenrico7
    • CommentTimeAug 23rd 2007
     
    I found this line in plog-functions.php but does not work :(

    I have tested with:

    $picture_caption
    $caption
    $picture["caption"]

    the result is blank
    • CommentAuthorjammindice
    • CommentTimeAug 23rd 2007
     
    You know what you're right i'm an idiot and not thinking today.... sorry about that but go ahead and make the change stated above and add the following:

    put this at the top right after "case 'picture':"

    $rows = get_caption_by_id($id);
    $picture_caption = SmartStripSlashes($rows);

    And you can add this function in anywhere just not in another function, so find a } with a function blah blah() after it put a few spaces in there and paste this in:
    function get_caption_by_id($id){
    global $config;

    $sql = "SELECT caption from " . TABLE_PREFIX . "pictures where id=' " . $id . "'";
    $result = run_query($sql);
    $caption = mysql_fetch_row($result);
    return $caption[0];
    }

    That should do it, because it worked in my test album...
    • CommentAuthorenrico7
    • CommentTimeAug 23rd 2007
     
    perfect, it works :)

    many THANKS jammindice!!
    • CommentAuthorjordan
    • CommentTimeSep 1st 2007
     
    I'm curious to see the result. Please add a link to your gallery. Thanks.