Description: This hack will display the attached image in the body of the post, provided that the attachment contains the correct extensions (jpg,gif,png). The Photo will appear below the body of the message. It will also be constrained to a maximum width that you define, to avoid large images being posted and messing up your layout. There is also a config switch to disable inline photo viewing for unregistered visitors.
Version 3.1 - fixes a bug where the on/off for anonymous users was not working correctly.
Working Under: UBB.Threads 6.2-6.3
Mod Status: Finished
Any pre-requisites: none
Author(s): JustDave, ExcelsiorDDZ, JoshPet
Date: 04/27/03
Credits: JoshPet suggested and JustDave developed for version 5. ExcelsiorDDZ modified for version 6. JoshPet revised instructions for version 6.1 and 6.2. JoshPet added the image width constraint ability. JoshPet added the switch for anon viewers. Many others have worked on variations of this over time.
Files Altered: showflat.php, showthreaded.php
New Files: none
Database Altered: none
Info/Instructions:Version 2 adds an option to constrain the width of the attachment thus protecting your layout. Version 3 adds a config switch to hide inline images from unregistered users and save your bandwidth.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.