Hello Couchies,
When auto-create Gallery during multiple uploading, the titles of pages are not beautiful. For example, if the image's name "men-At-work-cargo.jpg" the title will be "men_at_work_cargo".
This mechanizm can be easily changed in the file "uploader.php", for my needs it's like this:
insert after
(line 230)
this code:
So the name after aploading will be "Men At Work Cargo". Maybe it will be useful for somebody.
When auto-create Gallery during multiple uploading, the titles of pages are not beautiful. For example, if the image's name "men-At-work-cargo.jpg" the title will be "men_at_work_cargo".
This mechanizm can be easily changed in the file "uploader.php", for my needs it's like this:
insert after
- Code: Select all
$f = &$pg->fields[0]; // title
(line 230)
this code:
- Code: Select all
$page_title = str_replace('_', ' ', $page_title);
$page_title = ucwords(strtolower($page_title));
So the name after aploading will be "Men At Work Cargo". Maybe it will be useful for somebody.