vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - To-the-top button in postbit footer. (https://vborg.vbsupport.ru/showthread.php?t=235530)

doopz 03-18-2010 01:05 PM

nice, thanks :)

LifesGreatestGift 03-19-2010 05:58 AM

Quote:

Code:

<!-- ////////start To-The-Top button in postbit////// -->
<span class="seperator">&nbsp;</span><a class='tothetop' href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;"><img src="{vb:raw vboptions.cleargifurl}" alt="...to the top" />{vb:rawphrase top}</a>
<!-- ////////end To-The-Top button in postbit////// -->


May I make a suggestion? :)

Change:

onclick="document.location.hash='top'; return false;"

To:

onclick="window.scrollTo(0,0); return false;"


Works a lot better :)

doopz 03-19-2010 01:32 PM

Quote:

Originally Posted by markwein (Post 2005186)
I'm getting the same issue....

Quote:

Originally Posted by TheWindows7Site (Post 2006299)
May I make a suggestion? :)

Change:

onclick="document.location.hash='top'; return false;"

To:

onclick="window.scrollTo(0,0); return false;"


Works a lot better :)

Would that by any change fix this problem? :)

Popa Andrei 03-19-2010 02:43 PM

Quote:

Originally Posted by TheWindows7Site (Post 2006299)
May I make a suggestion? :)

Change:

onclick="document.location.hash='top'; return false;"

To:

onclick="window.scrollTo(0,0); return false;"


Works a lot better :)

wath does this exactluy do?

markwein 03-19-2010 09:38 PM

Quote:

Originally Posted by TheWindows7Site (Post 2006299)
May I make a suggestion? :)

Change:

onclick="document.location.hash='top'; return false;"

To:

onclick="window.scrollTo(0,0); return false;"


Works a lot better :)

Thanks! it seems to work really well now!

Popa Andrei 03-20-2010 12:37 AM

works great.No more white pages :D

Front Range 4x4 03-20-2010 12:48 AM

Installing this mod eliminates the white pages too: https://vborg.vbsupport.ru/showthread.php?t=180330

trilOByte 05-13-2010 09:50 PM

Quote:

Originally Posted by TheWindows7Site (Post 2006299)
May I make a suggestion? :)

Change:

onclick="document.location.hash='top'; return false;"

To:

onclick="window.scrollTo(0,0); return false;"


Works a lot better :)

Thanks for that.

Untested as yet, but vBulletin seem to be using...

onclick="self.scrollTo(0, 0); return false;"

Minor difference, I'll update the mod. :)

steeler7 05-14-2010 04:09 PM

Both The windows7site and trilobytes suggestions are yielding the white screen for me..

basically it happens right after you make a Quick Reply post. If you go and click the "to the top" button with that Quick Reply Post you make, it gives you a white screen

Alec W 05-20-2010 06:47 PM

Quote:

Originally Posted by steeler7 (Post 2036999)
Both The windows7site and trilobytes suggestions are yielding the white screen for me..

basically it happens right after you make a Quick Reply post. If you go and click the "to the top" button with that Quick Reply Post you make, it gives you a white screen


onclick="window.scrollTo(0,0); return false;" fixed it on our forum.


All times are GMT. The time now is 01:05 PM.

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.01104 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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