Breadcrumbs

Home / Support Center / Tutorials, Guides & FAQs / DJ-Classifieds tutorials and guides / How to select path for storing advert images

Top Menu

Content

How to select path for storing advert images
Thursday, 15 March 2018 13:17

New parameters in images sections allow setting paths where uploaded DJ-Classifieds images will be stored. You can set paths for adverts, categories and profiles images.

 

paths_for_images

From the 3.7.2 version uploaded images are split to different subfolders to avoid the problem with reaching a maximum number of files per directory. New folder is generated for every 1000 items. 

For example if path for advert is 

/images/djclassifieds/items/

then images for advert with id 215 will be stored in

/images/djclassifieds/items/0/

for advert with id 1230

/images/djclassifieds/items/1/

for advert with id 2130

/images/djclassifieds/items/2/

For profiles avatars and categories icons the same mechanism is implemented.

Changing path won't migrate already stored images, it will take effect only on newly uploaded images.

To move previoustly uploaded images to new directory, please 

  • move via some ftp client files from old directory to new one
  • Go to phpMyAdmin and find #__djcf_images table

modify_path

  • Modify path column for suitable type of advert.

For example if you want to move advert images to folder '/images/djclassifieds/items/' then run query

"UPDATE #__djcf_images SET path = '/images/djclassifieds/items/' WHERE type = 'item';"


Found this article interesting? Subscribe for more.
Subscribe to the Telegram bot / Subscribe to the Messenger Bot
Or share this article with your friends.

 
 
User Rating:  (0)
PoorBest
 

Buy

DJ-Classifieds

Ultimate classified ads solution for Joomla.

Learn more

Footer Menu