Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
vBa Portal Navigation Details »»
vBa Portal Navigation
Version: 1.00, by davidw davidw is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Portal Software - Version: 3.6.4 Rating:
Released: 02-12-2007 Last Update: Never Installs: 11
Template Edits
Re-useable Code  
No support by the author.

This should be a fairly easy modification to use - I had been using it for some time now and have decided not to use it anymore but thought someone else may want to use it.

Basically, it is a replacement navigation for the portal.

Step 1: Create the template in your style [ admincp => styles & templates => style manager => drop down All Style Options and choose Add New Template ]
Call it something like adv_portal_javanav (doesn't matter - you'll need it later).
Add this code in the template - change where appropriate (Sections, links, link titles)
Code:
<script type="text/javascript">
<!--
window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
//-->
</script>
<table width="100%">
	<tr>
		<td class="tcat"><span class="smallfont"><strong>Site Navigation</strong></span></td>
	</tr>
</table>
<dl id="menu">
	<dt onmouseover="javascript:show('smenu1');" onmouseout="javascript:show('');">&nbsp; Section 1</dt>
		<dd id="smenu1" onmouseover="javascript:show('smenu1');" onmouseout="javascript:show('');">
			<ul>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
			</ul>
		</dd>	
	<dt onmouseover="javascript:show('smenu2');" onmouseout="javascript:show('');">&nbsp; Section 2</dt>
		<dd id="smenu2" onmouseover="javascript:show('smenu2');" onmouseout="javascript:show('');">
			<ul>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
			</ul>
		</dd>
	<dt onmouseover="javascript:show('smenu3');" onmouseout="javascript:show('');">&nbsp; Section 3</dt>
		<dd id="smenu3" onmouseover="javascript:show('smenu3');" onmouseout="javascript:show('');">
			<ul>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
			</ul>
		</dd>
	<dt onmouseover="javascript:show('smenu4');" onmouseout="javascript:show('');">&nbsp; Section 4</dt>
		<dd id="smenu4" onmouseover="javascript:show('smenu4');" onmouseout="javascript:show('');">
			<ul>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
				<li><a href="http://www.yoursite.com/link.php">Link</a></li>
			</ul>
		</dd>
</dl>
Step 2: Add new CMPS module [ admincp => vBa CMPS => Add Module => [Template] ]
Module Title Site Navigation
Column Left (or your choice)
Display Order 1 (or whatever number)
Active Yes
Update All Pages Yes (unless you want to manually only set this on the home page, then choose no and edit your Home page and activate this module there)
Template to Include javanav (this is what comes after adv_portal_ when you created your tempalte (adv_portal_javanav for example)
Use Module Shell Template No (if you choose Yes here, you will most likely have to add <tr><td> before the code and </td></tr> after the code.)
Set your usergroup permissions and click save.

Step 3: You may need CSS help. If it doesn't act right, do this:

Go to your admincp => Styles & Templates => Style Manager => same style you edited before but choose Main CSS from the dropdown [All Style Options]

At the very bottom, under Additional CSS Definitions, scroll to the bottom of the top box and enter this code after everything else...

Code:
dl, dt, dd, ul, li 			{ margin: 0; padding: 0; list-style-type: none; }
#menu 					{ width: 175px; }
#menu dt 				{ cursor: pointer; background: #FFFFFF; height: 20px; line-height: 20px; margin: 2px 0; border: 1px solid gray; text-align: left; font-weight: bold; }
#menu dd 				{ position: absolute; z-index: 100; left: 8em; margin-top: -1.4em; width: 15em; background: #FFFFFF; border: 1px solid gray; }
#menu ul 				{ padding: 1px; }
#menu li 				{ text-align: left; font-size: 85%; height: 18px; line-height: 18px; }
#menu li a, #menu dt a 			{ color: #000; text-decoration: none; display: block; }
#menu li a:hover 			{ text-decoration: underline; }
#mentions 				{ font-family: verdana, arial, sans-serif; position: absolute; bottom : 200px; left : 15px; color: #000; background-color: #ddd; }
#mentions a 				{ text-decoration: none; color: #222; }
#mentions a:hover			{ text-decoration: underline; }

Show Your Support

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

Comments
  #2  
Old 02-13-2007, 02:22 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is GREAT!!! Thanks!!

*clicks install!*
Reply With Quote
  #3  
Old 02-13-2007, 04:46 PM
Renada's Avatar
Renada Renada is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, thank you

*installs*
Reply With Quote
  #4  
Old 02-13-2007, 05:41 PM
dazed12 dazed12 is offline
 
Join Date: Jul 2006
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like it but i am having a prob
www.digitalgamerz.net. any idea?
Reply With Quote
  #5  
Old 02-13-2007, 05:59 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a CSS fix for that:

Go to your admincp => Styles & Templates => Style Manager => same style you edited before but choose Main CSS from the dropdown [All Style Options]

At the very bottom, under Additional CSS Definitions, scroll to the bottom of the top box and enter this code after everything else...

Code:
dl, dt, dd, ul, li 			{ margin: 0; padding: 0; list-style-type: none; }
#menu 					{ width: 175px; }
#menu dt 				{ cursor: pointer; background: #FFFFFF; height: 20px; line-height: 20px; margin: 2px 0; border: 1px solid gray; text-align: left; font-weight: bold; }
#menu dd 				{ position: absolute; z-index: 100; left: 8em; margin-top: -1.4em; width: 15em; background: #FFFFFF; border: 1px solid gray; }
#menu ul 				{ padding: 1px; }
#menu li 				{ text-align: left; font-size: 85%; height: 18px; line-height: 18px; }
#menu li a, #menu dt a 			{ color: #000; text-decoration: none; display: block; }
#menu li a:hover 			{ text-decoration: underline; }
#mentions 				{ font-family: verdana, arial, sans-serif; position: absolute; bottom : 200px; left : 15px; color: #000; background-color: #ddd; }
#mentions a 				{ text-decoration: none; color: #222; }
#mentions a:hover			{ text-decoration: underline; }
Reply With Quote
  #6  
Old 12-14-2008, 01:16 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This modification is no longer supported.
This modification has been marked re-usable.
Reply With Quote
Reply

Thread Tools

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 02:36 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.05047 seconds
  • Memory Usage 2,253KB
  • Queries Executed 19 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete