I have been reading al lot of post about the possibility for a progress bar on the coppermine upload page. And i found out that this was impossible.
But i wanted to have it anaway.
So i decited make something that is the closest thing to an progress bar,
And i come up whit the idea to use a bar that just keeps loading if you press the upload button. (so it doesnt know how long the upload wil take it just ceeps loding and loading)
I used the bar from
http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htmthis bar included in coppermine can look liks this: (img is in dutch language)
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg181.imageshack.us%2Fimg181%2F7555%2Fcopperminewy2.jpg&hash=c29065a6e4422e9e341507777e4c23c0fabb599c)
This bar is just somthing so that people know that the site is bussy and the don't click again on the button or do anything stupid.Ive testid it with ie and firefox
So how does this work:
step 1:
Copy this code between the header tags of your template: themes/YOUR_THEME/template.html
<script language="javascript" src="xp_progress.js">
/***********************************************
* WinXP Progress Bar- By Brian Gosselin- http://www.scriptasylum.com/
* Script featured on Dynamic Drive- http://www.dynamicdrive.com
***********************************************/
</script>
step 2:
Open upload.php (main directory of coppermine):
and look for:
<input type="submit" value="{$button_value}"
And past after that:
onclick="javascript:bar1.showBar()"
The result wil look like this:
<input type="submit" value="{$button_value}" onclick="javascript:bar1.showBar()" class="button"/>
Then past this code on the place you want the loading bar to be shown. i past it directly under the upload button (the code above is the upload button):
<script type="text/javascript">
var bar1= createBar(300,15,'white',1,'black','blue',85,7,3,"");
</script>
Than you need tho upload everything including the attached file:
xp_progress.jsthe xp_progress.js file need to be uploaded in the main directory
* if jou go to
http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm you can read more about chancing the color of the bar
* you must not download the xp_progress.js file from that website, i modified it a little (the bar is now