Not signed in (Sign In)

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

    • CommentAuthornatebot
    • CommentTimeJun 23rd 2007
     
    Hi Dylan,

    This might be getting to you to late, but yes, there's two steps to take.
    1. update your database tables by first exporting the tables with picture names to csv. Do search and replace on the data. then update the table with the updated csv.
    2. assuming your images are on a unix server, run a unix command that replaces the "_" for a "-"

    sorry I don't have time to write #2's command out -- but at least it is possible.
    • CommentAuthordime
    • CommentTimeJul 3rd 2007
     
    Probably it's too late, but there is simpler way of doing this.

    In Plogger 2.1 in file plog-functions.php find this lines:
    // sanitize filename by replacing international characters with underscores
    function sanitize_filename($str)
    {
    // allow only alfanumeric characters, hyphen, [, ], dot and apostrophe in file names
    // the rest will be replaced
    return preg_replace("/[^\w|\.|'|\-|\[|\]]/","_",$str);
    }


    and replace this "_" with "-" .

    I found this line in new Plogger3, but didn't test it because I couldn't install this Plogger, but asume that 'll work.
    • CommentAuthormousel
    • CommentTimeMar 5th 2009 edited
     
    Hi, I made the modification above but still my page is displaying like this:

    http://www.defend.net/gallery/martial_arts_gallery/

    Instead of this which is what I want:

    http://www.defend.net/gallery/martial-arts-gallery/

    Anyone know how I can change that?

    Thanks,

    Tim
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 5th 2009
     
    mousel,

    With the next release of Plogger, this will be automatically be updated on all your previous folder names, etc.