Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Asset Manager / Image Upload Fix to upload multiple files like the Flash uploader Details »
Asset Manager / Image Upload Fix to upload multiple files like the Flash uploader
Mod Version: 1.1.0, by BirdOPrey5 (IB Staff) BirdOPrey5 is online now
Developer Last Online: Sep 2017 I like it Show Printable Version Email this Page

vB Version: 4.1.10 Rating: (13 votes - 4.92 average) Installs: 84
Released: 11 Jan 2014 Last Update: Never Downloads: 282
Supported Uses Plugins Auto-Template Re-usable Code  

2017 Update - Google Chrome and other browsers are starting to end support for Flash. As Flash gets deprecated and removed from browsers users trying to upload will see the Ajax Uploader instead. Without this add-on the Ajax Uploader will only allow uploading one image at a time. I've tested and this still works on VB 4.2.5 using PHP 5.6.x (I wasn't able to test PHP 7 but it should work on that as well.) Although it wasn't designed for this issue, it does work great to bring back multiple uploads in the post-Flash era.


---

(Old info from 2014...)

If you weren't aware an exploit was found in the flash uploader (uploader.swf) file supplied with vBulletin 4.x. This file was part of the Yahoo YUI 2 package and Yahoo will not be fixing the exploit- Yahoo instructs anyone to remove the file since they no longer use Flash.

Officially vBulletin says it is better to replace the file with an empty file of the same name.
Official announcement here: http://www.vbulletin.com/forum/forum...n-uploader-swf

The problem was however that if you remove the flash uploader the default Ajax uploader did not allow multiple files to be selected at one time (using CTRL+Click or Shift+Click to select multiple files) like the Flash uploader used to allow.

However FranzBanz thankfully posted a template edit on vBulletin.com that uses the power of HTML 5 to restore the ability to select multiple files at once!

The template edit is fairly easy, but I took it a step further and made this into a basic vBulletin modification.

There are a few things you need to be aware of-

1) This does not work on IE9 or lower, these users must upload one at a time. IE10, Chrome, Firefox, Safari, Opera should all be OK. (See here: http://www.w3schools.com/tags/att_input_multiple.asp)

Note: It has come to my attention this will not work in IE at all if IE10 or IE11 are running in IE9 Compatibility mode, which is required on vBulletin for the WYSIWYG editor to work in those versions.

2) There is no easy way to limit the number of files users can choose to upload. If they choose more files then your forum is set to allow they will get an error message when attempting to upload the extra files. Not a big deal but be aware of this limitation, maybe let your users know ahead of time. What I have done is added text that informs the user the max number of uploads allowed. See screenshots for details.

3) Requires vBulletin 4.1.10 or higher, one of the hooks needed doesn't exist in older versions. If you have 4.1.9 or older do the manual template edit linked above.

4) If you need to translate the one phrase used by this mod is a GLOBAL phrase: max_fileassets_bop5

There are no settings for this mod, just install and it is active.

Note- You should go to Admin CP -> Settings -> Options -> Message Attachment Options and do the following:
  • Set Attachment Upload Inputs to a value greater than 1. This will be the max that can be uploaded at once before getting an error.
  • Make sure Attachments Per Post is set higher than or equal to Attachment Upload Inputs
  • Set Asset Manager - Enable to Yes, Ajax Upload by Default


------------------------------------------------------

Please "Mark as Installed" if you use this.
Nominate MOTM if you LOVE it!
Please direct any donations toward FranzBanz on vBulletin.com

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	asset-manager-multi-files-ss.jpg
Views:	636
Size:	93.1 KB
ID:	147790   Click image for larger version

Name:	image-upload-multi-files-ss.jpg
Views:	644
Size:	26.6 KB
ID:	147791  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 11 Jan 2014, 15:10
qpurser qpurser is offline
 
Join Date: Aug 2011
Thank you.
Works great
Reply With Quote
  #3  
Old 11 Jan 2014, 15:56
keyla31 keyla31 is offline
 
Join Date: Feb 2009
it didn't work for me for some reason its still having me select a file, click upload and then have to select another file? hmmmm
Reply With Quote
  #4  
Old 11 Jan 2014, 16:12
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by keyla31 View Post
it didn't work for me for some reason its still having me select a file, click upload and then have to select another file? hmmmm
What browser are you using? Are you willing to link to your site?
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #5  
Old 11 Jan 2014, 16:57
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Great work BOP.
Reply With Quote
  #6  
Old 11 Jan 2014, 17:02
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Excellent stuff, installed.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #7  
Old 11 Jan 2014, 17:16
Papa Bear's Avatar
Papa Bear Papa Bear is offline
 
Join Date: Apr 2011
Outstanding..Great Work..
Reply With Quote
  #8  
Old 11 Jan 2014, 17:21
jjohns12 jjohns12 is offline
 
Join Date: Aug 2013
Nicccccccccccccccccccccccce Thank you! GREAT FIX!
__________________
East Coast Surfcasters A Surf Fishing and Striped Bass Forum
http://www.eastcoastsurfcasters.com/forums/
Reply With Quote
  #9  
Old 11 Jan 2014, 19:09
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
Note: It has come to my attention this will not work in IE at all if IE10 or IE11 are running in IE9 Compatibility mode, which is required on vBulletin for the WYSIWYG editor to work in those versions.
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #10  
Old 11 Jan 2014, 19:16
Mark.B Mark.B is offline
 
Join Date: Feb 2004
I believe a plugin exists to disable WYSIWYG for IE10 and IE11 users, forcing the editor to source mode for these users....this is the best workaround for this if multiple uploads is an issue as then you don't need compatibility mode.

Joe I think it might even by your plugin if I remember correctly.
Reply With Quote
  #11  
Old 11 Jan 2014, 20:08
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
Indeed there is and yes it is mine as well. - http://www.vbulletin.org/forum/showthread.php?t=296838

If users want to use multiple uploading in IE10/11 and NOT use the WYSIWYG editor then they can use that mod.

In IE 4.2.1 or 4.2.2 they will also need to edit the headinclude template and delete the line


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Which forces IE9 compatibility mode.
__________________
-Joe (@BirdOPrey5) Former Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #12  
Old 11 Jan 2014, 20:09
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Another workaround is not to use IE at all, but I doubt there's a plug in for that.
Reply With Quote
  #13  
Old 11 Jan 2014, 22:48
Thangvip9x Thangvip9x is offline
 
Join Date: Apr 2012
Real name: Thang
Working on vBulletin 4.2.2, Mark as Installed
Reply With Quote
  #14  
Old 11 Jan 2014, 23:04
megabink's Avatar
megabink megabink is offline
 
Join Date: Oct 2011
Real name: John
Awesome thanks for the fix,installed!
Reply With Quote
  #15  
Old 12 Jan 2014, 18:34
Jennifer2010 Jennifer2010 is offline
 
Join Date: Mar 2011
This works great, thank you! However, is there any way to increase the max number of inputs to more than 10 (vBulletin doesn't allow me to select more than 10).

I tried uploading more than 10 photos at a time and it doesn't insert any at all and with no error message, so this would confuse users. Would be nice to set the limit to more like 100 or something.

Thank you!

- Jen
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 11:15.

Layout Options | Width: Wide Color: