[ABD] Multiple File Upload 0.0.3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
romano
Registered User
Posts: 15
Joined: Fri Jun 15, 2007 12:34 pm
Location: Belo Horizonte,Brazil

[ABD] Multiple File Upload 0.0.3

Post by romano »

MOD Title: Multiple File Upload
MOD Description: Multiple File Upload in Topics
MOD Version: 0.0.3

MOD Download: http://geocities.yahoo.com.br/rodrigoro ... _0.0.3.zip

MOD Screenshot:
Image
Last edited by DavidIQ on Mon Feb 15, 2010 1:13 pm, edited 3 times in total.
Reason: Marked as abandoned. Contact a MOD Team member to reclaim topic.
User avatar
x-fi6
Registered User
Posts: 67
Joined: Wed Aug 02, 2006 1:41 am

Re: [ALPHA] Multiple File Upload

Post by x-fi6 »

Can you make a [-] button? :)
My site (along with a bunch of others') is:
http://www.zeldacastle.com/index.php
for just in case you need it. ;) Thanks.
User avatar
ac_roma
Registered User
Posts: 318
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [ALPHA] Multiple File Upload

Post by ac_roma »

nice idea ;)
romano
Registered User
Posts: 15
Joined: Fri Jun 15, 2007 12:34 pm
Location: Belo Horizonte,Brazil

Re: [ALPHA] Multiple File Upload

Post by romano »

x-fi6 wrote:Can you make a [-] button? :)
Open: styles/prosilver/template/posting_attach_body.html
FIND

Code: Select all

	<fieldset class="fields2">
	<dl>
		<dt><label for="fileupload">{L_FILENAME}:</label></dt>
		<dd>
			<input type="file" name="fileupload" id="fileupload" maxlength="{FILESIZE}" value="" class="inputbox autowidth" /> 
			<input type="submit" name="add_file" value="{L_ADD_FILE}" class="button2" onclick="upload = true;" />

		</dd>
	</dl>
	<dl>
		<dt><label for="filecomment">{L_FILE_COMMENT}:</label></dt>
		<dd><textarea name="filecomment" id="filecomment" rows="1" cols="40" class="inputbox autowidth">{FILE_COMMENT}</textarea></dd>
	</dl>
	</fieldset>

REPLACE WITH

Code: Select all

	<fieldset class="fields2">
	<dl>
		<dt><label for="fileupload">{L_FILENAME}:</label></dt>
		<dd>
			<input type="file" name="fileupload" id="fileupload" maxlength="{FILESIZE}" value="" class="inputbox autowidth" /> <a href="#FILES" onclick="javascript:add_more_upload()">[+]</a>
		</dd>
	</dl>
	<input type="hidden" name="count" id="count" value="0" />
	<dl>
		<dt><label for="filecomment">{L_FILE_COMMENT}:</label></dt>
		<dd><textarea name="filecomment" id="filecomment" rows="1" cols="40" class="inputbox autowidth">{FILE_COMMENT}</textarea></dd>
	</dl>
	<div id="multiple">
	
	</div>
	<a name="FILES">
	<dl>
		<dd>
			<input type="submit" name="add_file" value="{L_ADD_FILE}" class="button2" onclick="upload = true;" />
		</dd>
	</dl>
	</fieldset>

Open: styles/prosilver/template/posting_buttons.html

FIND

Code: Select all

	var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
Add before

Code: Select all

	function add_more_upload() {
		var new_total = Math.round(document.getElementById('count').value) + 1;
		var div = document.getElementById('multiple');
		var childdiv = document.createElement("div");        
                childdiv.setAttribute('id','multiple'+new_total); 
		var html = "<dl><dt><label for='fileupload'>{L_FILENAME}:</label></dt><dd><input type='file' name='fileupload" + new_total + "' id='fileupload" + new_total + "' maxlength='{FILESIZE}' value='' class='inputbox autowidth' /><a href='#FILES' onclick='javascript:add_more_upload()'>[+]</a><a href='#FILES' onclick='javascript:remove_more_upload(" + new_total + ")'>[-]</a></dd></dl><dl><dt><label for='filecomment'>{L_FILE_COMMENT}:</label></dt><dd><textarea name='filecomment" + new_total + "' id='filecomment" + new_total + "' rows='1' cols='40' class='inputbox autowidth'>{FILE_COMMENT}</textarea></dd></dl>";
		childdiv.innerHTML = html;
		div.appendChild(childdiv) ;
		document.getElementById('count').value = new_total;
	}

	function remove_more_upload(id) {
       var str = 'multiple' + id;
	   document.getElementById(str).innerHTML = '';
	}
Screenshot :
Image

;)
andrewloh
Registered User
Posts: 41
Joined: Sat Feb 10, 2007 7:28 am

Re: [ALPHA] Multiple File Upload

Post by andrewloh »

Cool.. this is what i am looking for since version 2.
How can I change to make it start by 5 upload entries ?
User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [ALPHA] Multiple File Upload

Post by playerfr »

