Not signed in (Sign In)

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

    • CommentAuthorenrico7
    • CommentTimeAug 24th 2007 edited
     
    have the same problem, have you found a solution for this problem?
    • CommentAuthorknotty
    • CommentTimeAug 24th 2007 edited
     
    I have this problem too. It spoils a otherwise great program. All the text is run together in one big block without any way to make white space inbetween paragraphs and sentences. Especially since I like to put short stories with the photos.
    • CommentAuthorjammindice
    • CommentTimeAug 24th 2007
     
    edit plog-functions.php and find the following function:

    function plogger_get_picture_description() {
    return htmlspecialchars(SmartStripSlashes($GLOBALS["current_picture"]["description"]));
    }

    and change it to be this:

    function plogger_get_picture_description() {
    return SmartStripSlashes($GLOBALS["current_picture"]["description"]);
    }

    WARNING: This will allow all html tags to be used in descriptions... if you only want to do line breaks you might want to try this:

    function plogger_get_picture_description() {
    return nl2br(htmlspecialchars(SmartStripSlashes($GLOBALS["current_picture"]["description"])));
    }

    and then use /n instead of <BR> to designate where a line break will be.
    • CommentAuthorenrico7
    • CommentTimeAug 24th 2007 edited
     
    function plogger_get_picture_description() {
    return nl2br(htmlspecialchars(SmartStripSlashes($GLOBALS["current_picture"]["description"])));
    }

    this is the solution what I need and works fine, Thanks jammindice!

    but I have a little problem:

    there exists two ways edit the descriptions:

    1 - with the edit button ( this works fine)

    2- directly edit in the general view (here works not)
    • CommentAuthorjammindice
    • CommentTimeAug 24th 2007
     
    i get the edit button way in the admin under manage, but where is this general view? how do i get there?
    • CommentAuthorenrico7
    • CommentTimeAug 24th 2007
     
    I mean this:

    in Admin click: Manage -> any Collection -> any Album

    now you see all photos listed in this Album with :

    Thumb - Filename - Caption - Description - Allow comments - Actions

    If you now click any description directly you can edit directly (but the description must have already a text otherwise you can not edit directly)

    and here work the line break not
    • CommentAuthorenrico7
    • CommentTimeAug 24th 2007 edited
     
    I must say this is not very important, you can ignore my post.
    • CommentAuthorknotty
    • CommentTimeAug 24th 2007
     
    Thank you very much jammindice, it works great now.

    knotty
    • CommentAuthorjammindice
    • CommentTimeAug 24th 2007
     
    you know i didn't even know you could do that... kinda cool, and you can do it on ones with no description either. it doesn't look too easy though to make it show up the same there.