The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Anchor and Jump BBCode! Details »» | |||||||||||||||||||||||||
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 --------------
Features ------------
Installation ------------------
Hyperlinking Anchors -----------------------------
Key-Shortcuts -----------------------------
Supporters / CoAuthors Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
So far (haven't updated the install.zip yet though): hash (#anchor) support added for browsers without javascript capabilities the scrolling now uses setInterval and clearInterval so people can switch between tabs / windows and do other stuff while waiting for the scroll to finish TODO: working on part of the function that will recognize which anchor (if multiple ones) is closest to the jump tag on the dom tree - and will jump to that one This way there will be no possible OVERRIDING (as acidburn said) |
#23
|
|||
|
|||
Quote:
but now I have it all done. Features include: Support for non-javascript users Scrolling uses setInterval so it doesn't tie up browser Anchors in a member's own post have a higher priority than anchors in another member's post (based on DOM nesting [this was kinda hard to do!] - will always work even when vBulletin is updated) Works on all major browsers |
#24
|
|||
|
|||
Quote:
I don't know how it really works but it's amazing how you dealt with the override thing using javascript. I mean - how does it work? Wouldnt u need to know who made what post in php to do something like that? Anyhow - very nice job. The only thing I think you should add is maybe a little box that says can cancel the jump incase the jump is tremendously long and the person wants to cancel it. |
#25
|
|||
|
|||
Quote:
I could use position:fixed; but it's not supported by very many browsers. BTW - I'm going to have a tutorial on my site about DOM Nesting soon. I'll pm you a link when it goes up. |
#26
|
||||
|
||||
Updated and everything is working fine. I love how I can scroll past the anchor and it goes up... then I scroll above it and it goes down... it could easily entertain people for hours. I know some members on my site said they sat in that thread for a good 10 minutes simply clicking the jump links... lol. Thanks for the update Pimp!
Edit: I have a question for you Pimp. I have a table underneath my Forum Statistics on forumhome. Inside the table I have links to popups that give directions on the latest glitches added. Would it be possible to have a jump for the link so that once clicked it would take you to the universal glitch list (the demo page where my anchors/jumps are) and jump to the specified anchor tag? This would be like cross-page jumping, but would indeed be incredibly handy. |
#27
|
|||
|
|||
Quote:
I will have it like this: http://site.com/etc..?anchor=nameofanchor On document load a javascript function will parse the url and extract the anchor param if it exists - then it will jump to that anchor. If anchor doesn't exist, then it shows an error alert like it normally does. There is ONE problem though If there are multiple anchors - it won't know which one to goto since there's no reference point (no jump tag). I have an idea though: If we craft the url as such: http://site.com/etc..?anchor=nameofanchor#post1337 or http://site.com/etc..?anchor=nameofanchor&p=1337 Where 1337 is the postnumber... Then it can also extract the postnumber and only jump to an anchor IN THE SPECIFIED POST. I think this is a good solution. I'll have the function ready soon. I first have to pack my bags because I'm going to stonybrook for summer courses. BTW acid, you might want to redownload the zip again. There's no difference in what it does, but I did increase the performance of the function (milliseconds matter! :P) Night mate! |
#28
|
||||
|
||||
Thanks for taking up the task! I really appreciate it and am sure that most other members here will as well. I'll download the zip now; everything must be done faster! Ha ha, thanks again.
|
#29
|
|||
|
|||
Updated!
Few bugs fixed. Optional cross-page jumping feature added (hyperlink an anchor!) |
#30
|
|||
|
|||
Quote:
Thanks for the update pimpery! |
#31
|
||||
|
||||
Quote:
Edit: Two things: 1) How on Earth do you make the hyperlink for the cross-page jump? There's no example in the installation instructions. 2) In the installation instructions, the 1A and 1B parts are right next to each other, I accidentally copied 1A's steps and 1B's and pasted them into the clientscript file as the JS function. Maybe space them apart? Edit (Again): 1) Nevermind, was scrolling up and saw the post you made Pimp, theorizing how this could work and noticed you had posted a possible URL. I tried it out and it works. Nice job and thanks again, you may want to add an example URL into the install directions. Oh, for anyone that wants to know: Code:
http://www.socomcity.net/forum/showthread.php?anchor=glitch25&p=7353 showthread.php?anchor=glitch25 - (This is the anchor's name that you'd like to jump to) &p=7353 - (This is the post that the anchor you'd like to jump to is nested in) Oh and Pimpery, if you'd like to add an example of the cross-page jumping feature: User: test Password: test Location: http://www.socomcity.net/forum/index.php It's just below the header, in a little table; "Latest Glitches Added". |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|