[BETA] TheImageShack, File & URL

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
phatchopolis
Registered User
Posts: 166
Joined: Mon May 29, 2006 11:40 pm

Post by phatchopolis » Tue Dec 05, 2006 7:33 pm

Screenshot confuses me. It says 3mb file limit but Imageshack has a 1.5mb limit.

User avatar
KtDhc
Registered User
Posts: 52
Joined: Mon Jan 24, 2005 3:24 pm

Post by KtDhc » Tue Dec 05, 2006 10:34 pm

Yeah, it's 1.5 MB as ImageShack says. That information is wrong on the mod.

BuYcKi
Registered User
Posts: 27
Joined: Sat Jul 29, 2006 11:11 pm

Post by BuYcKi » Tue Dec 12, 2006 11:46 am

Now, info is not wrong ..
I checked up on Imageshack ..

In there code it's also 3MB :)
Link wil be fixed today ..

User avatar
OceanMaid
Registered User
Posts: 18
Joined: Fri Aug 25, 2006 3:19 am
Location: California
Contact:

Post by OceanMaid » Wed Dec 20, 2006 8:53 am

Hi. There's a problem with your code. You're missing a period.

templates/subSilver/posting_body.tpl

Instead of this:

Code: Select all

        <!-- begin imageshack mod --> 
        <tr>
        <iframe src="/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="400" height="125"></iframe> 
        </tr> 
        <!-- end imageshack mod --> 
It should be this:

Code: Select all

        <!-- begin imageshack mod --> 
        <tr>
        <iframe src="./iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="400" height="125"></iframe> 
        </tr> 
        <!-- end imageshack mod --> 
If you can't find the period in the above code, look after <iframe src= and before iframe.php.
(n00bie to html coding, website design and forum management)

ValorSolo
Registered User
Posts: 84
Joined: Mon Nov 13, 2006 9:54 am
Contact:

Post by ValorSolo » Thu Dec 21, 2006 5:24 am

@BuYcKi
thanks for the mod , it can't get any easier than that . works great .

@OceanMaid
great catch , fixed the page not found error . thanks .

Electra736
Registered User
Posts: 270
Joined: Fri Aug 11, 2006 4:25 pm

Post by Electra736 » Sat Dec 23, 2006 6:43 am

Hey BuYcKi, can you make me a version where a link shows up instead of the iFrame? When the link is clicked, the window should pop-up (with the exact same information as the iFrame) and when the image is uploaded the window closes and the image url is automatically inserted in [IMG] tags.

I think I've made myself.

Thanks for any help.

Electra736
Registered User
Posts: 270
Joined: Fri Aug 11, 2006 4:25 pm

Post by Electra736 » Sat Dec 30, 2006 2:59 pm

Can anyone else stab such version for me?

BuYcKi
Registered User
Posts: 27
Joined: Sat Jul 29, 2006 11:11 pm

Post by BuYcKi » Wed Feb 21, 2007 5:07 pm

If you still need it,
I can look for it ..

Electra736
Registered User
Posts: 270
Joined: Fri Aug 11, 2006 4:25 pm

Re: [BETA] TheImageShack, File & URL

Post by Electra736 » Thu May 10, 2007 7:11 am

Oops, I almost forgot about my request.

If you could still help me, that would be awesome.

Thanks, again.

Lbenny
Registered User
Posts: 1
Joined: Tue Jun 12, 2007 12:30 pm

Re: [BETA] TheImageShack, File & URL

Post by Lbenny » Tue Jun 12, 2007 12:34 pm

Hey,

Is it possible to make this mod work for sipifi.com/images ? i think they also have an iframe.

I rather use sipifi cause they don't use popups.

Edit: yup, iframe is here http://www.sipifi.com/images/iframe.php

binhaus
Registered User
Posts: 20
Joined: Mon Nov 20, 2006 5:22 am

The ImageShack upload, File & URL no iframe

Post by binhaus » Thu Jul 26, 2007 12:36 pm

here the version whiout iframe.. it realy cute and tessted in IE and FF

Put this one any where you like in posting.tpl

Code: Select all

