• [MOD] Progress Popup for Image Upload 5 0 5 1
Currently:  

Author Topic: [MOD] Progress Popup for Image Upload  (Read 44571 times)

0 Members and 1 Guest are viewing this topic.

Offline macmaster_it

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #15 on: August 31, 2006, 02:15:14 PM »
Hi Leute,
komisch, bei mir gibr es keine Probleme.
mit firefox-popupblockerr ist an, läufts.
auch mit dem explorer sowohl auf 2000 als auch xp läufts.
selbst mit mac gab es keine probleme.
fenster öffnet sich auch erst, wenn man auf submit klickt...
also, wo ist das problem???
ggf. kontrollier nochmal alles....
oder schick mal deine mod. dateien als anhang....

muß doch ne lösung geben, kann ja nich sein, daß das nicht zu lösen ist...
bis dann

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #16 on: August 31, 2006, 02:40:09 PM »
@ Jens

... einfach mal testen ... ( wie bereits gesagt ... diese Variante des Progress Popup findest du auf der Expert-Upload-Seite )
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Progress Popup for Image Upload
« Reply #17 on: August 31, 2006, 08:53:50 PM »
@ Jens

... einfach mal testen ... ( wie bereits gesagt ... diese Variante des Progress Popup findest du auf der Expert-Upload-Seite )

HI,

habe eben nochmal bei dir geschaut und wenn ich in den Expert Modus gehe dann beschwert sich auch gleich wieder der Blocker von Firefox.

Wenn ich in den Easy Modus gehe dann sehe ich mitten auf der Seite ein Upload Fenster. Soll das da schon sein obwohl noch nichts hochgeladen wird???

Wo finde ich diese Version des Mods???
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline techmob

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #18 on: September 01, 2006, 06:52:25 PM »
any demos guys?

Offline tdkpaul

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #19 on: September 01, 2006, 08:00:48 PM »
in acp you can test it


skiemor

  • Guest
Re: [MOD] Progress Popup for Image Upload
« Reply #20 on: January 20, 2008, 11:40:08 PM »
Hi Leute, hab heut mal an dem Mod rumgespielt. Ergebnis: Totalumbau!!
also macht alles wieder rückgängig und folgt mir....
damit es alle verstehen, wechsel ich auf englisch...Mit der Bitte meinen geänderten Mod an 1.Stelle zu setzten und den "Versuch" zu entfernen...


Funktioniert gut. Nur bei jedem Aufruf der member.php meldet sich der Popup-Blocker, auch wenn keine Datein hochgeladen werden soll.
Aber das Problem ist wohl schon bekannt hier, oder?

Chris.

Offline www.katzen.ag

  • Jr. Member
  • **
  • Posts: 75
  • KatzenAG - das grosse Katzenportal im Internet
    • View Profile
    • KatzenAG - das grosse Katzenportal im Internet
Re: [MOD] Progress Popup for Image Upload
« Reply #21 on: January 25, 2008, 11:35:32 PM »
Beim IExplorer schließt sich das Popupfenster nicht, beim Firefox kappt es... woran kann es liegen?

The Popup does not close in IExplorer, in Firefox it does, why?
KatzenAG - das grosse Katzenportal im Internet

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #22 on: January 25, 2008, 11:46:17 PM »
... arbeite eigentlich genauso wie es standardmäßig im ACP installiert ist ...
... schließt denn im ACP das Popup z.B. nachdem du eine Bilddatei bearbeitet hast ... ?
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 www.katzen.ag

  • Jr. Member
  • **
  • Posts: 75
  • KatzenAG - das grosse Katzenportal im Internet
    • View Profile
    • KatzenAG - das grosse Katzenportal im Internet
