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. ^^;


All times are GMT. The time now is 01:54 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.01199 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete