ImageShack Uploader 2.0bThis is the version for YaBB 2.2Mod DescriptionThis 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 TimeEither 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/*.*
3. cgi-bin/yabb2/Variables/ImageShack.txt
4. public_html/yabbfiles/ModImages/ImageShack/*.*
Upgrading From Versions Earlier Than 2.0aUn-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 InstructionsWithin 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.
ChangelogFrom version 2.0a
- Ported this mod to YaBB 2.2
- Fixed a silly bug that caused an error when saving your settings if you had a board or template name with non-alphanumeric characters
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.
Uploaded fixed version - 11/15/2007 23:09 GMT