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 to have longer album descriptions so this is what I did.

    1. Log in to your accounts phpmyAdmin. It's usually something like www.yoursite.com/phpymyadmin.
    2. Find your plogger database. I called mine plog. You might only have one database.
    3. Open the table called plogger albums. This is where your data gets saved.
    4. Select "description" and then click the icon "Change". Be careful what you do here - this is plogger's engine and if you change the wrong thing your plogger installation can completely fail. You might want to export a copy of your table first b clicking on the export tab and saving the table as a file.
    5. Right now this field is limited to 255 characters. We need to make that bigger. I don't remember for sure but I think VarChar (this is a name for the kind of information this field stores) might be limited to 255 characters anyway, so I changed VarChar to MediumText and left Length/Values Empty.

    This process would be similar for Descriptions for Collections and individual Images. That was all it took to make it work. I don't see any other limits on the length of the Album Description except the limit the database was causing.

    Now I just need to figure out how to add html inside the description so that it stays intact when put into the database and when it is pulled out of the database.
    •  
      CommentAuthormike
    • CommentTimeJul 25th 2007
     
    Check out the functions that are pulling the captions and descriptions, I think they are called plogger_get_picture_description() and plogger_get_picture_caption(). All you really need to do is remove the htmlspecialchars() function, which turns all HTML into its ASCII entity so that it is displayed on the screen instead of rendered by the browser. Here is an example of how to change it...

    Before

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

    After

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