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 ..
Code: Select all
##############################################################
## MOD Title: ImageShack, File & URL
## MOD Author: BuYcKi < [email protected] > (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
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 <input type="radio" name="uploadtype" onclick="toggleuploadmode(false);"> URL </p></td>
<td width="2"> </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"> <b>Max. 3MB !</b></span><br />
</form>
</body>
</html>