Image Title

Phoca Gallery - image gallery extension
webbymaster
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Jan 2010, 21:28

Image Title

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Image Title

Post by Jan »

Hi, check the PhocaGalleryFile class and the getTitleFromFile method (in libraries folder of Phoca Gallery)

Jan
If you find Phoca extensions useful, please support the project
webbymaster
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Jan 2010, 21:28

Re: Image Title

Post 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. :x

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
webbymaster
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 02 Jan 2010, 21:28

Re: Image Title

Post 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 :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Image Title

Post by Jan »

Great to hear it, Jan
If you find Phoca extensions useful, please support the project
sevensisters
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 03 Jul 2011, 12:52

Re: Image Title

Post by sevensisters »

hello I dont find the line,

version 2.80

who can help me

thank you
Post Reply