Not signed in (Sign In)

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

    • CommentAuthorkevin_buzz
    • CommentTimeJul 25th 2007
     
    I needed html in my album descriptions, so this is what I did.
    1. Open plog-functions.php
    2. For a fresh installation, go to line 2174 (or so).
    3. This function is what produces your album description: function plogger_get_album_description().
    4. Change this:

    return htmlspecialchars(SmartStripSlashes($GLOBALS["current_album"]["description"]));

    to this:

    return html_entity_decode(SmartStripSlashes($GLOBALS["current_album"]["description"]));

    5. That's it. Note: html_entity_decode parses and returns html which is the point but be aware that this might create a security hole. Still I don't see how anybody could put malicious code into the Album Description except administrators of the stite. HTML ENTITY info here:
    http://ca3.php.net/manual/en/function.htmlentities.php
    • CommentAuthorMegan
    • CommentTimeAug 15th 2007
     
    Thanks for the tip! To do this for your picture descriptions as well, go to about line 1940 and change this line:

    return htmlspecialchars(SmartStripSlashes($GLOBALS["current_picture"]["description"]));

    to

    return html_entity_decode(SmartStripSlashes($GLOBALS["current_picture"]["description"]));