Author Topic: [BETA] for 1.7.6 Multiupload Vers. 2.0  (Read 65510 times)

0 Members and 1 Guest are viewing this topic.

bildergallery

  • Guest
[BETA] for 1.7.6 Multiupload Vers. 2.0
« on: January 06, 2008, 02:09:32 AM »
Basierend auf
http://www.4homepages.de/forum/index.php?topic=8517.0

aber für Vers. 1.7.6

Kopiere die Dateien in der Zip Datei in folgende Struktur

/lang/main.php

/template/default/
member_multiuploadform.html
categories.html

/template/default/images
multiupload.gif
multiupload_off.gif

/root
categories.php
member.php
global.php

Multiupload Captcha kann in der config.php aktiviert werden
Code: [Select]
$captcha_enable_multiupload = 1;
Was NICHT funktioniert:

 :arrow: Bildnamen werden nach dem Upload alle gleich benennt
Bild erfolgreich hinzugefügt: test (austria_jan08_01.jpg)
Bild erfolgreich hinzugefügt: test (austria_jan08_02.jpg)
Beim betrachten in der Kategorie erscheint der richtige Name Bsp. Test, Test2 u.s.w.

 :arrow: Captcha ist integriert und kann via config deaktiviert werden,
jedoch wird keine Fehlermeldung beim Hochladen angezeigt

19.02.2008
  • BugFix Timestamp
  • BugFix Clickstream Upload => Multiupload
  • BugFix Captcha Failure Message
« Last Edit: February 19, 2008, 10:56:04 PM by ivan »

Offline imike24

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [BETA] Multiupload Vers. 2.0
« Reply #1 on: January 08, 2008, 05:25:21 PM »
Thank

« Last Edit: January 08, 2008, 06:11:12 PM by kai »

Offline Nephris

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [BETA] Multiupload Vers. 2.0
« Reply #2 on: February 10, 2008, 06:24:06 PM »
Gibt es die Modifikation bereits angepasst für die 1.7.6 Version? Ich habe deine Version mal in der 176er geteste jedoch funktioniert weder der Multiupload für den User noch wird es korroekt dargestellt.Auch nach wiederholtem copy&paste blieb der Fehler somit vermute ich das es nicht für 1.7.6 kompatibel ist ...zumindest nicht auswirkungslos.

Hat jmd Rat oder kann mir jmd seine Dateien schicken die auf der 1.7.6. laufen?

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [BETA] Multiupload Vers. 2.0
« Reply #3 on: February 18, 2008, 09:07:53 PM »
Hallo ivan

Habe hier noch ein paar Kleinigkeiten herausgefunden bzw. verbessert:

1.) Doppelte Anzeige bei einem Captcha Error verhindern:
- ersetze in member.php:

Code: [Select]
  if ($captcha_enable_upload && !captcha_validate($captcha) && $action == "uploadimage" ) {
    $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
    $error = 1;
  }

  if ($captcha_enable_multiupload && !captcha_validate($captcha) && $action == "multiuploadimage" ) {
    $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
    $error = 1;
  }

Der Fehler mit der Captcha Funktion konnte ich aber noch nicht beheben.

2.)
Quote
Bei Fehler erscheint die member_upload.html und nicht wie gewünscht die member_multiupload Seite
Fehler ist behoben:
- suche in member.php

Code: [Select]
  }//end while
  }//end if
    else
    {
      $action = "uploadform";
      $sendprocess = 1;
    }
  }//end upload action

- ersetze mit:
Code: [Select]
  }//end while
  }//end if
    else
    {  
  if($action == "multiuploadform" || $action == "multiuploadimage")
$action = "multiuploadform";
      else
$action = "uploadform";
  $sendprocess = 1;
    }
  }//end upload action

3.)
Quote
Bildnamen werden nach dem Upload alle gleich benennt
- suche in member.php
Code: [Select]
$msg .= $lang['image_add_success'].": <b>".format_text(stripslashes($image_name))."</b> (".$new_name.")<br />";
- ersetze mit:   
Code: [Select]
$msg .= $lang['image_add_success'].": <b>".format_text(stripslashes($image_name))." [".$imgname."]</b> (".$new_name.")<br />";    //$imgname ==> XXX , XXX 2, XXX 3, ...!!!=> Lösungsansatz: Benutze $imgname oder $image_name

Ich hoffe, dass es dir bei diesem MOD weiterhilft!
Liebe Grüsse in & aus der Schweiz ;);)
Jones

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] Multiupload Vers. 2.0
« Reply #4 on: February 18, 2008, 09:38:29 PM »
@scluzern:

Hum ... ersetze mit:

Code: [Select]
$msg .= $lang['image_add_success'].": <b>".format_text(stripslashes($image_name), 2)." [".$imgname."]</b> (".$new_name.")<br />";    //$imgname ist nicht gleich!!!

in member.php (nein memper.php  :mrgreen:). ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #5 on: February 18, 2008, 09:45:27 PM »
Quote
problem with image_name have no solution
Bild erfolgreich hinzugefügt: test (austria_jan08_01.jpg)
Bild erfolgreich hinzugefügt: test (austria_jan08_02.jpg)

