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-24-2009 10:00 PM

Automatically Scroll To Top
 
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.

MagicThemeParks 10-25-2009 05:45 PM

Interesting. I might look into using this in the future. :)

The image is editable, I assume. Right?

COL NIL SATIS 10-25-2009 05:59 PM

thats a cracking litttle mod that is!!! nice work

goxy63 10-25-2009 06:05 PM

Looks great, tagged, rated, nominated will install ASAP to try it out

Thanks

johnrizz 10-25-2009 06:15 PM

haha, cool little mod!

COL NIL SATIS 10-25-2009 06:20 PM

installed!!! works great...any chance of changing the button image??

dutchbb 10-25-2009 06:35 PM

Nice mod, just needs a button to fit more skins.

jorge_kai 10-25-2009 08:39 PM

fantastic!

johnrizz 10-25-2009 09:41 PM

Why can't you just upload your own button? just give it the same name and replace the button...

goxy63 10-25-2009 10:12 PM

Quote:

Originally Posted by dutchbb (Post 1906053)
Nice mod, just needs a button to fit more skins.

You're a designer why not create some and ....as "stone0075 " already mentioned :D

Just installed, it rocks

Would like to ask how to change of speed when "scrolling" up, would like a bit slower if that is possible, I guess changing code in "scrolltopcontrol.js" but where and how?

Thanks

dutchbb 10-25-2009 10:40 PM

Even though I think this mod is nice, I'm not going to use it myself. Just thought a better default button would be nice for those that can't create one :)

ChopSuey 10-26-2009 02:23 AM

You can have any image with a .jpg extension named up. ANd you will be fine. You can also use a picture of yourself haha.

FreshFroot 10-26-2009 06:05 AM

nice work and use of jquery :D

Only thing I might change is the position. I am using the cometchat mod, so it had a bar at the bottom as well.

ChopSuey 10-26-2009 06:13 AM

:) Glad you like it, i don't have Comet chat installed. I'll see if i can make it pop up in the middle of the page or something.

danyz81 10-26-2009 06:57 AM

nice! thanks ;)

ChopSuey 10-26-2009 07:03 AM

Your welcome Danzy :)
-----------
If you haven't marked as installed i will not provide support.

cindy helmond 10-26-2009 07:18 AM

Quote:

Originally Posted by FreshFroot (Post 1906295)
nice work and use of jquery :D

Only thing I might change is the position. I am using the cometchat mod, so it had a bar at the bottom as well.

yes me to !!

trotskid 10-26-2009 10:09 AM

Very nice addon, but it slows down for most users the scroll navigation, so uninstalled :(

Michael.A 10-26-2009 10:10 AM

next time give credit http://www.undergroundteam.org/index.php

Hostboard 10-26-2009 10:18 AM

Quote:

Originally Posted by MAD--DOG (Post 1906356)


I would consider this more of a find...

http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

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.

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 06:31 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.01584 seconds
  • Memory Usage 1,838KB
  • 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
  • (17)bbcode_code_printable
  • (1)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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