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


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
ImageShack Uploader 2.0b
Nov 15th, 2007 at 2:08am
Print Post  
ImageShack Uploader 2.0b

This is the version for YaBB 2.2

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/*.*
   3. cgi-bin/yabb2/Variables/ImageShack.txt
   4. public_html/yabbfiles/ModImages/ImageShack/*.*

Upgrading From Versions Earlier Than 2.0a

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 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
« Last Edit: Nov 16th, 2007 at 1:09am by Curtiss Grymala »  

ImageShackUploader_2.0b.zip ( 38 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.0b
Reply #1 - Nov 15th, 2007 at 5:26am
Print Post  
Hi
nice to see updates.

First 3 Steps I get errors.

These are in 2.2
&LoadLanguage('FA');

no space before #  Smiley
Code
Select All
# /File Attachment's Browse Box Code 



Step 3 I have this in Load.pl
Code
Select All
	if (${$uid.$user}{'weburl'} && ${$uid.$user}{'weburl'} !~ m~\Ahttp://~ && ${$uid.$user}{'weburl'} !~ m~\Ahttps://~) { ${$uid.$user}{'weburl'} = "http://${$uid.$user}{'weburl'}"; } 

  

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 2.0b
Reply #2 - Nov 15th, 2007 at 1:56pm
Print Post  
That's weird.  I thought I uploaded the corrected version.   Lips Sealed

I'll check when I get home this evening.
  

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


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #3 - Nov 16th, 2007 at 1:10am
Print Post  
I uploaded what should be the correct version.  Sorry about the mix up.  Hopefully this one will work for you.
  

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.0b
Reply #4 - Nov 16th, 2007 at 4:53am
Print Post  
Hi
thnx for correction. this mod works great.
  

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


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #5 - Nov 18th, 2007 at 7:09pm
Print Post  
Hi,

I install it without Problems and it
runs without Problems. Thank you!

Greetings
Mick
  
Back to top
WWW  
IP Logged
 
jfk
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 44
Joined: Oct 14th, 2007
Re: ImageShack Uploader 2.0b
Reply #6 - Dec 7th, 2007 at 4:23pm
Print Post  
Hi

Does this only work with ImageShack, or other image hosting sites such as Photobucket (hopefully)?

Thanks

JFK
  

My YaBB forum can be found at www.Rabbiters.co.uk
Back to top
 
IP Logged
 
mattcch
New Member
*
Offline


Web

Posts: 45
Joined: Jun 8th, 2007
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #7 - Jan 5th, 2008 at 11:24am
Print Post  
Great and work ok smoothly. Great thanks Smiley
"Start new topic " & "Quote" are normal.Awesome.  Grin Smiley


« Last Edit: Jan 6th, 2008 at 3:46am by mattcch »  
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.0b
Reply #8 - Jan 9th, 2008 at 12:59am
Print Post  
jfk wrote on Dec 7th, 2007 at 4:23pm:
Hi

Does this only work with ImageShack, or other image hosting sites such as Photobucket (hopefully)?

Thanks

JFK


@jfk - This only works with ImageShack, as the mod is based completely on ImageShack's syndication system.

If another photo sharing site comes up with a helpful little widget like ImageShack's, it wouldn't take much to make it work with YaBB.
  

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
 
Hrki
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 18
Location: Zagreb
Joined: Mar 13th, 2007
Re: ImageShack Uploader 2.0b
Reply #9 - Jan 27th, 2008 at 8:22am
Print Post  
I suppose that link "Download imageshack toolbar" cannot be removed?
Btw nice work  Thumbs Upsup:
  

Don't argue with fool, people may not see the difference!
Back to top
 
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #10 - Mar 6th, 2008 at 9:39am
Print Post  
Works great with 2.2.1 too Smiley

Thanks!
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #11 - Mar 10th, 2008 at 1:32pm
Print Post  
Hi ...

it is possible to change the text color

Quote:
ImageShack Toolbar!


from blue to white (#FFFFFF) ?

  

Greeting ThM
Back to top
 
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #12 - Mar 15th, 2008 at 4:12am
Print Post  
This Mod works great on my 2.2.1 forum

Thanks  Grin
  

Back to top
WWW  
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #13 - Jun 8th, 2008 at 10:03am
Print Post  
Works well in YaBB 2.2.2
  

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


I love YaBB 2.1

Posts: 130
Location: North East Of Eangland
Joined: Feb 19th, 2006
Gender: Male
Re: ImageShack Uploader 2.0b
Reply #14 - Jan 12th, 2009 at 8:02pm
Print Post  
Will this work with 2.3.1 ??
  


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