Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) ImageShack Uploader 0.1b for YaBB 1.3.2 (Read 7452 times)
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
ImageShack Uploader 0.1b for YaBB 1.3.2
Jun 21st, 2005 at 4:35am
Print Post  
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.php

Note:
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
Code
Select All
$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:
Code
Select All
## 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:
Code
Select All
## 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.
« Last Edit: Jun 25th, 2005 at 2:53pm by Curtiss Grymala »  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
DelaMn
Full Member
***
Offline


I love boardmod.org

Posts: 136
Joined: Nov 13th, 2004
Re: ImageShack Uploader 0.1 for YaBB 1.3.2
Reply #1 - Jun 21st, 2005 at 3:11pm
Print Post  
Quote:
This is a mod I created for YaBB 2, but someone requested that I port it to YaBB 1.x.  (..)
Please test this and let me know how it works out.


I´ll try it on my 1.3.1 board  Wink
  
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: ImageShack Uploader 0.1 for YaBB 1.3.2
Reply #2 - Jun 22nd, 2005 at 12:08pm
Print Post  
Wow, this is a very useful mod! We often had members who tried to link to images directly on their hard drives - I hope now that belongs to the past  Grin

Works fine on my SP 1.3.1 by the way, had to fix 2 steps but that's only coz of my many installed mods.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 0.1 for YaBB 1.3.2
Reply #3 - Jun 22nd, 2005 at 5:47pm
Print Post  
Quote:
Wow, this is a very useful mod! We often had members who tried to link to images directly on their hard drives - I hope now that belongs to the past  Grin


Thanks.  I was kind of hoping this would help for people like that.  Hopefully it will curb the following problems that are rampant in all of our communities:

1)  People trying to link to images on their own harddrives
2)  People illegally hotlinking images (bandwidth theft)
3)  People making four or five posts in a row, just because they can only attach one image to each post with the attachments mod.

Quote:
Works fine on my SP 1.3.1 by the way, had to fix 2 steps but that's only coz of my many installed mods.


Glad to hear that.  I kind of figured that modded boards would probably need to make one or two adjustments (especially anyone that has the gmod or amm mods installed, since they will have to change all of the "is_admin" instances to something like "is_admin_or_gmod").

Thanks for the feedback.

I'm getting ready to release a very minor update to this (it's on my harddrive at home, so I can't upload it right now).  I figured out how to add in a regex to remove everything except for numbers from the variables that are stored (that way, even if people do accidentally type in the number sign, it will be removed before the variable is stored in the file).
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
DelaMn
Full Member
***
Offline


I love boardmod.org

Posts: 136
Joined: Nov 13th, 2004
Re: ImageShack Uploader 0.1 for YaBB 1.3.2
Reply #4 - Jun 24th, 2005 at 11:19am
Print Post  
Should I wait for the patch / update or can install current version on 1.3.1 ?

(because od my english y even dont understand what the patcj is for  Undecided)
  
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: ImageShack Uploader 0.1 for YaBB 1.3.2
Reply #5 - Jun 24th, 2005 at 11:41am
Print Post  
You can install the actual version, the patch does only remove the # from the color code if someone accidentally enters one.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #6 - Jun 25th, 2005 at 2:55pm
Print Post  
The new version has been uploaded.  I've also added the two translations I have into the first post, so that it will be easier for people to put their own translations in.

I think I'm getting ready to sumbit this mod to the database, so this topic might be closed or moved to the final mods forum shortly.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #7 - Jun 25th, 2005 at 5:00pm
Print Post  
Yes, we've testet it some times now and it works perfect, I also think it can be added to the database Wink .
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
DelaMn
Full Member
***
Offline


I love boardmod.org

Posts: 136
Joined: Nov 13th, 2004
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #8 - Jun 26th, 2005 at 6:58am
Print Post  
It works (installed automatically)  Roll Eyes
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #9 - Jul 22nd, 2005 at 8:26am
Print Post  
Hi Curtiss
when do you want to do this feature?

Quote:
1)  I would like to allow you to set which boards use this feature and which boards don't (similar to the way the Attachments are set up), but I have a feeling that's way out of my league.


Because Xonder have make this for yabbserver 1.4
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #10 - Jul 24th, 2005 at 1:37pm
Print Post  
I haven't even really looked at it since this mod went final.  I might have time tomorrow night to take a look at Xonder's mod to see how he got it done.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #11 - Aug 10th, 2005 at 1:55pm
Print Post  
Hm, did ImageShack change their upload form? For some days now the Iframe is too small (had to increase it from 70 to 80 pixels height) and the "Host it!" button has changed, too - perhaps now the color for this button can also be customized?
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #12 - Aug 11th, 2005 at 12:40am
Print Post  
Hmm.  If they did change their code, they didn't update their syndication page, yet.  The code from their syndication page is still:
Code
Select All
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70">Update your browser for ImageShack.us!</iframe> 



That's the same code that's used in the mod.

Very strange.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
bitterman
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 49
Joined: Feb 3rd, 2005
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #13 - Sep 4th, 2005 at 5:34pm
Print Post  
MOD works perfect! It was the MOD I always waited for Smiley
Thank You!

Greetings
Bitterman
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: ImageShack Uploader 0.1b for YaBB 1.3.2
Reply #14 - Sep 8th, 2005 at 5:23am
Print Post  
Hi Curtiss
how far are you with this mod for setting in MBO for each Boards?  8)
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint