4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 12, 2018, 10:56:20 AM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [MOD-beta] Multi-upload PLUS v0.3b
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 4 5 ... 10 » »» Print
Current Topic Rating: *****
Author Topic: [MOD-beta] Multi-upload PLUS v0.3b  (Read 177178 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« 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 Smile. Unfortunetly the applet is very buggy and half of the features dont work properly...Sad 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 Sad

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 Wink)

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:
1
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:
1
$sendprocess = 0;
Insert below:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
  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:
1
<body onLoad="somestuff();">
then after modification it should look like this:
1
<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(); Wink)


That it. Very Happy

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:



* muploadplus_v0.3b.zip (196.2 KB - downloaded 1679 times.)
« Last Edit: April 29, 2006, 02:30:15 PM by V@no » Logged

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)
edu
Jr. Member
**
Offline Offline

Posts: 74

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged
mawenzi
Moderator
4images Guru
*****
Offline Offline

Posts: 4500

Thank You
-Given: 36
-Receive: 121


View Profile
« Reply #2 on: April 28, 2006, 09:51:11 AM »

Hi V@no,

... the planned features
Quote  [Expand]
- 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
Logged

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) ...
Loda
Sr. Member
****
Offline Offline

Posts: 353

Thank You
-Given: 32
-Receive: 9


View Profile WWW
« 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..
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« 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 Smile

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 Wink
Logged

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)
Fastian
Full Member
***
Offline Offline

Posts: 199

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: April 28, 2006, 04:40:09 PM »

Waoo
Another Great Mod by V@no Smile
Cant wait to have it in my site.
Logged

I m not a  Programmer.
          But
I m a Good Learner.
Loda
Sr. Member
****
Offline Offline

Posts: 353

Thank You
-Given: 32
-Receive: 9


View Profile WWW
« 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 Smile

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 Wink

jeppp... works perfekt! thank you very much, v@no!
Logged
Loda
Sr. Member
****
Offline Offline

Posts: 353

Thank You
-Given: 32
-Receive: 9


View Profile WWW
« 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 » Logged
JensF
Addicted member
******
Offline Offline

Posts: 1028

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #8 on: April 29, 2006, 01:32:19 PM »

Is this Mod now working with Version 1.7 ???
Logged

Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« 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...
Logged

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)
Loda
Sr. Member
****
Offline Offline

Posts: 353

Thank You
-Given: 32
-Receive: 9


View Profile WWW
« 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:
1
2
<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). 
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« Reply #11 on: April 29, 2006, 10:58:57 PM »

can I see it?
Logged

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)
Loda
Sr. Member
****
Offline Offline

Posts: 353

Thank You
-Given: 32
-Receive: 9


View Profile WWW
« Reply #12 on: April 30, 2006, 07:57:10 AM »

yes.. i send you a pm..
Logged
impss
Sr. Member
****
Offline Offline

Posts: 382

Thank You
-Given: 5
-Receive: 10


View Profile WWW
« 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
Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« Reply #14 on: May 01, 2006, 03:37:35 PM »

In includes/page_header.php replace
1
$pm_popup_header = " onload=\"Javascript:confirm_newpm()\"";
with this:
1
$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 » Logged

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)
Pages: [1] 2 3 4 5 ... 10 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.116 seconds with 20 queries.
Post your comments here