vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [Release - Gamma] Psuedo-progress bar for uploading attachments (https://vborg.vbsupport.ru/showthread.php?t=88332)

tubedogg 12-05-2003 10:00 PM

[Release - Gamma] Psuedo-progress bar for uploading attachments
 
Firstly I would like to apologize to Kier for ripping the progress.gif file off his site...but I searched and searched and searched and could find NOTHING to use for it, so there it is. Make your own if you can. https://vborg.vbsupport.ru/

Anyway this is a pseudo-progress bar for when you are uploading attachments, to show that something is happening.

Real easy, edit one template then upload the attached gif file and it works a treat.

In the newattachment template, right above </head>, place this code:
Code:

<script language="JavaScript">
function render(t) {
        document.getElementById(t).style.display="";
}
</script>

Next find
Code:

                                        <td align="$stylevar[right]"><input type="submit" class="button" name="upload" value="$vbphrase[upload]" style="width:70px" /></td>
and replace it with
Code:

                                        <td align="$stylevar[right]"><input type="submit" class="button" name="upload" value="$vbphrase[upload]" style="width:70px" onClick="render('progress')" /></td>
Finally, look down a few lines and find
Code:

                                </table>
                        </fieldset>

and replace it with
Code:

                                </table>
                                <div align="center" style="display:none;" id="progress"><img src="progress.gif" border="0"></div>
                        </fieldset>

Save and you're done. This should work in IE5+, Mozilla, Firebird, Netscape 7, and most other modern browsers, though I have only tried it in IE and Firebird.

Edit: Instructions are now also in an attached text file, the progress.gif file you need is also attached.

Asterik 12-05-2003 10:19 PM

Very nice :D

imported_Skinny 12-06-2003 12:38 AM

Doesn't seem to work for me. Uploading fails.

tubedogg 12-06-2003 12:40 AM

Do you get any errors? What browser are you using?

imported_Skinny 12-06-2003 12:43 AM

Hi mate. Ive tried using it with IE 6.0 and Firebird 0.7.
Having now looked at this, I have a feeling its not the mod that doesn't work.

Because I reverted back to the original style and am still getting the same error which is that the file simply failed.

MrNase 12-06-2003 01:10 AM

Quote:

Originally Posted by tubedogg
Firstly I would like to apologize to Kier for ripping the progress.gif file off his site...but I searched and searched and searched and could find NOTHING to use for it, so there it is. Make your own if you can. [img]images/smilies/tongue.gif[/img]

Anyway this is a pseudo-progress bar for when you are uploading attachments, to show that something is happening.

Real easy, edit one template then upload the attached gif file and it works a treat.

In the newattachment template, right above </head>, place this code:
Code:

<script language="JavaScript">
  function render(t) {
          document.getElementById(t).style.display="";
  }
  </script>

Next find
Code:

                                        <td align="$stylevar[right]"><input type="submit" class="button" name="upload" value="$vbphrase[upload]" style="width:70px" /></td>
and replace it with
Code:

                                        <td align="$stylevar[right]"><input type="submit" class="button" name="upload" value="$vbphrase[upload]" style="width:70px" onClick="render('progress')" /></td>
Finally, look down a few lines and find
Code:

                                </table>
                          </fieldset>

and replace it with
Code:

                                </table>
                                <div align="center" style="display:none;" id="progress"><img src="progress.gif" border="0"></div>
                          </fieldset>

Save and you're done. This should work in IE5+, Mozilla, Firebird, Netscape 7, and most other modern browsers, though I have only tried it in IE and Firebird.

please put that in a *.txt-file and attach the file :)

Brad 12-06-2003 02:20 AM

Hi tubedogg, nice to see you over here. Can you put the modification in a .txt file? :) thanks.

idwf 12-06-2003 03:36 AM

works a treat!

imported_Skinny 12-06-2003 03:46 AM

Yep, its working great for me now. The problem I was having ahd nothing to do with the mod, it was a known error in the functions file.
Thanks again :)

Tony G 12-06-2003 09:53 AM

Great mod tubedogg, and good to see you here. But yeah, I second Brad.loo's statement of putting it into a document file. ^^;

idwf 12-06-2003 11:23 AM

hmm. he only done 2 posts. it may be better if you done it for him :p

Brad 12-06-2003 11:25 AM

Quote:

Originally Posted by Magik
hmm. he only done 2 posts. it may be better if you done it for him :p

Of which both where yesterday and in this thread. ;)

idwf 12-06-2003 12:32 PM

fair enough...you're the boss! :p

tubedogg 12-06-2003 02:25 PM

Done.

[and 10]

Luciolle 12-06-2003 07:13 PM

Thanks alot for the quick change for gamma version !

Good job !

PGU 12-06-2003 11:03 PM

the gif doesnt animate for me when i upload something

Schorsch 12-07-2003 12:13 AM

Quote:

Originally Posted by PGU5802
the gif doesnt animate for me when i upload something

I have the same problem :(

WinXP, IE6

PGU 12-07-2003 12:20 AM

same for me XP home IE 6

SirSteve 12-07-2003 12:31 AM

Nice touch indeed. Thanks.

Dart1337 12-07-2003 04:11 PM

That isn't an animated gif?

tubedogg 12-07-2003 04:36 PM

Quote:

Originally Posted by Dartigan
That isn't an animated gif?

Yes it is...?!?

It worked fine for me on IE6 SP1/WinXP Pro...? Does the image show at all, or is it just not animating?

Dart1337 12-07-2003 05:12 PM

Well, it isn't animating. I'm running IE6/ SP1/WinXP Home. I went through the trouble of making my own animated gif and uploaded it and now it isn't animating. I wonder if it's a setting with ZoneAlarm somewhere. *mumbles*

sabret00the 12-10-2003 02:01 AM

yep it is, turn animation on :)

gmarik 12-10-2003 10:31 AM

Like could somebody try to make not a pseudo, but a real upload bar, with real %?

matthepepe 12-12-2003 08:42 PM

The gif doesnt play it loads the first frame and stops..... kind of odd... this is w/ IE6

PAINTBALLM 12-12-2003 10:01 PM

gif loads first frame, and doesn't animate any after that. I am on XP PRO with IE6. I have tested in mozilla, still no luck.

imported_chewy 12-13-2003 05:54 PM

I have done a new progress graphic, its the same sort of colour scheme as the default gamma release. I did it with flash so I have added the .swf file as well as the gif ( the .swf is better quality).

C.Birch 12-13-2003 08:37 PM

Quote:

Originally Posted by PGU5802
the gif doesnt animate for me when i upload something

same here again xp home and ie6

Elmer 12-13-2003 09:01 PM

Quote:

Originally Posted by C.Birch2
same here again xp home and ie6

me too xp pro and ie6

Cassidy 12-17-2003 03:32 PM

Quote:

Originally Posted by gmarik
Like could somebody try to make not a pseudo, but a real upload bar, with real %?

I agree, it is possible if you use some coding from dynamicdrive's progress bar.

canadian06 05-04-2006 12:33 AM

I was wondering about a putting a some words that will show up with every file that is posted...can someone tell me how to add something like this...


All times are GMT. The time now is 05:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01325 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete