Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) ImageShack Uploader 2.0a for YaBB 2.x (Read 17904 times)
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
ImageShack Uploader 2.0a for YaBB 2.x
Jan 29th, 2006 at 3:34am
Print Post  
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!
  

ImageShackUploader_2.0a.zip ( 36 KB | Downloads )

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
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #1 - Jan 29th, 2006 at 9:34am
Print Post  
Hi Curtiss
I have installed it and it works great. I have sub boards installed too, Can you make for this too, if you have time.
  

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


Publisher - YaBB Toolbar

Posts: 569
Location: Los Angeles
Joined: Apr 14th, 2004
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #2 - Jan 29th, 2006 at 12:45pm
Print Post  
Very cool Curtiss, just downloaded this and will install asap. Smiley
  


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 2.0a for YaBB 2.x
Reply #3 - Jan 29th, 2006 at 10:31pm
Print Post  
Quote:
Hi Curtiss
I have installed it and it works great. I have sub boards installed too, Can you make for this too, if you have time.


I'll see what I can do, but it'll probably be a while before I get to that.
  

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
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #4 - Feb 6th, 2006 at 8:44am
Print Post  
Got a error:

If i click on "ImageShak Settings" i get the error:

Untrapped Error:
./Admin/ImageShack.pl did not return a true value at AdminIndex.pl line 118.

Larian
  
Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #5 - Feb 6th, 2006 at 10:20am
Print Post  
Did you upload ImageShack.pl to your cgi-bin/yabb2/Admin directory?
  

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
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #6 - Feb 6th, 2006 at 10:50am
Print Post  
Yes i had, but i found the error:

In the package there is no ImageShack.txt, for the Variables-directory, so your mod has a problem if it doesn't exist. I used the Converter to create a new one (i never had installed a version bevor) and now it works!

Larian
  
Back to top
 
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #7 - Feb 6th, 2006 at 6:33pm
Print Post  
Maybe you can add a ImageShack-Upload into the profil? So the users could upload their userpic?

Lari
  
Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #8 - Feb 6th, 2006 at 8:13pm
Print Post  
Larian wrote on Feb 6th, 2006 at 10:50am:
Yes i had, but i found the error:

In the package there is no ImageShack.txt, for the Variables-directory, so your mod has a problem if it doesn't exist. I used the Converter to create a new one (i never had installed a version bevor) and now it works!

Larian


That's weird.  It's not supposed to cause an error if the ImageShack.txt is missing.  I'll have to look at that.
  

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
 
Outumuro
God Member
*****
Offline


Publisher - YaBB Toolbar

Posts: 569
Location: Los Angeles
Joined: Apr 14th, 2004
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #9 - Feb 7th, 2006 at 11:09am
Print Post  
Nice work Curtiss.  Works great and able to choose ImageShack pics. Grin
  


Back to top
WWW  
IP Logged
 
DIDI
Full Member
***
Offline


Only dead fish swim with
the river!

Posts: 129
Location: World metropolis Opladen
Joined: Jun 4th, 2003
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #10 - Feb 10th, 2006 at 12:57pm
Print Post  
Quote:
Bareword found where operator expected at ./Variables/ImageShack.txt line 1, near "55adeb"


I have installed, but ImageShack Update form Finalversion:
YaMMS 4 YaBB2 - 1.1
Age Lock - 0.2
Ban / Mod Functions YaBB2 - 1.2
Countdown Mod YaBB2.x Beta1 - beta 1
Event Calendar YaBB2.x V1.1 - 1.1
Gender Lock - 0.8
Greet Plus - 1.2
ImageShack Uploader - 2.0a
  


Envy must earn oneself one - one gets compassion in vain!
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 2.0a for YaBB 2.x
Reply #11 - Feb 10th, 2006 at 1:00pm
Print Post  
Hi Didi
try start ImageShack_Converter.pl  Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #12 - Feb 11th, 2006 at 7:00pm
Print Post  
I have installed imageshack after ugrading YaBB CVS today and I discovered that not al of my boardsettings are saved (dunno if it was there though)

some get saved some don't If I fil in a "1" by hand in the variables txt file I don't see the checkbox checked either, and If I the resave without doin anything they get cleared out, if I resave with empty boxes checked they are written to the var file but the checkbox does not show checked state.

If you need to you can get a temp. admin login to see for yourself.
  
Back to top
WWW  
IP Logged
 
DIDI
Full Member
***
Offline


Only dead fish swim with
the river!

Posts: 129
Location: World metropolis Opladen
Joined: Jun 4th, 2003
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #13 - Feb 12th, 2006 at 4:21am
Print Post  
Quote:
Hi Didi
try start ImageShack_Converter.pl  Wink

THX Jet Li
  


Envy must earn oneself one - one gets compassion in vain!
Back to top
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 2.0a for YaBB 2.x
Reply #14 - Feb 12th, 2006 at 2:35pm
Print Post  
jans wrote on Feb 11th, 2006 at 7:00pm:
I have installed imageshack after ugrading YaBB CVS today and I discovered that not al of my boardsettings are saved (dunno if it was there though)

some get saved some don't If I fil in a "1" by hand in the variables txt file I don't see the checkbox checked either, and If I the resave without doin anything they get cleared out, if I resave with empty boxes checked they are written to the var file but the checkbox does not show checked state.

If you need to you can get a temp. admin login to see for yourself.


I don't know when I'll have time to look at that, but I'll let you know when I can.
  

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
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint