Page 1 of 1
Image Title
Posted: 25 Jan 2010, 20:32
by webbymaster
Hi Jan,
by uploading an image the image title is set to lowercase. where can i change this? Iam searching in the code but i dont find the correct point.
Thank you very much.
Kai
Re: Image Title
Posted: 25 Jan 2010, 21:45
by Jan
Hi, check the PhocaGalleryFile class and the getTitleFromFile method (in libraries folder of Phoca Gallery)
Jan
Re: Image Title
Posted: 26 Jan 2010, 10:29
by webbymaster
hm..
it seems to be in the upload-process of the images. All uploaded pictures are in lowercase. i dont find the correct line in the code.
Edit:
I use the function for upload multiple images. all images are convert to lowercase. Search the code for 'strtolower' results only 'fileupload.php'. If I change this, nothing happen. Have you an idea?
Danke
Kai
Re: Image Title
Posted: 26 Jan 2010, 22:54
by webbymaster
i solved this by myself:
in file: administrator/components/com_phocagallery/controllers/phocagalleryu.php
search for these string:
$filepath = JPath::clean($path->image_abs.$folder.DS.strtolower($file['name']));
replace with
$filepath = JPath::clean($path->image_abs.$folder.DS.$file['name']);
an é voila

Solved

Re: Image Title
Posted: 31 Jan 2010, 22:07
by Jan
Great to hear it, Jan
Re: Image Title
Posted: 03 Jul 2011, 12:59
by sevensisters
hello I dont find the line,
version 2.80
who can help me
thank you