Re: [MOD] Progress Popup for Image Upload
« Reply #23 on: January 26, 2008, 12:21:33 AM »
Ja, im ACP funktioniert alles einwandfrei. Wie gesagt, im Firefox kein Problem, nur im IExplorer nicht...seltsam, seltsam... :(
KatzenAG - das grosse Katzenportal im Internet

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [MOD] Progress Popup for Image Upload
« Reply #24 on: June 18, 2008, 02:54:36 PM »
Hallo

Konnte jemand dieses Problem mit dem Schliessen des Pop ups beheben?!?
Bei mir funktioniert es im ACP einwandfrei, jedoch beim Uploadformular nur halbwegs.
Zusätzlich verwende ich noch Frames, was diese Problematik schwieriger macht.

Jedoch, wenn das Formular nicht ganz ausgefüllt wird und die member.php Seite einen Fehler wegen eines nicht ausgefüllten Formulars macht (z.B. falscher Captcha-Code), dann wird das Pop up einwandfrei geschlossen.
Nur wenn nach dem Bild-Upload die Meldung "Bild erfolgreich hinaufgeladen" kommt, dann wird das Popup nicht geschlossen (Firefox + IE + Safari).
Woran kann dies liegen? Wegen eines Gebrauchs von einem anderen Template-File?
Danke für eure Antworten.

Gruss Jones

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [MOD] Progress Popup for Image Upload
« Reply #25 on: June 25, 2008, 02:33:46 PM »
Hallo!

Ich habe eine mögliche Lösung. Bei mir funktioniert es... Bei euch auch?

Füge zuoberst bei der Datei member_uploadform.html folgendes ein:
Code: [Select]
<body onUnload="hideProgress();">
Gruss

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #26 on: June 25, 2008, 02:44:38 PM »
Frage!

Ist das behoben mit dem Pop-Up? Und läuft das denn unter 1.7.6 ?

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #27 on: August 06, 2008, 11:56:56 PM »
Hi Leute, hab heut mal an dem Mod rumgespielt. Ergebnis: Totalumbau!!
also macht alles wieder rückgängig und folgt mir....
damit es alle verstehen, wechsel ich auf englisch...Mit der Bitte meinen geänderten Mod an 1.Stelle zu setzten und den "Versuch" zu entfernen...


Hi all,
after I've add this Mod at my Homepage it don't work exaktly and I have changed it totally.
And now it works fine.
Remake all modifications and lat beginn anotherone...

File to modify:
  • ./template/<yourtemplate>/member.html
  • ./template/<yourtemplate>/member_uploadform.html
  • ./lang/english/main.php
  • ./lang/deutsch/main.php

File to make:
  • ./progress_2.php

File:
./template/<yourtemplate>/member.html

after:
Code: [Select]
{header}add:
Code: [Select]
<script language="JavaScript">
    <!--
    var statusWin, toppos, leftpos;
    toppos = (screen.height - 401)/2;
    leftpos = (screen.width - 401)/2;
    function showProgress() {
      statusWin = window.open('progress_2.php','Status','height=150,width=350,top='+toppos+',left='+leftpos+',location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes');
      statusWin.focus();
    }

    function hideProgress() {
      if (statusWin != null) {
        if (!statusWin.closed) {
          statusWin.close();
        }
      }
    }
   // -->
</script>
{hideProgress}
at the end before:
Code: [Select]
[footer}add:
Code: [Select]
<script language=javascript>
   <!--
   showProgress();
   hideProgress();
   // -->
</script>

File:
./template/<yourtemplate>/member-upload.html

at the top of the file ad:
Code: [Select]
<script language="JavaScript">
    <!--
    var statusWin, toppos, leftpos;
    toppos = (screen.height - 401)/2;
    leftpos = (screen.width - 401)/2;
    function showProgress() {
      statusWin = window.open('progress_2.php','Status','height=150,width=350,top='+toppos+',left='+leftpos+',location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes');
      statusWin.focus();
    }
   // -->
</script>
then find:
Code: [Select]
    <input type="submit" name="uploadbutton" value="{lang_submit}" class="button" />
and replace with
Code: [Select]
    <input type="submit" name="uploadbutton" value="{lang_submit}" class="button" onClick="showProgress()" />

File:
./lang/english/main.php
find:
[qcode]$lang['new_upload_validate_desc'] = "Your image will be validated once it has been reviewed.";[/qcode]
and add after:
Code: [Select]
$lang['upload_progress'] = "File upload in progress....";
$lang['upload_progress_desc'] = "This window will close automatically once the upload is completed.";


File:
./lang/deutsch/main.php
find:
Code: [Select]
$lang['new_upload_validate_desc'] = "Nach Überprüfung durch einen Administrator wird Ihr Bild freigeschaltet.";
and add after:
Code: [Select]
$lang['upload_progress'] = "Datei wird hochgeladen....";
$lang['upload_progress_desc'] = "Dieses Fenster schliesst sich automatisch,<br/>wenn der Datei-Upload beendet ist.";

than create File:
progress_2.php

(in the Root-Directory)
with this code:
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: progress.php                                         *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.3                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');

?>

<html>
<head>
<title><?php echo $lang['upload_progress']; ?><</title>
<link rel="stylesheet" href="./admin/cpstyle.css">
<script language="javascript1.2">
<!--
var start_pad = 2;
var end_pad = 2;
var sel = 0;
var mod = 3;
var timer;

var image_on = new Image();
image_on.src = 'admin/images/arrow.gif';
var image_off = new Image();
image_off.src = 'admin/images/spacer.gif';

function animate() {
  for (var i = start_pad; i < document.images.length - end_pad; i++) {
    if (i % mod == sel) {
      document.images[i].src = image_on.src;
    }
    else {
      document.images[i].src = image_off.src;
    }
  }
  sel++;
  if (sel == mod) {
    sel = 0;
  }
  start_animation();
}

function start_animation() {
  timer=window.setTimeout("animate();",250);
}

function stop_animation() {
  window.clearTimeout(timer);
}

// -->
</script>
</head>

<body onload="start_animation()">
<center>
<span class="title"><?php echo $lang['upload_progress']; ?></span>
<p>
<?php echo $lang['upload_progress_desc']; ?>
<p>
<table border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td> <img src="admin/images/folder_big.gif"> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/spacer.gif" width="8" height="11" /> </td>
  <td> <img src="admin/images/folder_big.gif" /> </td>
 </tr>
</table>
</center>
</body>

OK
that's all folk's

upload all files and have fun....

Thank's for the Idea!!!

Richtig nice. habs in meiner Liste mit aufgenommen!

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #28 on: July 24, 2009, 06:51:45 PM »
Nice idea, but firefox and IE block the popup for standard.
It's not user-friendly to "allow popups" manually.

Offline Boltning

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Progress Popup for Image Upload
« Reply #29 on: August 03, 2009, 11:00:53 PM »
Sorry if I can't understand all the post fully. I only know English
Is my attached progress upload popup image what this post / Mod is talking about?
If so this is currently working in the 4images admin. Will it also work for the users section?

edit: Yep - it's for the users section. Great  Mod mawenzi and great fix macmaster it.

Cool  :wink:
« Last Edit: August 04, 2009, 12:37:43 PM by Boltning »