Is possible post problem english ? I see post in German but I no get ...  :|

[edit] - double image name - ok so break loop after image name in while. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #6 on: February 18, 2008, 09:53:39 PM »
Quote
have you for my problems a solution?

If upload one file in multiupload, you see two line ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #7 on: February 18, 2008, 10:01:52 PM »
I check code in member.php file ...

Two $new_name variable of same in loop is use. Is why you see 2 result. ;)
Is same thing in email message ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #8 on: February 19, 2008, 01:01:24 PM »
Hi!
Captcha Fehler ist behoben!
The error "captcha failure" is solved!

- suche in member.php:
Code: [Select]
  if ($captcha_enable_upload && !captcha_validate($captcha) && $action == "uploadimage" ) {
    $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
    $error = 1;
  }

  if ($captcha_enable_multiupload && !captcha_validate($captcha) && $action == "multiuploadimage" ) {
    $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
    $error = 1;
  }

- ersetze mit:
Code: [Select]
  if ($action == "uploadimage") {
  if ($captcha_enable_upload && !captcha_validate($captcha)) {
$msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
$error = 1;
  }
  } elseif ($action == "multiuploadimage") {
  if ($captcha_enable_multiupload && !captcha_validate($captcha)) {
$msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
$error = 1;
  }
  }

Greetings
Jones

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #9 on: February 19, 2008, 01:20:47 PM »
hi ivan,

ich hätte nur eine bitte bei diesem mod..
schreibe was an den dateien geändert werden muss, ohne die original dateien überschreiben zu müssen.
ich weiss ich kann es mit DIFF programmen sehen.

thx im voraus
cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #10 on: February 19, 2008, 06:29:36 PM »
Hallo!

Ich habe noch ein paar kleine Inputs:

Quote
Wenn z.b 10 Bilder hochgeladen werden, werden die meisten Bilder mit dem gleichen Zeitstempel versehen
Wenn man die Bilder via FTP uploaded & im ACP die Bilder via "Neue Bilder checken", dann haben auch alle Bilder praktisch die selbe Zeit (ausser man fügt etliche Bilder hinzu).
Entweder sollte man dort dies auch anpassen oder hier sogar evtl weglassen..?

Warum startet die Namensvergebung nicht schon bei #1? Man fängt auch bei 1 (und nicht bei 2) an zu zählen  8)
z.B. Test 1, Test 2, Test 3, ... anstatt Test, Test 2, Test 3, ...
Könnte man sonst das hier anpassen (// MULTI FILE UPLOAD    $fileext=""; ==> $fileext="1";)?

Wie wäre es mit einer verstellbaren "Anzahl Upload Dateien"? Dann könnte die Anzahl von den Usern beliebig gewählt werden (z.B. 5-30 Bilder) und somit mehr als 10 Bilder auf einmal upgeloadet werden.

Ist dieser MOD auch mit "[Mod] Auto image resize on upload. (updated 19/09/04)" kompatibel?!?

Grüsse Jones

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #11 on: February 19, 2008, 06:34:30 PM »
Problem gelöst / Trouble solved:
Quote
Wenn z.b 10 Bilder hochgeladen werden, werden die meisten Bilder mit dem gleichen Zeitstempel versehen
z.b 2008-01-06 01:56:07. Dadurch erfolgt die Sortierung in der Kategorie nicht so, wie es sollte. Wenn der Bildname
Test ist, so kann es vorkommen, dass Test 02 vorher kommt (Standard Sortierung absteigend).
Quote
probleme with date, all ten images have the same time stamp.

1.1)
- search in member.php
Code: [Select]
// MULTI FILE UPLOAD
    $fileext="";
    while(isset($HTTP_POST_FILES['media_file'.$fileext]))

- replace with:
Code: [Select]
// MULTI FILE UPLOAD
    $fileext="";
$current_time = time() - 1;
    while(isset($HTTP_POST_FILES['media_file'.$fileext]))

1.2)
- search
Code: [Select]
$current_time = time();
- replace with:
Code: [Select]
$current_time = $current_time + 1;
Das wars schon... / Thats it!
Grüsse Jones

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #12 on: February 20, 2008, 03:32:09 AM »
Quote
-finish upload > msg with all the same name > better name with fileext test 1, test 2

You use while loop but I see no counter for file. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #13 on: February 20, 2008, 06:01:59 AM »
Yes, is possible for help ... but I have question ...

why use multiupload action and uploadimage action in member.php at same time ? Both single ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BETA] for 1.7.6 Multiupload Vers. 2.0
« Reply #14 on: February 20, 2008, 01:52:24 PM »
Quote
You have a better solution ?

WOW ! ... I check code in new and old version. Both use 2 action name for upload ???  8O

I now get what you try do with code and this is problem ...

1 - While loop is use and no value limit is set from admin and check in member.php file.
2 - You include class upload file in while loop.
3 - You send each email for each file upload (mass email - host no like this).
4 - You no use safe html chars (format_text switch) for new name.

This is wrong ... this is very wrong ...  this is kill gallery ressource (no matter old version or new version - axcept no. 4 - is no ressource use but safety no use) - please ... cancel this MOD NOW 8O

I create this later.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?