vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Jump for Navbar (https://vborg.vbsupport.ru/showthread.php?t=133277)

davidw 12-04-2006 10:00 PM

Forum Jump for Navbar
 
As per Request A Modification (Unpaid)
https://vborg.vbsupport.ru/showthread.php?t=118417

This is a small mod that has a few small steps. Keep in mind this should also work in previous versions of vbulletin and possibly 3.5.x series as well.

Find this area in your navbar (each navbar may differ somewhat)
PHP Code:

<if condition="$show['popups']">
    <if 
condition="$show['searchbuttons']">
        <
td id="navbar_posts" class="vbmenu_control"><a href="search.php?$session[sessionurl_q]accesskey="2">$vbphrase[active_topics_nav]</a> <script type="text/javascript"vbmenu_register("navbar_posts"); </script></td>
        <
td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"vbmenu_register("navbar_search"); </script></if></td>
    </if> 

before the </if> close, put this in:
PHP Code:

<td id="forumjump" class="vbmenu_control"><a href="#forumjump">Forum Jump</a> <script type="text/javascript"vbmenu_register("forumjump"); </script></td

So it should look like this:
PHP Code:

<if condition="$show['popups']">
    <if 
condition="$show['searchbuttons']">
        <
td id="navbar_posts" class="vbmenu_control"><a href="search.php?$session[sessionurl_q]accesskey="2">$vbphrase[active_topics_nav]</a> <script type="text/javascript"vbmenu_register("navbar_posts"); </script></td>
        <
td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"vbmenu_register("navbar_search"); </script></if></td>
        <
td id="forumjump" class="vbmenu_control"><a href="#forumjump">Forum Jump</a> <script type="text/javascript"vbmenu_register("forumjump"); </script></td>
    </if> 

Then find

PHP Code:

<!-- / NAVBAR POPUP MENUS --> 

Above, add:

PHP Code:

<div class="vbmenu_popup" id="forumjump_menu" style="display:none">
    <
table cellpadding="2" cellspacing="1" border="0">
        <
tr>
            <
td> <!-- This will begin a new column -->
                <
table valign="top" width="200" cellpadding="2" cellspacing="1" border="0">
                    <
tr><td class="tcat" onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Category</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                </
table>
                <
table width="200" cellpadding="2" cellspacing="1" border="0">
                    <
tr><td class="tcat" onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Category</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                </
table>
                <
table width="200" cellpadding="2" cellspacing="1" border="0">
                    <
tr><td class="tcat" onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Category</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                </
table>
            </
td>
            <
td> <!-- This will begin a new column -->
                <
table width="200" cellpadding="2" cellspacing="1" border="0">
                    <
tr><td class="tcat" onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Category</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                </
table>
            </
td>
            <
td> <!-- This will begin a new column -->
                <
table width="200" cellpadding="2" cellspacing="1" border="0"
                    <
tr><td class="tcat" onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Category</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                </
table>
                <
table width="200" cellpadding="2" cellspacing="1" border="0">
                    <
tr><td class="tcat" onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Category</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                    <
tr><td onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" style="cursor:pointer; background-color:#DEE6EF" onmouseover="this.style.backgroundColor='#BAD2F0';" onmouseout="this.style.backgroundColor='#DEE6EF';">Forum Name</td></tr>
                </
table>
            </
td>
            <
td>
        </
tr>
    </
table>
</
div

Make sure each column has the same number of <tr> rows. For any blank rows you want to use, change Forum Name to &nbsp; (blank space).

Change http://www.yourforum.com to the location of your forums so that http://www.yourforum.com/forumdisplay.php?f= and a number will actually display a forum.

Change background-color:#DEE6EF" to suit your needs.
Change onmouseover="this.style.backgroundColor='#BAD2F0';" to suit your needs.
Change onmouseout="this.style.backgroundColor='#DEE6EF';" to suit your needs.
The first and third one I kept the same for clarity.

For example: If column 1 has 15 rows, column 2 should have 15 rows, etc.
Also, keep in mind that if your forum name is long, you may want to add in a <br /> tag somewhere to make it carry over to the next line so that it doesn't bleed.

Smaller size text:
<font size="1">Forum Name</font> Will bring the font size down to a lower level.

Cleanup:
Any rows you do not use, remove this from the line: onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='"

sunnycher 12-05-2006 03:36 PM

Yay! Thanks!! Off to try this out :)
Thank you!

sunnycher 12-05-2006 03:53 PM

do we replace the ' with the number?

davidw 12-05-2006 03:54 PM

no, it goes right before the '

edit:

for example onclick="window.location='http://www.yourforum.com/forumdisplay.php?f='" should show something like
onclick="window.location='http://www.yourforum.com/forumdisplay.php?f=10'"

sunnycher 12-05-2006 03:56 PM

ok, cuz the first one I put in was the category and it doesn't show the name change?

sunnycher 12-05-2006 03:58 PM

Ok, I'll need to change the names too right? It doesn't automatically come up with the name just because I put the number in it?

Saulie 12-05-2006 03:59 PM

Thank you, it will be very useful for the lazy members on my forum =P

*Clicks Install*

davidw 12-05-2006 03:59 PM

Right, you have to change the Forum Name to the appropriate forum name.

sunnycher 12-05-2006 04:02 PM

LOL Saulie!

sunnycher 12-05-2006 04:06 PM

Where is a quick place that shows all your category and forum IDs? I thought I saw that somewhere? anyone know?


All times are GMT. The time now is 11:14 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.01413 seconds
  • Memory Usage 1,940KB
  • 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
  • (5)bbcode_php_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