[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.
BuYcKi
Registered User
Posts: 27
Joined: Sat Jul 29, 2006 11:11 pm

[BETA] TheImageShack, File & URL

Post by BuYcKi » Sun Oct 01, 2006 7:40 pm

MOD Title: ImageShack, File & URL
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

MOD Download: Download

Demo :

Image

It's the first time that I post a mod ..
So I don't know if I did anything wrong ..

I tested it and it's working fine ..
If there are problems just call my name :)

And euh, this isn't a beta ..
What do I need to do know ? :?
Last edited by BuYcKi on Wed Nov 29, 2006 1:36 pm, edited 1 time in total.

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Sun Oct 01, 2006 8:24 pm

Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

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

Post by BuYcKi » Sun Oct 01, 2006 8:34 pm

Yes ..
The one you gave only has uploading from a computer ..

With this one you can :
- Upload from computer to imageshack
- Upload from another url to imageshack
- Resize the image ..

:)

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Sun Oct 01, 2006 9:01 pm

BuYcKi wrote: Yes ..
The one you gave only has uploading from a computer ..

With this one you can :
- Upload from computer to imageshack
- Upload from another url to imageshack
- Resize the image ..

:)



ah very well, good luck then !
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

Pupusas2
Registered User
Posts: 28
Joined: Sun Oct 01, 2006 10:29 pm

Post by Pupusas2 » Sun Oct 01, 2006 10:31 pm

I installed this and It's working pretty fine and also is good looking thanks dude
Much better than the other Iframe that was before

User avatar
littlepaws
Registered User
Posts: 353
Joined: Thu Mar 30, 2006 10:40 pm

The page cannot be found

Post by littlepaws » Tue Oct 17, 2006 6:43 pm

Get following message

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
www.littlepawsdogtraining.com
website for dog lovers

www.tottenhamhotspursforum.co.uk
Football Fans forum

www.xbox360fanzone.com
Xbox 360 Forum

User avatar
Roks
Registered User
Posts: 119
Joined: Thu Sep 14, 2006 1:15 am

Post by Roks » Wed Oct 18, 2006 8:43 pm

I had installed Imageshack MOD that upload from Computer. Thanks for the additional features.

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

Post by OceanMaid » Wed Nov 29, 2006 1:07 pm

The download link for this mod is no longer valid. Can you please fix it or upload the file to another server? I'd very much like to download it. Thank you.
(n00bie to html coding, website design and forum management)

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

Post by BuYcKi » Wed Nov 29, 2006 1:37 pm

Link fixed :)

Download

artoxos
Registered User
Posts: 2
Joined: Sat Oct 28, 2006 7:11 pm

Post by artoxos » Fri Dec 01, 2006 5:06 pm

sry but this link does not work, too^^

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

Post by KtDhc » Fri Dec 01, 2006 6:08 pm

This is exactly what I was looking for, ImageShack with ability to resize on forum o.O But link isn't not working =/

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

Post by ValorSolo » Fri Dec 01, 2006 7:42 pm

new link please

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

Post by KtDhc » Sun Dec 03, 2006 4:45 pm

Thanks, the link is working now. But can anyone help me modify this so that the File/URL option as well as the resize options won't be shown, when file is uploaded it will use the resize option of 640x480 by default.

wannabee
Registered User
Posts: 23
Joined: Tue Dec 05, 2006 4:08 am
Location: Miami, FL

Post by wannabee » Tue Dec 05, 2006 8:46 am

I'm on a mac so I think the RAR file format is giving me trouble. When I extract the file it says 'Format Error'. Can someone ZIP it for me and post a link?

I want ImageShack on my Forum too! :D
Well isn't this fun?

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

Post by KtDhc » Tue Dec 05, 2006 7:09 pm

Hope this helps since some people are having trouble downloading or opening the file. These are the 2 files found in the download.

ImageShack, File & URL.mod

Code: Select all

##############################################################
## MOD Title: ImageShack, File & URL
## MOD Author: BuYcKi < bukevin@telenet.be > (Kevin Buyck)
## 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="125"></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>Imageshack Upload !</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>
File&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="Paste image URL here ..." 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"> 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" >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 />
</form>
</body>
</html>

Post Reply

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