The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
vBA CMPS Cleaner Site Navigation - CSS Driven Rollovers
Developer Last Online: Jan 1970 ![]() ![]()
vBAdvanced Cleaner Site Navigation Module - CSS Driven Rollovers
What it does: Replace your default vBAdvanced navigation pane with a cross-browser, CSS driven rollover menu. Time to install: 10 Minutes Tested: IE, Firefox, Maxthon, Opera Difficulty: Easy Templates: 2 CSS Edit: 1 Demo: http://www.sevenstring.org I wasn't happy with the stock look of the vBAdvanced portal navigation. It's very plain, and I personally like rollovers (if done properly) for adding a little bit of organic movement to static pages. Here's the default CMPS on the left, and my module on the right. The screenshots don't really do it justice, for the full effect check out my website linked above. I am using it both for navigation and for the "Artist Reviews & Interviews" portal templates. Default: Step 1: Create the New Module AdminCP -> vBA CMPS -> Add Module -> Template Module Title: Site Navigation Column: Left Column Display Order: 1 Active: Yes Update All Pages: Yes Template to Include: (adv_portal)clean_nav Style: (Your style) Template content is as follows: Code:
<tr><td class="alt1"><table border="0" width="165" class="portalnav"> <tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.youdomain.tld/forum/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Link Description</span></td></tr> </table></td></tr> Code:
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.youdomain.tld/forum/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Link Description</span></td></tr> Usergroups: All set to yes Other template edits: In my example, #444444 is my ON color, and "#555555" is my OFF color. Change these to whatever you like. I also have a fixed table width in the initial table call, here: Code:
width="165" Step two: CSS Definitions ACP -> Styles & Templates -> Style Manager -> (Your Style) -> Main CSS Scroll down to Additional CSS Definitions At the bottom, Add: Code:
.portalnav { color:#FFCC00; font: bold 10px verdana; Text-Decoration: none; } .portalnav a, .portalnav a:link, .portalnav a:visited, .portalnav a:hover, .portalnav a:active { text-decoration:none; color: #FFCC00; font: bold 10px verdana; } Step 3: Disable your old navigation block. ACP -> vBA CMPS -> Edit Modules -> Site Navigation Set "Active" to No. Keep in mind that you'll have two modules named Site Navigation now, so make sure you disable the non-template driven, default module and not the one you just created. Please click INSTALL if you are using this. It's the only recognition designers and coders get for sharing their work! Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
Update #1:
I've made the changes as discussed below so that the entire row is now a clickable link. I have it running on both navigation blocks on my site here. I've also attached my entire template, in case anyone would rather simply replace my URL links and colors with their own. Keep in mind that if you use my included template, you will still need to add the CSS definitions as above. Update #2: I've cleaned the code up a bit more to make it Valid XHTML 1.0 Transitional, as well as to get the cursor to change in Firefox. Use the following for each option link inside your template, changing the colored bits to match your own settings: Code:
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.yourdomain.tld/forum/option.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Link Title</span></td></tr> |
#3
|
||||
|
||||
![]()
Pretty nice. From a user standpoint though, when the color changes as I hover over it, I would imagine it would be a link. The actual text is a link, but the empty space to the right appears to be a link but isn't.
|
#4
|
|||
|
|||
![]()
I don't have time to test it right now, but I believe this (colored code, onClick call) would do what you're looking for:
Code:
<tr><td align="left" width="100%" style="background-color:#444444" onClick="window.location='forum/whatever.php'" Style="cursor:hand" onMouseover="this.style.backgroundColor='#555555';" onMouseout="this.style.backgroundColor='#444444';">Link Title</td></tr> |
#5
|
||||
|
||||
![]()
Right, it changes color on a mouseover, but it is not actually a link. That is my issue. I would prefer it to be a tabeless design so that the empty area to the right of the links were colored.
But it looks nice. Thanks. |
#6
|
|||
|
|||
![]() Quote:
![]() Code:
<html> <head> <title>Untitled</title> </head> <body> <table summary="blah" width="120" border="1"> <tr> <td bgcolor=white onClick="window.location='http://www.yahoo.com'" Style="cursor:hand" style="background-color:#444444" onMouseover="this.style.backgroundColor='#555555';" onMouseout="this.style.backgroundColor='#444444';"> Yahoo!</td> </tr> </table> </body> </html> Click Me Edit: I've done it to the navigation on my own page: http://www.sevenstring.org/ |
#7
|
|||
|
|||
![]()
Great Mod Chris-777!!! Thank You very much!!! :up:
|
#8
|
||||
|
||||
![]()
reserved for future use
|
#9
|
|||
|
|||
![]()
Thank you for the mod also if you change a few things you can make it Valid XHTML 1.0 Transitional
![]() Example: Code:
<tr> <td class="alt1"><table border="0" width="165" class="portalnav"> <tr><td align="left" width="100%" style="background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><a href="http://www.yourdomain.com/forums/link.htm">Link Title</a></td></tr> </table></td></tr> |
#10
|
|||
|
|||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|