Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Automatically Scroll To Top Details »»
Automatically Scroll To Top
Version: 1.0, by ChopSuey ChopSuey is offline
Developer Last Online: Jul 2010 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.4 Rating:
Released: 10-24-2009 Last Update: Never Installs: 36
Template Edits
 
No support by the author.

Upload all files to forum root.
now add this to bottom of headinclude
HTML Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<script type="text/javascript" src="scrolltopcontrol.js"></script>
DEMO:
http://forum.gamingcube.org/
Scroll down the a the up button will appear, click it!
-----------------
Added more up images.

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.

    Comments
      #22  
    Old 10-26-2009, 10:21 AM
    ChopSuey ChopSuey is offline
     
    Join Date: Jun 2009
    Location: Alaska
    Posts: 2,140
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by trotskid View Post
    Very nice addon, but it slows down for most users the scroll navigation, so uninstalled
    How does it slow it down? Works fine.
    Reply With Quote
      #23  
    Old 10-26-2009, 10:27 AM
    Hostboard's Avatar
    Hostboard Hostboard is offline
     
    Join Date: May 2002
    Location: CT
    Posts: 843
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by trotskid View Post
    Very nice addon, but it slows down for most users the scroll navigation, so uninstalled
    Try this...

    Upload attached file to your client script folder.

    Change:
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs...n.js"></script>
    To:
    Code:
    <script type="text/javascript" src="http://www.YourDomain.xxx/ForumPath/...n.js"></script>
    This will allow you to self host the modificaiton instead of relying on an external source. Much better as if they go down this wont work.
    Reply With Quote
      #24  
    Old 10-26-2009, 10:59 AM
    realdx realdx is offline
     
    Join Date: Mar 2009
    Posts: 128
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    tagged!! nice!
    Reply With Quote
      #25  
    Old 10-26-2009, 02:30 PM
    valdet's Avatar
    valdet valdet is offline
     
    Join Date: Feb 2007
    Posts: 505
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    How to make this work with Go to Top text links?

    Thanks
    Reply With Quote
      #26  
    Old 10-26-2009, 03:51 PM
    FTG STRYKER FG FTG STRYKER FG is offline
     
    Join Date: Oct 2009
    Posts: 41
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Installed but not working on my site.

    - Downloaded files
    - Uploaded to my /forums folder (forum root)
    - added the following to my headerinclude template

    Code:
    <script type="text/javascript" src="http://www.fataltacticsgaming.com/forums/scrolltopcontrol.js"></script>
    
    <script type="text/javascript" src="scrolltopcontrol.js">
    Relaunched my site, tried to scroll down, image never appears.

    Any ideas?
    Reply With Quote
      #27  
    Old 10-26-2009, 04:06 PM
    FTG STRYKER FG FTG STRYKER FG is offline
     
    Join Date: Oct 2009
    Posts: 41
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    As soon as I changed my headerinclude to the following, it worked:

    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    
    <script type="text/javascript" src="scrolltopcontrol.js">


    Any idea as to why it doesn't work on my vBadvanced Homepage? Not a big issue, but would be nice if it worked there also.
    Reply With Quote
      #28  
    Old 10-26-2009, 04:31 PM
    Hostboard's Avatar
    Hostboard Hostboard is offline
     
    Join Date: May 2002
    Location: CT
    Posts: 843
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by FTG STRYKER FG View Post
    Installed but not working on my site.

    - Downloaded files
    - Uploaded to my /forums folder (forum root)
    - added the following to my headerinclude template

    Code:
    <script type="text/javascript" src="http://www.fataltacticsgaming.com/forums/scrolltopcontrol.js"></script>
     
    <script type="text/javascript" src="scrolltopcontrol.js">
    Relaunched my site, tried to scroll down, image never appears.

    Any ideas?
    You are combining the authors steps and mine and they are mixed up.
    Reply With Quote
      #29  
    Old 10-26-2009, 04:33 PM
    Hostboard's Avatar
    Hostboard Hostboard is offline
     
    Join Date: May 2002
    Location: CT
    Posts: 843
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by FTG STRYKER FG View Post
    As soon as I changed my headerinclude to the following, it worked:

    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
     
    <script type="text/javascript" src="scrolltopcontrol.js">


    Any idea as to why it doesn't work on my vBadvanced Homepage? Not a big issue, but would be nice if it worked there also.
    You will have to make sure the headinclude template is being called by vBadvanced. If not then you wil need to place this code in whatever header template they use.
    Reply With Quote
      #30  
    Old 10-26-2009, 05:46 PM
    Trescom's Avatar
    Trescom Trescom is offline
     
    Join Date: Sep 2008
    Location: Poland
    Posts: 33
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    ChopSuey, very nice idea. It is really handy if you have big Forum and must scroll all the way down and up to search it. But for me there is mistake. You forgot to close the tag </script> in the second line of your code.

    Also to make that mod work everyone should upload jquery-1.3.2.min file into their forum root folder.
    I've attached jquery-1.3.2.min.js file as the attachement below.

    1. Download jquery-1.3.2.min.js and unpack it to the scrolltopcontrol folder, so you will have jquery-1.3.2.min.js and scrolltopcontrol.js in the same folder.
    2. Upload jquery-1.3.2.min.js, scrolltopcontrol.js and up.png to your Forum root folder.
    3. Copy corrected code seen below and paste it at the bottom of your headinclude template.

    The code you should paste in the headinclude should look like:
    Code:
    <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
    
    <script type="text/javascript" src="scrolltopcontrol.js"></script>

    Thanks to that, your Forum will use the file that is on the same server, than using external address like:
    Code:
    http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
    and the mod will also work faster.
    Reply With Quote
      #31  
    Old 10-26-2009, 06:10 PM
    Hostboard's Avatar
    Hostboard Hostboard is offline
     
    Join Date: May 2002
    Location: CT
    Posts: 843
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Trescom View Post
    ChopSuey, very nice idea. It is really handy if you have big Forum and must scroll all the way down and up to search it. But for me there is mistake. You forgot to close the tag </script> in the second line of your code.

    Also to make that mod work everyone should upload jquery-1.3.2.min file into their forum root folder.
    I've attached jquery-1.3.2.min.js file as the attachement below.

    1. Download jquery-1.3.2.min.js and unpack it to the scrolltopcontrol folder, so you will have jquery-1.3.2.min.js and scrolltopcontrol.js in the same folder.
    2. Upload jquery-1.3.2.min.js, scrolltopcontrol.js and up.png to your Forum root folder.
    3. Copy corrected code seen below and paste it at the bottom of your headinclude template.

    The code you should paste in the headinclude should look like:
    Code:
    <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
     
    <script type="text/javascript" src="scrolltopcontrol.js"></script>

    Thanks to that, your Forum will use the file that is on the same server, than using external address like:
    Code:
    http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
    and the mod will also work faster.
    https://vborg.vbsupport.ru/showpost....1&postcount=22

    Also JavaScript files should be contained in your clientscript folder in order to maintain the same placement of files as VB's default convention. Thus the coders initial file should be copied there and the path edited accordingly.
    Reply With Quote
    Reply

    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT. The time now is 04:09 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.08665 seconds
    • Memory Usage 2,320KB
    • Queries Executed 26 (?)
    More Information
    Template Usage:
    • (1)SHOWTHREAD
    • (1)ad_footer_end
    • (1)ad_footer_start
    • (1)ad_header_end
    • (1)ad_header_logo
    • (1)ad_navbar_below
    • (1)ad_showthread_beforeqr
    • (10)bbcode_code
    • (1)bbcode_html
    • (5)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (4)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (4)pagenav_pagelink
    • (11)post_thanks_box
    • (11)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (11)post_thanks_postbit_info
    • (10)postbit
    • (11)postbit_onlinestatus
    • (11)postbit_wrapper
    • (1)spacer_close
    • (1)spacer_open
    • (1)tagbit_wrapper 

    Phrase Groups Available:
    • global
    • inlinemod
    • postbit
    • posting
    • reputationlevel
    • showthread
    Included Files:
    • ./showthread.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/functions_bigthree.php
    • ./includes/class_postbit.php
    • ./includes/class_bbcode.php
    • ./includes/functions_reputation.php
    • ./includes/functions_post_thanks.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
    • showthread_start
    • showthread_getinfo
    • forumjump
    • showthread_post_start
    • showthread_query_postids
    • showthread_query
    • bbcode_fetch_tags
    • bbcode_create
    • showthread_postbit_create
    • postbit_factory
    • postbit_display_start
    • post_thanks_function_post_thanks_off_start
    • post_thanks_function_post_thanks_off_end
    • post_thanks_function_fetch_thanks_start
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • fetch_musername
    • postbit_imicons
    • bbcode_parse_start
    • bbcode_parse_complete_precache
    • bbcode_parse_complete
    • postbit_display_complete
    • post_thanks_function_can_thank_this_post_start
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete