This is an extremely simple hack that allows you to place an ImageShack uploader in your forums. That way, if you don't have the attachments mod installed, you don't have it 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.
Credits:
As always, all credits go to the YaBB development team for putting together such a great piece of software. In addition, all credits go to the BoardMod development team for the same reasons.
For this particular mod, credit needs to go to the ImageShack team for making it so easy to implement this mod. The information I used to create this mod can be found at:
http://www.imageshack.us/syndicate.phpNote:This is a mod I created for YaBB 2, but someone requested that I port it to YaBB 1.x. I installed a test copy of YaBB 1.3.2 on my home computer and installed the mod on it. It appears to work fine, but I have not tested it extensively, nor have I tried it on a modded board.
Please test this and let me know how it works out.
If you need a translation, you will need to edit the mod yourself. Here are some translations that have already been done. First, you will need to open the mod in the mod editor, or in a txt editor. You will want to find the step that changes english.lng, and change "english.lng" to your language file. Then, in the "Search and Add After" step, you will want to change the "Search For" from
$txt{'800'} = "Other";
to the appropriate $txt{'800'} from your own language file. Then, you will want to replace the entire "Add After" area.
If you are translating to German, you can replace it with:
## ImageShack Uploader Text ##
$imageshack_txt{'1'} = "Zum Aufruf des ImageShack-Formulars wird ein iframe-fähiger Browser benötigt";
$imageshack_txt{'2'} = "Bild bei ImageShack hochladen";
$imageshack_txt{'3'} = "ImageShack-Einstellungen bearbeiten";
$imageshack_txt{'4'} = "Dieses Formular bietet verschiedene Einstellmöglichkeiten für den ImageShack-Uploader. Es können die Hintergrundfarbe, die Textfarbe, die Breite und die Höhe des iFrames verändert werden.";
$imageshack_txt{'5'} = "Dateigröße:";
$imageshack_txt{'6'} = "Textfarbe:";
$imageshack_txt{'7'} = "Breite (in Pixel):";
$imageshack_txt{'8'} = "Höhe (in Pixel):";
$imageshack_txt{'9'} = "ImageShack-Einstellungen speichern";
$imageshack_txt{'10'} = "Bitte nur Hexdezimale Zahlen ohne "#" . Alles andere funtkioniert nicht.";
## ImageShack Uploader Text ##
If you are translating to Spanish, you will want to replace that section with:
## ImageShack Uploader Text ##
$imageshack_txt{'1'} = "Debes tener un navegador compatible con iframes para poder ver el formulario de ImageShack.us";
$imageshack_txt{'2'} = "Subir una imagen a ImageShack";
$imageshack_txt{'3'} = "Edita las configuraciones de ImageShack Uploader";
$imageshack_txt{'4'} = "Este formulario te permitirá editar las configuraciones para el ImageShack Uploader. Puedes cambiar el color de fondo, el color del texto, y el tamaño del iFrame.";
$imageshack_txt{'5'} = "Tamaño del casillero:";
$imageshack_txt{'6'} = "Color del texto:";
$imageshack_txt{'7'} = "Ancho (en pixels):";
$imageshack_txt{'8'} = "Alto (en pixels):";
$imageshack_txt{'9'} = "Guardar configuración de ImageShack";
$imageshack_txt{'10'} = "Por favor incluir un número hexadecimal solamente. No incluír el símbolo "#", ya que convertirá a todas las variables en vacías. No poner el nombre del color, porque no va a funcionar.";
## ImageShack Uploader Text ##
Changelog:
From 0.1
Added a regex to remove any non-numeric characters from the variables stored by this mod.