<a href="javascript:void(0);" onclick="window.open('Forums/imageshack.php', '_imageshack', 'resizable=yes,width=800,height=600,titlebar=yes');return false;" title="{ADD_IMG}"><b><font color="#CC0000">ImageShack.com upload</font></b></a>
then this is bit modified imageshack.php
put your adsense key in if you need some money .. :)

if you like it visit http://www.vnhits.com/downloads/ for more free software and script you will love

Code: Select all


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="ALL">
<meta name="robots" content="INDEX,FOLLOW"> 
<meta name="copyright" content="Copyright 2007 MTVvui.com All Rights Reserved." />
<?
//http://www.phpbb.com/community/viewtopic.php?f=16&t=451382&p=2471236&hilit=Imageshack+url#p2471236
	$keys = 'photo album blog, photo editing freeware, editing program, photo postcards, photo editing program, album hosting, photo calendars';
	$desc = 'Blog photos, post your pictures here and will read by thousand blog reader, best for maketing and making money';
?>
<meta name="Keywords" content="<? echo $keys;?>">
<META NAME="DESCRIPTION" CONTENT="<? echo $desc;?>">

<title>Top MTVvui funny video music, and commercial articles advices </title>
<STYLE type=text/css>
	TD { FONT-SIZE: 9pt; LINE-HEIGHT: 17px
	}
	BODY {
		FONT-SIZE: 9pt; MARGIN: 0px; LINE-HEIGHT: 17px; 
		vertical-align:middle;
		background-color:#000000; margin:0px; padding:0px;
		margin:20px;
	}
	a {	color:#ffffff; text-decoration:none; font-size:18px; }
</STYLE>
</head>
<body style="background-color:transparent">
<script type="text/javascript">
    function toggleuploadmode(file) {
       if (file) {
          document.getElementById('upfile').style.display='block';
          document.getElementById('upurl').style.display='none';
          document.getElementById('upform').action='http://www.imageshack.us/index.php';
       } else {
          document.getElementById('upfile').style.display='none';
          document.getElementById('upurl').style.display='block';
          document.getElementById('upform').action='http://imageshack.us/transload.php';
       }
    }
    function toggleuploadmode2(file) {
       if (file) {
          document.getElementById('upfile').style.display='block';
          document.getElementById('upzip').style.display='none';
          document.getElementById('upform').action='http://imageshack.us/index.php';
       } else {
          document.getElementById('upfile').style.display='none';
          document.getElementById('upzip').style.display='block';
          document.getElementById('upform').action='http://imageshack.us/ie.php';
       }
    }

    function focusfield(fl) {
       if (fl.value=="Paste image URL here ...") {
          fl.value='';
          fl.style.color='black';
       }
    }

    -->
    </script>
<div align="center" style="width:100%;height:100%; border-spacing:0;">
<div>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxxx";
google_alternate_color = "FFFFFF";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-26: popimages
google_ad_channel = "4805130542";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "808080";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
    <form method="post" action="http://imageshack.us/" enctype="multipart/form-data" target="_blank" onSubmit="disableme('butan')" id="upform">
<table bgcolor="#F0F0F0" cellpadding="5" cellspacing="5">
	<tr>	
      <td align="center"><b>Imageshack Upload !</b><br />
     <input type="file" name="fileupload" size="50" onChange="showoptions(this)" id="fileupload2">
	  </td>
	 </tr>
	<tr>
    <td valign="top">
	<input type="radio" name="uploadtype" onClick="toggleuploadmode(true);" checked>
    File&nbsp;&nbsp;<input type="radio" name="uploadtype" onClick="toggleuploadmode(false);"> URL&nbsp;&nbsp;
	<div id="upfile">
	</div>
    <div id="upurl" style="display: none;">
		<input type="text" id="fileupload" value="Paste image URL here ..." style="color: #888;" onfocus="focusfield(this)" name="url" size="50">
	</div><br />
    <input type="hidden" name="MAX_FILE_SIZE" value="3145728">
    <input type="hidden" name="aff" value="www.imageshack.us">
    <input type="hidden" name="type" value="blank">
    <input type="hidden" name="where" value="iframe">
      <input type="checkbox" name="optimage" id="optimage" value="1" checked="checked" onclick="optsize.disabled=!this.checked"> Resize image ?
      <select name="optsize" id="optsize">
        <option value="100x100" >100x75 (Avatar)</option>
        <option value="150x150" >150x112 (Thumbnail)</option>
        <option value="320x320" selected>320x240 (For Websites & Email)</option>
        <option value="640x640" >640x480 (For Message Boards)</option>
        <option value="800x800" selected="selected">800x600 (15" Monitor)</option>
        <option value="1024x1024">1024x768 (17" Monitor)</option>
      </select><br /><br />
    <input id="butan" style="width:75px" type="submit" value="Host it !">
    <span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<b>Max. 3MB !</b></span><br />
	</td>
	</tr>
</table>
    </form>
	<div>
	<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxx";
google_alternate_color = "FFFFFF";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-07-26: popimages
google_ad_channel = "4805130542";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "808080";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
	</div>
</div>
    </body>
</html>

------------------
my site runing: http://www.mtvvui.com/videodownloader.php youtube google video .. downloader

Absinthseb
Registered User
Posts: 31
Joined: Thu Jul 26, 2007 11:31 pm

Re: [BETA] TheImageShack, File & URL

Post by Absinthseb » Fri Jul 27, 2007 3:48 am

Hi there,
Im trying to install this mod with Easymod and i get this error:

Critical Error

FIND FAILED: In file [templates/subSilver/posting_body.tpl] could not find:

<!-- BEGIN switch_html_checkbox -->
<tr><br />
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_HTML}</span></td>
</tr>
<!-- END switch_html_checkbox -->

MOD script line #43

Anyone know how to fix it ?
Thanks

Absinthseb
Registered User
Posts: 31
Joined: Thu Jul 26, 2007 11:31 pm

Re: [BETA] TheImageShack, File & URL

Post by Absinthseb » Sat Jul 28, 2007 6:04 am

I checked for
Critical Error

FIND FAILED: In file [templates/subSilver/posting_body.tpl] could not find:

<!-- BEGIN switch_html_checkbox -->
<tr><br />
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_HTML}</span></td>
</tr>
<!-- END switch_html_checkbox -->

MOD script line #43

And its in posting_body.tpl but in the line number 406.
What should i do?
Please help

don_coprofia
Registered User
Posts: 2
Joined: Sun Aug 12, 2007 3:11 pm

Re: [BETA] TheImageShack, File & URL

Post by don_coprofia » Sun Aug 12, 2007 4:15 pm

I have fixed the error than OceanMaid said and I translated the MOD to Spanish

ImageShack, File & URL.mod

Code: Select all

    ##############################################################
    ## MOD Title: ImageShack, File & URL
    ## MOD Author: BuYcKi < bukevin@telenet.be > (Kevin Buyck)
    ## MOD Spanish Translation by: don_coprofia < don.coprofia@gmail.com > (Manuel)
    ## MOD Description: This MOD will add a quick upload for Imageshack.
    ##          Now you can upload files from your computer and files from an url !
    ##
    ## MOD Version: 1.0.0
    ##
    ## Installation Level: Easy
    ## Installation Time: 5 minutes
    ## Files To Edit: templates/subSilver/posting_body.tpl
    ## Included Files: iframe.php
    ##############################################################
    ## For security purposes, please check: http://www.phpbb.com/mods/
    ## for the latest version of this MOD. Although MODs are checked
    ## before being allowed in the MODs Database there is no guarantee
    ## that there are no security problems within the MOD. No support
    ## will be given for MODs not found within the MODs Database which
    ## can be found at http://www.phpbb.com/mods/
    ##############################################################
    ## Author Notes:
    ##############################################################
    ## MOD History:
    ##
    ## 2006-10-01 - Version 1.0.0
    ## - First working version !
    ##
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################

    #
    #-----[ COPY ]------------------------------------------------
    #

    copy root/iframe.php to iframe.php

    #
    #-----[ OPEN ]------------------------------------------
    #
    templates/subSilver/posting_body.tpl
    #
    #-----[ FIND ]------------------------------------------
    #
            <!-- BEGIN switch_html_checkbox -->
            <tr><br />
             <td>
               <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
             </td>
             <td><span class="gen">{L_DISABLE_HTML}</span></td>
            </tr>
            <!-- END switch_html_checkbox -->
    #
    #-----[ BEFORE, ADD ]------------------------------------------
    #
        <!-- begin imageshack mod -->
        <tr>
        <iframe src="./iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="400" height="140"></iframe>
        </tr>
        <!-- end imageshack mod --> 
    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM
iframe.php

Code: Select all

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>ImageShack (TM) - Hosting</title>
    <link rel="stylesheet" href="http://imageshack.us/img/style-def.css" type="text/css">
    <LINK REL="SHORTCUT ICON" HREF="http://imageshack.us/favicon.ico">
    </head>
    <body style="background-color:transparent">
    <script type="text/javascript">

    function toggleuploadmode(file) {
       if (file) {
          document.getElementById('upfile').style.display='block';
          document.getElementById('upurl').style.display='none';
          document.getElementById('upform').action='http://www.imageshack.us/index.php';
       } else {
          document.getElementById('upfile').style.display='none';
          document.getElementById('upurl').style.display='block';
          document.getElementById('upform').action='http://imageshack.us/transload.php';
       }
    }
    function toggleuploadmode2(file) {
       if (file) {
          document.getElementById('upfile').style.display='block';
          document.getElementById('upzip').style.display='none';
          document.getElementById('upform').action='http://imageshack.us/index.php';
       } else {
          document.getElementById('upfile').style.display='none';
          document.getElementById('upzip').style.display='block';
          document.getElementById('upform').action='http://imageshack.us/ie.php';
       }
    }

    function focusfield(fl) {
       if (fl.value=="Paste image URL here ...") {
          fl.value='';
          fl.style.color='black';
       }
    }

    -->
    </script>
    </td><td valign="top"><p><center><b>Subir imagen a ImageShack</b></center></p>
    <form method="post" action="http://imageshack.us/" enctype="multipart/form-data" target="_blank" onsubmit="disableme('butan')" id="upform">
    <table cellspacing="0" cellpadding="0" border="0"><tr>

    <td><p style="font-size: 11px;"><input type="radio" name="uploadtype" onclick="toggleuploadmode(true);" checked>
    Archivo&nbsp;&nbsp;<input type="radio" name="uploadtype" onclick="toggleuploadmode(false);"> URL&nbsp;&nbsp;</p></td>

    <td width="2">&nbsp;</td>

    <td><div id="upfile"><input type="file" name="fileupload" size="30" onchange="showoptions(this)" id="fileupload"></div>
    <div id="upurl" style="display: none"><input type="text" id="fileupload" value="Pegar URL de la imagen acá ..." style="color: #888;"
    onfocus="focusfield(this)" name="url" size="30"></div></td>

    </tr></table>

    <input type="hidden" name="MAX_FILE_SIZE" value="3145728">
    <input type="hidden" name="aff" value="www.imageshack.us">
    <input type="hidden" name="type" value="blank">
    <input type="hidden" name="where" value="iframe">

    <div id="resizeoptions">
      <input type="checkbox" name="optimage" id="optimage" value="1"  onclick="optsize.disabled=!this.checked"> ¿Redimensionar imagen?
      <select name="optsize" id="optsize">
        <option value="100x100" >100x75 (Avatar)</option>
        <option value="150x150" >150x112 (Miniatura)</option>
        <option value="320x320" selected>320x240 (Para Websites & Email)</option>
        <option value="640x640" >640x480 (Para foros)</option>
        <option value="800x800" >800x600 (Monitor de 15")</option>
        <option value="1024x1024" >1024x768 (Monitor de 17")</option>
      </select><br /><br />
    <input id="butan" style="width:75px" type="submit" value="Subir">
    <span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<b>Max. 1.5MB</b></span><br />
    </form>
    </body>
    </html>
It works great, thanks a lot for the mod :D

don_coprofia
Registered User
Posts: 2
Joined: Sun Aug 12, 2007 3:11 pm

Re: [BETA] TheImageShack, File & URL

Post by don_coprofia » Sun Aug 12, 2007 4:39 pm

If you prefer, you can download from here:
english version
spanish version

Post Reply

Return to “[2.0.x] MODs in Development”