Mod Description This is an extremely simple hack that allows you to place an ImageShack uploader in your forums. That way, if you don't have attachments enabled, or you want to conserve server space, you can allow your visitors to upload images to ImageShack, and then automatically receive the code to put in their posts.
Installing This Mod For The First Time Either use BoardMod to automatically install this mod on your forums or install this mod manually by following the directions below. Once you have applied this mod to your source files, please upload the following files:
Modified by mod: 1. cgi-bin/yabb2/Sources/Post.pl 2. cgi-bin/yabb2/Sources/Load.pl 3. cgi-bin/yabb2/Admin/AdminSubList.pl 4. cgi-bin/yabb2/Admin/ModList.pl 5. cgi-bin/yabb2/AdminIndex.pl
Included in zip package: 1. cgi-bin/yabb2/Admin/ImageShack.pl 2. cgi-bin/yabb2/Languages/*.*
Upgrading From Prior Versions Un-install your previous version of this mod manually or with BoardMod. Upload cgi-bin/yabb2/ImageShack_Converter.pl and chmod it to 755 or 777. Navigate your browser to cgi-bin/yabb2/ImageShack_Converter.pl. If you get a success message, then install the new version of this mod manually or with BoardMod. If you get an error message, please follow the instructions on that page, then install the new version of this mod manually or with BoardMod. Delete ImageShack_Converter.pl from your server. Upload the following files:
Modified again by the new version of this mod: 1. cgi-bin/yabb2/Sources/Post.pl 2. cgi-bin/yabb2/Sources/Load.pl 3. cgi-bin/yabb2/Admin/AdminSubList.pl 4. cgi-bin/yabb2/Admin/ModList.pl 5. cgi-bin/yabb2/AdminIndex.pl
Included in zip package: 1. cgi-bin/yabb2/Admin/ImageShack.pl 2. cgi-bin/yabb2/Languages/*.*
Usage Instructions Within the Admin Center, click on ImageShack Settings. Then, set any and/or all of the following options:
* Textbox size * iFrame height * iFrame width * Default text color (if a color is not set for the template the user has chosen) * Disable iFrame on the whole forum (in case ImageShack experiences a prolonged server outage) * Enable ImageShack Uploader on individual boards (the Uploader will not show on any boards unless there is a checkmark next to them in your Admin Center) * Set the text color for individual templates * Choose which syndication image appears next to your Uploader iFrame.
When the Uploader is enabled on a certain board, your users can simply click the "Browse" button to browse their harddrive for an image. Then, they can click the "Upload" button, and a new window will open, where they will see the image they uploaded, along with a few different choices of code to copy and paste into their message, in order to show the image they just uploaded.
Changelog: From version 1.0 final Added functionality to allow you to enable the ImageShack iFrame on individual boards. Added functionality to sepcify different text colors for each individual template. Added functionality to specify which syndication image to show next to the iFrame. From version 0.1f Added an option to disable the ImageShack iFrame. From version 0.1e Made a minor formatting change to make this mod compatible with YaBB 2.0 From version 0.1d Fixed some weird corruption problems with German language file. From version 0.1c Added a regex to remove any non-numeric characters from the variables stored by this mod. Fixed a few spots in German translation (thanks Rebus) From version 0.1b Added German translation of ImageShack.lng file (thanks t3rrabug) Added Spanish translation (thanks Gabriel Finkelstein) Fixed input size issue (it turns out - if you place a # symbol in front of the text color variable, as you normally would in HTML, it renders all of the settings for the iframe useless. In other words, #ffffff will make none of the customization work. Instead, you need to type simply ffffff) Added new warning about text color input From version 0.1 Removed ModList.pl (which was placed in the original package by mistake). Fixed the issue that caused the wrong mod settings menu item to be highlighted. Also - I am looking for new translations. I have added 5 new lines to the existing language files that I need translated, and I am always looking for translations into other languages. The language lines I added are 6a, 12, 12a, 13 and 14. Currently they are written in English within the Spanish and German language files, simply because I didn't even want to attempt to butcher a translation of the strings.
Enjoy!
|