Back to vBulletin 3.6 Template Modifications

Move forumjump to the navbar with javascript
Mod Version: 1.00, by Lea Verou

This modification is in the archives.
vB Version: 3.6.7 Rating: (1 vote - 5.00 average) Installs: 5
Released: 07 Jul 2007 Last Update: Never Downloads: 1
Not Supported  

I wanted as many others do, to move the forumjump menu to the navbar, in the pages that it appeared.
If you just put $forumjump in the navbar, it only works in showthread. I had to think of something else.

Pros:
  1. The original vbulletin's forumjump is used and not another re-created version.
  2. The template edits are only 3 and the templates edited just 2: navbar and forumjump!
  3. No vb html code is changed, the template edits are about adding code.
  4. Very little and simple code
  5. No plugins
Cons:
  1. This hack does not work if the forumjump is not meant to appear on a vb page, it just moves it in those pages that it would appear anyway.
  2. The page has to load till the bottom for the forumjump to appear in the navbar. In fact it is firstly loaded at its original position and then moved via javascript in the new one, so in order for the javascript to be executed it has to be loaded at the original postion. This causes the delay.
  3. <script> tags in the body and not in head as the standards command
  4. If javascript is disabled, the forumjump will remain at its original position.
Instructions
1. Put in the navbar where you want the forumjump to appear this code:
HTML Code:
<span id="forumjump_span"></span>
2. In template forumjump add in the start (before any code):
HTML Code:
<span id="forumjump_originalspan">
3. In template forumjump add in the end (after any code):
HTML Code:
</span>
        <script type="text/javascript">
        document.getElementById('forumjump_span').innerHTML = document.getElementById('forumjump_originalspan').innerHTML;
document.getElementById('forumjump_originalspan').innerHTML = '';
        </script>   
If you want it to remain at its original position as well remove the
HTML Code:
document.getElementById('forumjump_originalspan').innerHTML = '';
That's it!

Download

No files for download.

Similar Mods

End-User Options Navbar Forumjump- Adds a DHTML "Forum Jump" menu to your Navbar vBulletin 3.6 Add-ons
Miscellaneous Hacks navbar forumjump dropdown vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024