Hello Guys,
Victor is right, it is enough hard task to add one more resize picture dimension to upload process and apply it to your layout,
but I will try to guide you have to add one more image version and save new name to database, it will be your headache how to add it to layout:
NOTE: this instruction suits the Flynax 4.0.1 and 4.1.0 versions only.
1. Open the file: /libs/upload/upload.php and find this code:
Code:
Only registered members can view the code.
as you can see there are two current image versions, thumbnail and large image.
2. let's add our new image version like this:
Code:
Only registered members can view the code.
I added one more image version by adding one more item to the config array (image_400x300 is our new image version key),
now the system will create one more copy of the uploaded image for us and store it under the same directory with name we specified.
All looks great but we have to add this new copy image name to database, so we have to do:
3. Go to your Admin Panel >> Database and run the following sql query (image_400x300 is our new image version key)
Code:
Only registered members can view the code.
3. find this code in the same file:
Code:
Only registered members can view the code.
and add one more line to the array like this:
Code:
Only registered members can view the code.
Done, now we have one more copy of the image in the file system and name of new image in the database for each listing photo.
If you have an idea what you need this for, then you know what to do next.
John