Big thanks to Magnus for providing a great hack!
The updated vBgarage is a pretty serious rewite of the php code. The only mod
to the templates was to change an occurance of width="175" to width="100".
Change List- added length limit to text fields
- added striping of html and php code from user text input fields
- (strip tags code from php.net and vBulletin)
- file upload type, size, and validity checks by php
- static thumbnail images as resized compressed jpegs (width=100 and height=proportionate)
- Optional Images and thumbnails in filesystem or DB
- images stored in encoded file names to prevent attemts to write illegal or special characters to FS
- GD optimization
- memory optimization
- performance improvement displaying thumbnails
- security additions
- added vbgconfig file (set FS or DB mode and images path if using FS mode)
- new ACP setting to stop full image display to guests
- new phrases for new setting
- installer includes all new additions to DB if starting from scratch
- includes updater in installer script for after vB upgrades
(found the reason this has been necessary and corrected it in the installer and updater)
- includes upgrade from older versions script
- includes converter script to move images from DB to FS and remove images from DB after conversion to FS mode
- Optional watermarking of full size images
- Position watermark on top center or bottom center of full size images
Files Included- vbgarage.php
- vbgconfig.php
- install_vbgarage.php
- convert_vbgarage.php
- vbg_test.txt
- vbgarage_upgrade.php
- vbgarage_readme.txt
Two sites are using this version live and we have tried real hard to stomp any bugs. One site is in FS mode and the other in DB mode.
The installer update, upgrade, and convert utility scripts can be run safely multiple times. The Install option for a fresh install can only be run once.
When running vBGarage 4.0.0 in file system mode, if anything goes wrong, the image is just skipped on the file system side and only database information stored or retrived. This results in no errors being thrown and the only negetive effect being images don't appear. If this occurs, users can report the problem, you can fix it, and they can delete blank images and upload new ones.
Any feedback would be appreciated.
Oh and I forgot to add, the release is being delayed so we can attempt to add multiple cars/garages before doing so.