Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Photo Names - do not show 2332-long-ugly-number.jpg

9 years 10 months ago
Licenses:
JomSocial Expired

On the photo gallery pages if a user uploads an image with a horrible long string like 2332longuglynumber.jpg, is it possible to not show this or say "undefined" if they haven't named it yet? If so. What files do I need to edit?

See attached. Thank you in advance.

Attachments:
9 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Ryan,

I am sorry, to achive this is very tricky, we cant help you too much because that is default behavior, which the image name will be used as a image caption by default.

To hack the upload photo function for this one..

I give you the pointer, I dont know will work or not.. open this file components/com_community/tables/photo.php,

if($this->id==''){
$this->caption = '';
}

after this code
if (!$this->check()) {
            return false;
        }


thank you

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW