Welcome, Guest
Username: Password: Remember me

TOPIC: New Default Path for IMAGES

New Default Path for IMAGES 24 Feb 2014 14:53 #12238

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 278
  • Thank you received: 35
  • Karma: 22
Hi Cookers,

Project : J! Breeding V3 for Joomla! 3.2

I ve forked the helper in order to save my picts in 3 differents folder. the purpose :is to store pictures of each table/form in his own folder..
So I've changed this :

administrator/components/com_jbreeding/helpers/helper.php
// 'DIR_PEDIGREES_PHOTO'      => $config->get("upload_dir_pedigrees_photo", "[COM_SITE]" .DS. "files" .DS. "pedigrees_photo"),
// 'DIR_PORTEES_PHOTO_CHIOTS' => $config->get("upload_dir_portees_photo_chiots", "[COM_SITE]" .DS. "files" .DS. "portees_photo_chiots"),
// 'DIR_ACTUALITES_PHOTO'     => $config->get("upload_dir_actualites_photo", "[COM_SITE]" .DS. "files" .DS. "actualites_photo"),

'DIR_PEDIGREES_PHOTO'        => $config->get("upload_dir_pedigrees_photo", "[IMAGES]" .DS. "pedigrees_photo"),
'DIR_PORTEES_PHOTO_CHIOTS'   => $config->get("upload_dir_portees_photo_chiots", "[IMAGES]" .DS. "portees_photos"),
'DIR_ACTUALITES_PHOTO'       => $config->get("upload_dir_actualites_photo", "[IMAGES]" .DS. "actualites_photo"),

...

But from a fresh install, it doesn't not create the folder in the 'images' path, and doesn't save pict too.
Is there any other file or class to modify ? Thanks for help.
Last Edit: 24 Feb 2014 14:55 by liubov.
The administrator has disabled public write access.

New Default Path for IMAGES 25 Feb 2014 18:41 #12251

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 278
  • Thank you received: 35
  • Karma: 22
[ Self_solved ]

I didn't know that we could write the desired path as Params.
So I set :
[IMAGES]/pedigrees_photo, ... and it works fine !
The administrator has disabled public write access.

New Default Path for IMAGES 26 Feb 2014 21:58 #12255

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
There is no problem, you can do it both ways.

It was not appling your changes because you are changing the default values.
So once you have edited the config, the last current config is overrining the default value.

only that.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.118 seconds

Get Started