Page 1 of 1

Change image title - Facebook upload

Posted: 20 Sep 2012, 21:29
by Matezek
Hi all,

I would like to change image name of Facebook uploads,

Actually, I've "Image 001" (etc), but I want have "Category name 001"...

Someone know how I can solve that ?

Thanks !
CU

Re: Change image title - Facebook upload

Posted: 21 Sep 2012, 15:50
by Matezek
So, after few hour, I've found solution ! :P

I don't thing it's the better solution, but it's work ! 8)

For J2.5, PG v3.2.1 :
Go to administrator/components/com_phocagallery/models/
Open phocagalleryc.php, at line 488 (function loadExtImagesFb()) :
Default : $noImageTitle = 'Image ' . str_pad($i + 1, 3 ,'0', STR_PAD_LEFT);

Change to : $noImageTitle = PhocaGalleryText::wordDelete($albumName, 17, '...').' <br/>Photo ' . str_pad($i + 1, 3 ,'0', STR_PAD_LEFT);
The value "17" it's for truncate name's Facebook album. You can give all value you want.

Alternative : $noImageTitle = $albumName.' - Photo ' . str_pad($i + 1, 3 ,'0', STR_PAD_LEFT);

Before :
Image
After :
Image

Hope that can help anyone else !

See you !

Re: Change image title - Facebook upload

Posted: 25 Sep 2012, 10:49
by Jan
Hi, thank you for the information.

Jan