Anchor and Jump BBCode!
Mod Version: 1.00, by pimpery
This modification is in the archives.
vB Version: 3.5.0 Beta 3 |
Rating: (3 votes - 4.33 average) |
Installs: 32 |
Released: 10 Jul 2005 |
Last Update: Never |
Downloads: 93 |
Not Supported
|
This hack adds 2 BBCodes to your forum: [anchor] and [jump]
Demo: http://www.socomcity.net/forum/showthread.php?p=7353
Cross-Page Jump Demo: http://www.socomcity.net/forum/index.php (below the header, Latest Glitches Added)
[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!
Hyperlinking Anchors
------------------------------ 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
- http://site.com/etcetcetc?anchor=nameofanchor&p=1337
- http://site.com/etcetcetc?anchor=nameofanchor#post1336
Key-Shortcuts
------------------------------ There are two keyshortcuts: Alt+A and Alt+J
- Alt+A (Anchor Shortcut) jumps you to the last anchor that you previously jumped to
- Alt+J (Jump Shortcut) jumps you to the last jump tag you previously clicked
Download
This modification is archived and cannot be downloaded.
|