• [MOD-beta] Multi-upload PLUS v0.3b 4 0 5 1
Currently:  

Author Topic: [MOD-beta] Multi-upload PLUS v0.3b  (Read 222821 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[MOD-beta] Multi-upload PLUS v0.3b
« on: April 28, 2006, 05:16:27 AM »
A few days ago I started making a multi-upload mod, which actualy is very simular to rroc's [MOD] multiupload, but it uses "modules" that allow use of other tools, such as Java applets for uploading files. Besides that, "modules" type will simplify installation process and make updates painless (just replace files with new version)
At this stage, the mod includes two "modules": basic and JUpload.
Basic - is plain multi field page, where each file must be selected manualy one-by-one like on a regular upload page.
JUpload - is a free Java applet from www.jupload.biz which supports "drag'n drop" feature :). Unfortunetly the applet is very buggy and half of the features dont work properly...:( Yet, I've tryed go around each bug, it seems to work "fine", atleast from JavaScript part. Also, I must say, at the moment JUpload module does not work with other browsers but only on Internet Explorer :(

Since this is a beta version, I will include minimum installation instruction and will not include any extra modifications to add links/buttons to multi-upload pages, you will need type url in the browser manualy (this way you can use it on your site without anyone knowing it exists, which may be a security benefit ;))

So, here it goes:

Step 1
Download file from the attachment at the end of this thread.
Unpack it and upload all files to your site, make sure restore the directory tree (create new folders if dont exist):
includes/mupload.php
includes/mu_modules/basic.php[/b]
includes/mu_modules/jupload.php
includes/mu_modules/jupload/jupload.jar
templates/<your template>/member_mupload_jupload.html
templates/<your template>/member_muploaddropdown.html
templates/<your template>/member_muploadform_basic.html
templates/<your template>/member_muploadform_basic_bit.html
templates/<your template>/member_muploadform_jupload.html


Step 2
Open member.php
Find:
Code: [Select]
include(ROOT_PATH.'includes/page_header.php');Comment it out (add # or // at the beginning of this line) or simply remove it.

Step 2.1
Find:
Code: [Select]
$sendprocess = 0;Insert below:
Code: [Select]
/*
  MOD MULTI-UPLOAD-PLUS
  BEGIN INSERT
*/
if ($action == "muploadimage" || $action == "muploadform")
{
  $dir = opendir(ROOT_PATH."includes/mu_modules/");
  $mu_modules = array();
  while ($file = readdir($dir))
  {
    if (is_file(ROOT_PATH."includes/mu_modules/".$file) && !is_dir(ROOT_PATH."includes/mu_modules/".$file) && substr(strrchr($file,"."), 1) == "php") $mu_modules[] = $file;
  }
  closedir($dir);
  include(ROOT_PATH.'includes/mupload.php');
}
include(ROOT_PATH.'includes/page_header.php');
/*
  MOD MULTI-UPLOAD-PLUS
  END INSERT
*/


Step 3
Open templates/<youre template>/header.html
Find <body (that line might contein other stuff)
Now, look if in that tag present onLoad="" (probably if its present it has some stuff between the quotes)
If you found one, then right after first quote add: {mupload_onload} tag. (i.e. if you found something like this:
Code: [Select]
<body onLoad="somestuff();">then after modification it should look like this:
Code: [Select]
<body onLoad="{mupload_onload} somestuff();">If you did not have any onload="" thing, then simply add one, after space after <body (as in the example above, but without somestuff(); ;))


That it. :D

Now, how to use it.
In the address bar of your browser (I'd suggest you test it on IE first) type:
1) for "basic" form: http://<youraddress>/path/to/4images/member.php?action=muploadform or http://<youraddress>/path/to/4images/member.php?action=muploadform&mutype=basic
2) for "JUpload form: http://<youraddress>/path/to/4images/member.php?action=muploadform&mutype=jupload

P.S.
Here is a list of planned features:
- auto resize images
- auto copy original images into "big" folder (only if resized)
- auto backup original images into user-defined directory (with additional code this could be used later for restoration and/or reading EXIF/IPTC info)
- support for watermark by SLL

Version history:

v0.3b
- fixed thumbnails wouldnt upload
- fixed template can not be found error if upload error

v0.2b
- added support for [MOD] Categories upload dropdown form (replace includes/mupload.php)

v0.1b
- original release


Some screenshots:
Basic:



JUpload:


« Last Edit: April 29, 2006, 02:30:15 PM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline edu

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: [MOD-beta] Multi-upload PLUS
« Reply #1 on: April 28, 2006, 08:59:09 AM »
wow !, this is exactly what I requested in this message.

I will try this ...

