The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Making vb5 a one page AJAX forum
As the title implies, we need to make vb5 a one-page forum driven by ajax.
The reason is that we need to have a persistent audio player (ie keeps playing as we navigate pages) at the bottom of the page. We worked it out with vb4 by using history.js and handling the <a> click events manually. The handler would just fetch the page corresponding to the clicked URL and update the page accordingly. This seems impossible with vb5. I can't seem to verride the vb5 <a> handlers in any way, and whatever I do the pages reload on <a> click. Does anyone have some kind of solution ? I don't insist on having ajax pages - what's important is to have a persistent audio player. |
#2
|
|||
|
|||
On my daughters board, I use a popup window. I do a bit of JavaScript to keep it positioned where I want while other browser pages load. As long as the popup window is derived from the same site it usually will be allowed by modern browsers.
It is not a fancy solution, but it works. |
#3
|
|||
|
|||
Why not load the forums in a frame? The player can be in one frame and the forums in the other, completely independent. you can create a hook in vb that checks to see if it's contained in the frame and if it's not redirect to your frameset passing in the current vb5 url so the same page reloads inside your frame. That way, direct links into your forum still work. Can hook in a button on the forum page to copy the page link to clipboard, since you won't see the link in the address bar.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|