[username:test][password:test] (thanks to acidburn0520 )
Functions
--------------
If you can't already tell from the example, you can set anchors in your posts via the [anchor] tag, and create a link that enables the user to jump to them via the [jump] tag. This comes very handy if you want to make a navigation for your forum rules, tutorials, or any other list-type post. Best of all, using cube root, the javascript function I made allows for a smooth/exponential jump.
Features
------------
prioritization: if there are multiple anchors - it uses DOM nesting detection to choose the anchor which is within the post containing the jump tag being clicked
optional cross-page jumping (hyper-link to anchors!)
optional key-shortcuts (remembers last anchor and last jump)
uses setInterval as oppose to a loop for best performance
works on all internet browsers
works on every version of vBulletin
Installation
------------------
Just download the zipped txt attached to this post with the 3 easy installation steps. Follow them and it's as easy as cake. Enjoy!
To hyperlink anchors, your link must contain a reference to the post the anchor is in and the anchor of which to jump to
Heres the 2 possible ways (order of paramters doesn't matter - as long as the link contains the anchor parameter and a hash(#) to the post, or the p parameter to the post):
nameofanchor is the name of the anchor
1337 is the number of the post which contains the anchor
Btw - could you post a link to an example of the hack on your forum so future viewers get a better idea of it - thanks.
That's what I was planning on doing. I'm currently setting it up in my thread right now. I'll edit this post with a link when I'm finished. Thank you so much!
Edit: Okay, here's a demo link on my board.
Login with username: test
Login with password: test
That's what I was planning on doing. I'm currently setting it up in my thread right now. I'll edit this post with a link when I'm finished. Thank you so much!
Just noticed you posted the link. Make sure you also update both your anchor and jump bbcode replacement values because as I look - the anchor bbcode is still a div tag. Just download the zipped txt and replace the anchor and jump replacement values with the new ones - thanks!
Just noticed you posted the link. Make sure you also update both your anchor and jump bbcode replacement values because as I look - the anchor bbcode is still a div tag. Just download the zipped txt and replace the anchor and jump replacement values with the new ones - thanks!
By the way, nice forum!
Yeah a thread with 95 Glitches and I had to jump tag and anchor tag all of them...whew... what a work out. I was in no mood to go into the ACP and start changing BBCodes, lol. I'll do that now, though. Thanks for the compliment, I try to make it look nice... can't wait till the stable release of 3.5 though, I'm ready for a new template!
Someone alerted me that if the browser is in the middle of doing a 'jump' you cannot switch to another tab/window in the browser until the jump is finished. I believe this is due to my loop.
I'll have to change the scroll actions to setTimeout.
Someone also alerted me that if someone posted an anchor tag in a post below someone elses post - the person with the above post can edit his post to have an anchor with the same name which would OVERRIDE the anchor in the post below.
I'll have to add a different function rather than getElementById - which will only check for anchors within the post the anchor is within.
I'm also going to have an autoinstaller made shortly.
Mmm... the overriding thing could become a problem. At the moment I haven't disclosed how to use the vBCode to my Forum Members, so atleast they won't know how to use it. As for the tab problem... it's not like the jump takes more than 5 seconds to do... can't they wait they long to switch to another tab?