Thank you V@no.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD-beta] Multi-upload PLUS
« Reply #2 on: April 28, 2006, 09:51:11 AM »
Hi V@no,

... the planned features
Quote
- auto copy original images into "big" folder (only if resized)
- auto backup original images into user-defined directory (with additional code this could be used later for reading EXIF/IPTC info)
are very interesting and would be absolutely new !
I hope that these features will follow soon ...  :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD-beta] Multi-upload PLUS
« Reply #3 on: April 28, 2006, 11:40:28 AM »
wow, fantastic mod!
but i think everything is wrong with the user rights..
if you open the links as gast you can see all kategories in the dropdownfield..

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Multi-upload PLUS
« Reply #4 on: April 28, 2006, 02:57:57 PM »
but i think everything is wrong with the user rights..
if you open the links as gast you can see all kategories in the dropdownfield..
Try open http://<youraddress>/path/to/4images/member.php?action=uploadform and you will see the exact same dropdown.

But, I guess, adding support for [MOD] Categories upload dropdown form is a good idea :)

Redownload the package, replace includes/mupload.php (check version of the file, it should be 0.2b now) and install the mod above if you wish ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD-beta] Multi-upload PLUS v0.2b
« Reply #5 on: April 28, 2006, 04:40:09 PM »
Waoo
Another Great Mod by V@no :)
Cant wait to have it in my site.
I m not a  Programmer.
          But
I m a Good Learner.

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD-beta] Multi-upload PLUS
« Reply #6 on: April 28, 2006, 09:25:18 PM »
but i think everything is wrong with the user rights..
if you open the links as gast you can see all kategories in the dropdownfield..
Try open http://<youraddress>/path/to/4images/member.php?action=uploadform and you will see the exact same dropdown.

But, I guess, adding support for [MOD] Categories upload dropdown form is a good idea :)

Redownload the package, replace includes/mupload.php (check version of the file, it should be 0.2b now) and install the mod above if you wish ;)

jeppp... works perfekt! thank you very much, v@no!

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD-beta] Multi-upload PLUS v0.2b
« Reply #7 on: April 29, 2006, 11:30:29 AM »
uppsss.. i'm too fast.. it doesn`t work..
if i upload an image i can't see this :http://img101.imageshack.us/my.php?image=juploaduploaded0gx.png
without java it show me after sending the images a blank member.php page...
« Last Edit: April 29, 2006, 12:04:48 PM by Loda »

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD-beta] Multi-upload PLUS v0.2b
« Reply #8 on: April 29, 2006, 01:32:19 PM »
Is this Mod now working with Version 1.7 ???
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Multi-upload PLUS v0.3b
« Reply #9 on: April 29, 2006, 02:33:59 PM »
uppsss.. i'm too fast.. it doesn`t work..
if i upload an image i can't see this :http://img101.imageshack.us/my.php?image=juploaduploaded0gx.png
without java it show me after sending the images a blank member.php page...
no clue why would it show a blank page especialy with java version, cause there its javascript that being executed when you hit submit button, no form actualy being submited...try new version, reupload mupload.php, basic.php and jupload.php


Is this Mod now working with Version 1.7 ???
I havent have chance test it, but theoreticaly it should work...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD-beta] Multi-upload PLUS v0.3b
« Reply #10 on: April 29, 2006, 10:53:00 PM »
hmm.. i don't know where the mistake is...
maybe it is the step 3
i couldn't find any "onload" tag... and now i put it after the body tag:
Code: [Select]
<body onLoad="{mupload_onload}" bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475"
{pm_popup_header}>

is it right?

now I have upload the version 0.3 and install it, but i get a blank member.php if i want to upload an image (with basic upload). 

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Multi-upload PLUS v0.3b
« Reply #11 on: April 29, 2006, 10:58:57 PM »
can I see it?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD-beta] Multi-upload PLUS v0.3b
« Reply #12 on: April 30, 2006, 07:57:10 AM »
yes.. i send you a pm..

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD-beta] Multi-upload PLUS v0.3b
« Reply #13 on: May 01, 2006, 03:27:46 PM »
V@no,

this is a awesome mod , but now i no longer get  popup  notifications with  PM v.2 mod - http://www.4homepages.de/forum/index.php?topic=6692.0

please advise

thank you

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Multi-upload PLUS v0.3b
« Reply #14 on: May 01, 2006, 03:37:35 PM »
In includes/page_header.php replace
Code: [Select]
$pm_popup_header = " onload=\"Javascript:confirm_newpm()\"";with this:
Code: [Select]
$pm_popup_header = "confirm_newpm();";And then in header.html move {pm_popup_header} next to {mupload_onload}
« Last Edit: May 02, 2006, 02:04:56 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)