Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-22-2010, 04:23 PM
hysteriksmile is offline hysteriksmile
Registered User

Join Date: Mar 2010
Posts: 4

phUploader Customize

Hi guys, I'm an italian user so sorry for my bad english

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

Last edited by hysteriksmile; 03-23-2010 at 05:53 AM.
Reply With Quote
  #2  
Old 03-23-2010, 08:20 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

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>"
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 03-23-2010, 04:23 PM
hysteriksmile is offline hysteriksmile
Registered User

Join Date: Mar 2010
Posts: 4

thank you so much works perfectly!

but if i want add an error message to time-out server upload how i can do?
Reply With Quote
  #4  
Old 03-24-2010, 07:58 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

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

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #5  
Old 03-24-2010, 11:41 AM
hysteriksmile is offline hysteriksmile
Registered User

Join Date: Mar 2010
Posts: 4

don't worry was not really necessary

The script now it's fantastic! thank you so much to helpme! bye
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PhUploader problem buggerwepisspoo phphq.Net Forums 0 09-21-2008 06:18 PM
phUploader sof-com phphq.Net Forums 1 05-25-2008 02:50 AM
phUploader help lodupersempre phphq.Net Forums 0 05-12-2008 08:30 AM
phUploader question DevilDog#1 Web design and Programming 4 01-17-2006 03:03 PM


All times are GMT -5. The time now is 06:21 AM.




Powered by vBulletin®