How to select path for storing advert images
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.
The uploaded images are split to different subfolders to avoid the problem with reaching a maximum number of files per directory.
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 previously uploaded images to a new directory
- move via some FTP client files from the old directory to the new one
- Go to phpMyAdmin and find #__djcf_images table
- Modify the path column for the suitable type of advert.
For example, if you want to move advert images to folder ' /images/DJ classifieds/items/ ' then run the query
"UPDATE #__djcf_images SET path = '/images/djclassifieds/items/' WHERE type = 'item';"