Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   phUploader Customize (https://novahq.net/forum/showthread.php?t=44867)

hysteriksmile 03-22-2010 04:23 PM

phUploader Customize
 
Hi guys, I'm an italian user so sorry for my bad english :p

The script is wonderful! :) but i want to ask you some changes...the message of successful and error message can be view to an alert? and then..you can create a little admin panel to see the file that the user just uploaded? without using any time the ftp program to download the files?


thank so much for replies ;)

Scott 03-23-2010 08:20 AM

An admin panel is beyond the scope of this script, it's purpose is to be extremly simple drop in upload script. I doubt there will ever be an admin panel made by myself, although others are welcome to create one and post it on the forums here.

For the javascript alerts:

Near line 388 Remove:
PHP Code:

    <?If($display_message){?>
    <tr>
        <td colspan="2" class="message">
        <br />
            <?=$display_message;?>
        <br />
        </td>
    </tr>
    <?}?>

For every $success and $error, remove both <b> and </b>, and also change the trailing <br /> to \n:

Example: Change
PHP Code:

$error.= "<b>FAILED:</b> ".$_FILES['file']['name'][$i]." <b>REASON:</b> File to large.<br />"

TO:
PHP Code:

$error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: File to large.\n"

Near Line 267:
After:
PHP Code:

$display_message=$success.$error

Add:
PHP Code:

echo "<script type=\"text/javascript\">alert('".$display_message."');</script>"


hysteriksmile 03-23-2010 04:23 PM

thank you so much works perfectly! :clap:

but if i want add an error message to time-out server upload how i can do?

Scott 03-24-2010 07:58 AM

Thats a little trickier and off the top of my head I don't know a way to do that without flash...

hysteriksmile 03-24-2010 11:41 AM

don't worry was not really necessary ;)

The script now it's fantastic! :clap2: thank you so much to helpme! bye :wave2:


All times are GMT -5. The time now is 12:10 AM.

Powered by vBulletin®