Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Anchor and Jump BBCode! Details »»
Anchor and Jump BBCode!
Version: 1.00, by pimpery pimpery is offline
Developer Last Online: Aug 2006 Show Printable Version Email this Page

Version: 3.5.0 Beta 3 Rating:
Released: 07-09-2005 Last Update: Never Installs: 32
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-29-2005, 10:05 AM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Camino? Didn't know what that was until I googled it. Turns out its a Mozilla browser for Macs. Niice
Reply With Quote
  #13  
Old 07-29-2005, 10:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must be blind. I can't see what this does.
Reply With Quote
  #14  
Old 07-29-2005, 11:33 AM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
I must be blind. I can't see what this does.
Look at the demo using test:test.
It basically lets you put bookmarks in your posts using the [anchor] BBcode.
then you can make a link which jumps to the bookmarks using the [jump] tag
Reply With Quote
  #15  
Old 07-29-2005, 07:41 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looked at it using the name and password you gave. I just didn't see where the places where you have there to click to show what it does.
Reply With Quote
  #16  
Old 07-29-2005, 07:49 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
I looked at it using the name and password you gave. I just didn't see where the places where you have there to click to show what it does.
Look at the long list of red links, and click one of those.

Also a very nice method of scrolling, the decreation of speed as it gets closer is a very nice effect

- Zero Tolerance
Reply With Quote
  #17  
Old 07-29-2005, 07:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooooohhhhh, I like that now that I see it work.

You have to use thew jump to go where the anchor is right?
Reply With Quote
  #18  
Old 07-29-2005, 11:44 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is so cool, is there a way to return to the point of origin?
Reply With Quote
  #19  
Old 07-30-2005, 01:31 PM
FD929's Avatar
FD929 FD929 is offline
 
Join Date: Feb 2005
Location: California
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anybody else having hyperlinking anchor problems on RC1?

[jump=http://www.forums.530riders.net/showthread.php?anchor=test&p=31274]jump test[/jump]

[anchor=test]anchor test[/anchor] (post #31274)

Javascript error:
Jump Error: 'http://www.forums.530riders.net/showthread.php?anchor=test&p=31274' does not exist.

Also tried substituting showpost.php for showthread
Great hack pimpery, pretty too!
Reply With Quote
  #20  
Old 07-30-2005, 01:58 PM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heya Fat Dadday ,

The jump tag only takes an anchor name as a parameter, and is only used for single-page jumping.

To crossjump use :
http://www.forums.530riders.net/show...r=test&p=31274

as the url itself.

Like this:
http://www.forums.530riders.net/show...r=test&p=31274

Or like this:
Click here

Hope I helped ya
Reply With Quote
  #21  
Old 07-30-2005, 02:03 PM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the delayed response - I was taking the LIRR from Stonybrook University back to my home in Brooklyn.

Boofo: Yes - you use the jump tag to jump to an anchor with the specified name
JohnBee - If you'd like I could add a key shortcut (such as Alt+J) to jump back to the last place a jump was clicked. Tell me if you'd like this idea and I'll do it for you.

FD929 (or Fat Daddy as sirbutts called ya) ,
I guess he answered your question - thanks sirbutts!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 PM.


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.09037 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete