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)

Trescom 10-26-2009 08:06 PM

It's not the same.

Firstly, pointing:
Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js%22%3E%3C/"></script>
is pointless. And it shows exactly your forum path. Which imho is not too safe. (Correct me if i am wrong).
That's why i think pointing just the file:
Code:

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
is much safer.

Secondly, if you open any tag (here it's <script type="...), you have to close it (</script>).
There is no closing script tag in ChopSuey's example in the second line, and there should be. Otherwise every template i've tried will crash.

trotskid 10-26-2009 08:59 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.

Thanks, now runs better (Opera for ex), but in FF with smooth scrolling or SmoothWheel still slows down a little bit.

Trescom 10-26-2009 09:49 PM

You are welcome :)

It is strange that you have problems in FF. Did you check if there is no update for FF? The newest version is 3.5.3. I am using only FF and i have no problems with it.

Also, maybe try and reinstall FF.

For now none of my users complained about that mod :)

trotskid 10-26-2009 10:28 PM

Well, some users I asked think the same :rolleyes:. With K-Meleon (Firefox engine) for ex. runs very bad..

Have you try to use SmoothWeel for FF? It's smoother and sensitive. Maybe you'll notice with this.

PS: I use the latest version of FF.

ChopSuey 10-27-2009 01:07 AM

Anyways, i fixed it back. Seems Hostboard was wrong about fixing some dude's problem lol.

Shaheen 10-27-2009 04:06 AM

awesome dude

ChopSuey 10-27-2009 04:43 AM

Click install? xD

Trescom 10-27-2009 10:17 AM

ChopSuey, are you sure your code is correct?

If i paste your example:
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">

All my templates are crushing.
When i close the tag (on red):
Code:

<script type="text/javascript" src="scrolltopcontrol.js"></script>
Only than everything works fine.

trotskid i will try SmoothWeel today and let you know.

------------------------------------------
EDIT:

trotskid i've installed SmoothWeel add-on and for me this mod still works fine with it. I don't see any changes.
If the scrolling speed is too slow for you, you can always change it in scrolltopcontrol.js file. Edit that file and in the 11th line you will find:
Code:

setting: {startline:1000, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
Text i've selected on red is the speed you can play with. Maybe changing the speed will help a little bit. Just lower the number (default is 1000) and check it.

ChopSuey 10-27-2009 02:25 PM

Fixed and added more images.

New Joe 10-27-2009 02:30 PM

It doesn't work, it looks like it has a problem if you are running this mod: https://vborg.vbsupport.ru/showthread.php?t=217847
It doesn't show up and the vbMoods mod doesn't work right.


All times are GMT. The time now is 03:32 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.01040 seconds
  • Memory Usage 1,741KB
  • 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
  • (7)bbcode_code_printable
  • (1)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