bitox
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Supersized] Add image's target link to the captionOk no need, thanks. You can add basic HTML in the image caption since WP 3.4
YAY!Forum: Fixing WordPress
In reply to: Uploaded image with accents in name, image don't show in Safari 6Thanks for the hint!
It worked for me with the following code in functions.php
function sanitize_filename_on_upload($filename) {
$ext = end(explode('.',$filename));
// Replace all weird characters
$sanitized = preg_replace('/[^a-zA-Z0-9-_.]/','', substr($filename, 0, -(strlen($ext)+1)));
// Replace dots inside filename
$sanitized = str_replace('.','-', $sanitized);
return strtolower($sanitized.'.'.$ext);
}add_filter('sanitize_file_name', 'sanitize_filename_on_upload', 10);
Cheers!
Forum: Fixing WordPress
In reply to: Uploaded image with accents in name, image don't show in Safari 6Okay, so your advice is not to use special characters in the file names. Why wouldn’t wordpress media uploader rename the special characters? BTW, they’re french 🙂
Thanks,Super, thanks prb-psa!
(3) Save format can be HTML, no problem.Forum: Plugins
In reply to: [Plugin: Portfolio Slideshow] No transition (fade) between imagesBy the way, I’ve also tried with the Twenty Ten and Twenty Eleven Themes : the transition won’t show. Image changes alright, but it’s hard, no effect.