vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Automatically Scroll To Top (https://vborg.vbsupport.ru/showthread.php?t=226762)

ChopSuey 10-26-2009 10:21 AM

Quote:

Originally Posted by trotskid (Post 1906355)
Very nice addon, but it slows down for most users the scroll navigation, so uninstalled :(

How does it slow it down? Works fine.

Hostboard 10-26-2009 10:27 AM

Quote:

Originally Posted by trotskid (Post 1906355)
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.

realdx 10-26-2009 10:59 AM

tagged!! nice!

valdet 10-26-2009 02:30 PM

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

Thanks

FTG STRYKER FG 10-26-2009 03:51 PM

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?

FTG STRYKER FG 10-26-2009 04:06 PM

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.

Hostboard 10-26-2009 04:31 PM

Quote:

Originally Posted by FTG STRYKER FG (Post 1906461)
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.

Hostboard 10-26-2009 04:33 PM

Quote:

Originally Posted by FTG STRYKER FG (Post 1906470)
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.

Trescom 10-26-2009 05:46 PM

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.

Hostboard 10-26-2009 06:10 PM

Quote:

Originally Posted by Trescom (Post 1906508)
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 :rolleyes:

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.


All times are GMT. The time now is 11:17 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.01054 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)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