nice idea :) Thanks

Any way to add a javascrip or flah progress bar when uploading ? :?
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com
romano
Registered User
Posts: 15
Joined: Fri Jun 15, 2007 12:34 pm
Location: Belo Horizonte,Brazil

Re: [ALPHA] Multiple File Upload

Post by romano »

andrewloh wrote:Cool.. this is what i am looking for since version 2.
How can I change to make it start by 5 upload entries ?
Open: styles/prosilver/template/posting_layout.html

Find:

Code: Select all

subPanels(show_panel);
Before add :

Code: Select all

	for(i=0;i < 5;i++){
	  add_more_upload();
	}
:D
User avatar
Trinity
Registered User
Posts: 474
Joined: Wed Dec 11, 2002 10:06 pm
Location: Hollywood, CA

Re: [ALPHA] Multiple File Upload

Post by Trinity »

This is a great addition, and something I was looking out for.

Thank you.
Shop smart, shop S-mart.
User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [ALPHA] Multiple File Upload

Post by playerfr »

romano for Progress bar is it possible ?
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com
romano
Registered User
Posts: 15
Joined: Fri Jun 15, 2007 12:34 pm
Location: Belo Horizonte,Brazil

Re: [ALPHA] Multiple File Upload

Post by romano »

playerfr wrote:romano for Progress bar is it possible ?
Exists in the style Subsilver2 .
In the code of posting.php a function upload_popup.
We have that to discover, as it qualifies it for to prosilver.

Image
romano
Registered User
Posts: 15
Joined: Fri Jun 15, 2007 12:34 pm
Location: Belo Horizonte,Brazil

Re: [ALPHA] Multiple File Upload 0.0.2

Post by romano »

New version .

Next features :
- adequacy of mod for IE7 (subsilver2).
- Messages of error for archive
soniceyepod
Registered User
Posts: 3
Joined: Mon Oct 01, 2007 5:24 am

Re: [ALPHA] Multiple File Upload 0.0.2

Post by soniceyepod »

Hello,

I have spent about three days working with this mod on my phpbb3 site.

I like that it allows multiple uploads. But what I want is for it to always load the same number of upload slots and never be dynamic.

I also was trying for hours and hours to make it let me get rid of the comments for uploaded files.

I was able to get rid of the comments text boxes and get a nice stack of upload slots that would upload files just fine but when I would go to delete one before submitting the post it would delete all the uploads below the one I wanted to delete as well. Leaving all the ones above it alone.

So if somebody could tell me how to have two columns of 10 upload slots that do not have any area for inputting comments that would be very very cool. Like I said I almost had it working.
User avatar
Flai
Registered User
Posts: 29
Joined: Tue Jun 12, 2007 9:42 am
Location: Germany
Contact:

Re: [ALPHA] Multiple File Upload 0.0.2

Post by Flai »

Really great mod! :geek:


Three comments:

In: styles/prosilver/template/posting_attach_body.html

Code: Select all

   <a name="FILES">
Where is the closing tag? :?:


It looks terrible on my testboard (fresh RC5 installation, prosilver, german, firefox): :roll:
Image
Image


With my IE7 it doesn't work. If I press the [+], nothing happens. :|
< Please write slowly, my english is terrible. > - - - < Visit me: flai-community.de >
soniceyepod
Registered User
Posts: 3
Joined: Mon Oct 01, 2007 5:24 am

Re: [ALPHA] Multiple File Upload 0.0.2

Post by soniceyepod »

<td>
<a name="FILES">
<input type="hidden" name="proxid" id="proxid" value="1" />
<input type="hidden" name="count" id="count" value="0" />
<input class="btnlite" type="submit" style="width:150px" name="add_file" value="{L_ADD_FILE}"onclick="popup_progress_bar();" /></a></td>

This is where I put the missing closing tag and the [+] worked after that.
User avatar
Flai
Registered User
Posts: 29
Joined: Tue Jun 12, 2007 9:42 am
Location: Germany
Contact:

Re: [ALPHA] Multiple File Upload 0.0.2

Post by Flai »

Now it works correct ... great. :)


I've changed something for prosilver style:
______________________________

In "styles/prosilver/template/posting_attach_body.html"

Find:

Code: Select all

<a href="#FILES" onclick="javascript:add_more_upload()">[+]</a>
Replace:

Code: Select all

<input type='button' class='button2' name='files_' value='+' style='width: 40px' onclick='add_more_upload()' title='' />
______________________________

In "styles/prosilver/template/posting_buttons.html"

Find:

Code: Select all

<a href='#FILES' onclick='javascript:remove_more_upload(" + id + ")'>[-]</a>
Replace with:

Code: Select all

<input type='button' class='button2' name='files_" + id + "' value='-' style='width: 40px' onclick='remove_more_upload(" + id + ")' title='' />
______________________________

Image

Image

Just an idea. :geek:
< Please write slowly, my english is terrible. > - - - < Visit me: flai-community.de >
Locked

Return to “[3.0.x] Abandoned MODs”