vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Anchor and Jump BBCode! (https://vborg.vbsupport.ru/showthread.php?t=91896)

pimpery 07-09-2005 10:00 PM

Anchor and Jump BBCode!
 
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 :D)



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

sirbutts 07-10-2005 12:56 AM

Ahh - see you also posted the hack in the 3.5 forum. I guess after 3.5 becomes official, I'll install it again after upgrading to 3.5 :D

Cap'n Steve 07-10-2005 03:53 AM

Ooooh, that scrolling is nice. Thanks for the hack!

Kirk Y 07-10-2005 04:12 AM

Yeah I'm waiting for the supported release of 3.5.0 before I begin to install plugins and hacks. I don't want to lose all my work because of a bux fix.

pimpery 07-10-2005 03:45 PM

Quote:

Originally Posted by acidburn0520
Yeah I'm waiting for the supported release of 3.5.0 before I begin to install plugins and hacks. I don't want to lose all my work because of a bux fix.

Yeh, it's best to do that. Sirbutts looks like he's doing the same thing - from what he posted.

tamarian 07-10-2005 03:59 PM

Good one :up: /installs

pimpery 07-11-2005 01:41 PM

Updated!
Few bugs fixed.
Optional cross-page jumping feature added (hyperlink an anchor!) :D

sirbutts 07-11-2005 06:39 PM

Quote:

Originally Posted by pimpery
Updated!
Few bugs fixed.
Optional cross-page jumping feature added (hyperlink an anchor!) :D

I know I posted the same thing in the other thread but incase you don't check there:
Ver nice feature! My members love it :D
Thanks for the update pimpery! :)

pimpery 07-15-2005 05:01 PM

Quote:

Originally Posted by sirbutts
I know I posted the same thing in the other thread but incase you don't check there:
Ver nice feature! My members love it :D
Thanks for the update pimpery! :)

Updated = Infinite bottom surface scroll bug fixed.

pimpery 07-22-2005 03:51 AM

Update..did some tests.
Haven't tested on Safari tho because I can't get to a mac.

Tested so far on:
Konqueror
Internet Explorer
Opera
Mozilla
Firefox
Camino

Supported on all the browsers above with no bugs/problems.


All times are GMT. The time now is 03:14 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.01939 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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