coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: bmgaspard on June 15, 2006, 12:42:19 AM

Title: Upload Notification
Post by: bmgaspard on June 15, 2006, 12:42:19 AM
I have searched for this, and must be looking for the wrong subject. I have a few ppl on my site that either continue to hit the continue button for uploading or refresh the screen while uploading because there is nothing telling them to please wait, or a progress bar allowing them to se the progress of their uploads. Is there a fix/hack for this, or is it a theme specific thing.

Thanks in advance
Title: Re: Upload Notification
Post by: Nibbler on June 15, 2006, 01:56:43 AM
Edit upload.php

find


// Create the submit button and close the form.
echo <<<EOT
        <tr>
                <td colspan="2" align="center" class="tablef">
                        <input type="submit" value="{$button_value}" class="button" />
                </td>

        </tr>

EOT;


change to


// Create the submit button and close the form.
echo <<<EOT
        <tr>
                <td colspan="2" align="center" class="tablef">
                        <input type="submit" value="{$button_value}" class="button" onclick="this.disabled=disabled;this.value='Uploading...'"/>
                </td>

        </tr>

EOT;


It means nothing really but it should do the job.
Title: Re: Upload Notification
Post by: Abbas Ali on June 15, 2006, 01:30:39 PM
Will it be useful if we put this in core code?
Title: Re: Upload Notification
Post by: Sami on June 15, 2006, 01:50:08 PM
good idea  ;)