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)
-   -   vBAdvanced Cleaner Site Navigation Module - CSS Driven Rollovers (https://vborg.vbsupport.ru/showthread.php?t=141648)

03-09-2007 10:00 PM

vBAdvanced Cleaner Site Navigation Module - CSS Driven Rollovers
 
vBAdvanced Cleaner Site Navigation Module - CSS Driven Rollovers

What's new: Releasing the 3.5 version of this for 3.6.x.

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: http://www.sevenstring.org/chris/vbm...od_default.jpg This Mod: http://www.sevenstring.org/chris/vbm...od_updated.jpg


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>

This is the WHOLE template. For each link you want to add, you will need to add the following line BEFORE the closing </table></td>, and edit it to the URL and description of the option that you are linking:

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>
Use Module Shell Template: Yes
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"
Edit that accordingly to match your layout.

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;
 }

This is for the same font and color in my demo. Change the #FFCC00 to your desired color, and edit your font CSS as desired.

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.

Zachariah 03-10-2007 05:27 PM

Eye Candy !

:)

subzonline 03-10-2007 06:57 PM

nice mod

dbirosel 03-10-2007 07:00 PM

Beautiful! i will install in a few minutes.. Can you get a SShot, of how it will look if you have sub-navigations?

dbirosel 03-10-2007 07:00 PM

Also, how can i increased the font size a little bit?

dbirosel 03-10-2007 07:33 PM

Here's another Demo:


Www.CarAudioJunkyard.com


I got it working!! Love this mod!!

Atakan KOC 03-26-2007 08:02 AM

Thanks........

Guest210212002 03-27-2007 01:46 PM

Quote:

Originally Posted by dbirosel (Post 1200406)
Also, how can i increased the font size a little bit?

Wherever you see 'font: bold 10px', up it to 12px (and so forth) until you're happy with the new size. :)

hinch 04-12-2007 08:43 AM

there's a demo on www.furious-angels.com too

however instead of creating seperate new modules for the site nav as you said I integrated it into the existing module by editing the adv_portal_navigationbits and adv_portal_navigation templates to integrate with your code

morrow 04-16-2007 06:36 PM

Can this have drop down menus tacked onto it? If I wanted 3 addition items off of Site News or something like that?

icemanic 04-28-2007 10:13 PM

yea, i want a drop down menus like http://www.sacpaintball.com/

how do i get my site navigation to be like that, will this do something like this at mentioned in the above url

Guest210212002 04-29-2007 10:58 AM

Quote:

Originally Posted by morrow (Post 1229133)
Can this have drop down menus tacked onto it? If I wanted 3 addition items off of Site News or something like that?

I'm pretty sure it can be done. I'll take a peek into it today/tomorrow and see if I can come up with something. :)

morrow 05-01-2007 02:02 AM

Sounds good. Looking forward to see it! Thanks

icemanic 05-01-2007 09:18 AM

Also, is this possible to do without the module border around it, so there is no "Site Navigation " title or border, just so it shows only the links....

is this possible?

icemanic 05-05-2007 02:49 AM

anyone alive?

Guest210212002 05-05-2007 12:39 PM

Quote:

Originally Posted by icemanic (Post 1238791)
Also, is this possible to do without the module border around it, so there is no "Site Navigation " title or border, just so it shows only the links....

is this possible?

I don't think so, since vBA formats the modules, then loads the template code inside it. The title is part of vBA, not the actual template that you edit.

rickyreter 05-06-2007 09:52 PM

Hi,can't get this to work with colours any one help...p;ease

icemanic 05-14-2007 05:25 PM

anyone figure out how to get sub-root , so certain rollover will drop down a 2ndary menu???

Guest210212002 05-15-2007 02:16 AM

Quote:

Originally Posted by rickyreter (Post 1242719)
Hi,can't get this to work with colours any one help...p;ease

Can you post your code?

(And click install ;) )

rlpartida 06-19-2007 02:57 PM

Quick question,

In what template should I change the font size to make it smaller (or larger)???

Thanks

ShawneyJ 06-21-2007 03:00 AM

unreal m8 great job i love it. installed and mod of the month.

ShawneyJ 06-21-2007 03:03 AM

Quote:

Originally Posted by rlpartida (Post 1271801)
Quick question,

In what template should I change the font size to make it smaller (or larger)???

Thanks

which ever style you put the the code in the CSS in this step, i highlighted red what to change.

ACP -> Styles & Templates -> Style Manager -> (Your Style) -> Main CSS

Scroll down to Additional CSS Definitions

At the bottom, Add:

-----------------------------------------------------------------
.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;
}

rlpartida 06-26-2007 11:55 AM

Hello Jaycob,

Thank you very much for your response. It worked like a charm!

Regards,

Andyucs 06-26-2007 01:10 PM

so what code goes into the template your calling up called

adv_portal_clean_nav

wolf32 06-26-2007 03:03 PM

Quote:

Originally Posted by Andyucs (Post 1276923)
so what code goes into the template your calling up called

adv_portal_clean_nav

This is the initial code to create the first link and the template.

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>

If you want to add more links, then you would use

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>
HTH :)

Nice Mod Chris

ahmednadir 06-26-2007 09:48 PM

worked like a charm
thanks alot mate....installed

ahmednadir 06-26-2007 10:16 PM

just 1 thing though..

Is it possible to change the font colour.
at the moment its the same colour as the titles and thread colour, the normal navigation I had (the 1 that came with the portal) was a different colour (orange). Is it possible to change it so I can have it in orange so it stands out?

-EDITED-

Sorry mate, did'nt read the second step (was in a rush to install...lol)
great add to my site
thanks alot

wolf32 07-20-2007 02:59 PM

Superb hack. Much Thanks!

I'm having some customization issues though. I'm trying to add a couple of icons to the left of the text, and just can't get it to work.

Any suggestions?

Edit: Anyone???

inteller2k7 07-20-2007 08:25 PM

the one problem i am having is that it dont c all this settings
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:

wolf32 07-20-2007 11:05 PM

Quote:

Originally Posted by inteller2k7 (Post 1296876)
the one problem i am having is that it dont c all this settings
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:

These settings appear when you go to ACP > vBa CMPS > Add Module.

Jay-MOB 09-21-2007 02:36 PM

is it possible to make it as a dropdown in the navbar?

yoyoyoyo 09-21-2007 04:45 PM

Quote:

Originally Posted by hinch (Post 1225754)
there's a demo on www.furious-angels.com too

however instead of creating seperate new modules for the site nav as you said I integrated it into the existing module by editing the adv_portal_navigationbits and adv_portal_navigation templates to integrate with your code

can you show us how you did that?

redtailboa 10-03-2007 01:27 PM

A tree type menu from this would be awesome!!

frosch68 10-08-2007 09:53 AM

How can i integrate a backgroundimage ?

thanks a lot

Jason Black 10-12-2007 09:28 PM

i have no idea how to install this lol....
i don't even know how to get to vbcmp or whatever that is...can you hel please

wolf32 10-31-2007 01:08 AM

Quote:

Originally Posted by Jason Black (Post 1358531)
i have no idea how to install this lol....
i don't even know how to get to vbcmp or whatever that is...can you hel please

'vbcmp' is the Content Management and Portal System over at vBadvanced.com.

You'll need this CMPS to install this hack. This hack replaces the default Navigation module that comes with the CMPS.

Stryker412 11-08-2007 09:16 PM

How do I recreate the default adv_portal_navigation? I accidentally named the clean one navigation too and then deleted it not realizing it had overwritten the default one.


I can't get the clean one to show up correctly.

www.shatteredplanet.org

The links work but the look of it is off.

Guest210212002 11-09-2007 02:12 PM

adv_portal_navigation is just the following:

Code:

<tr>
        <td class="$bgclass">
                $navigationbits
                $customnavigationbits
        </td>
</tr>

I use a brand new template for this, and just disable the "stock" navigation template, using mine in it's place.

Leo Brazil 02-06-2008 06:14 PM

I've just installed this mod but I'm facing some strange thing with this. The backgroungs in the links are not filled like they should.
This is the code I'm using for this template and that's pretty much the same as original.

Code:

<tr><td class="alt1"><table border="0" width="165" class="portalnav">
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.forum.com/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Ve?culos</span></td></tr>
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.forum.com/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Painel do Aventureiro</span></td></tr>
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.forum.com/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Acontece no Mundo A&O</span></td></tr>
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.forum.com/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Turma do A&O</span></td></tr>
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.forum.com/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Navega??o e Comunica??o</span></td></tr>
<tr><td bgcolor="#444444" width="100%" onclick="window.location='http://www.forum.com/link.php'" style="cursor:pointer; background-color:#444444" onmouseover="this.style.backgroundColor='#555555';" onmouseout="this.style.backgroundColor='#444444';"><span class="portalnav">Suporte T?cnico</span></td></tr>
</table></td></tr>

Any ideas of why this is happening ?

j-n 02-08-2008 11:59 AM

Thanks........


All times are GMT. The time now is 09:15 AM.

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.01613 seconds
  • Memory Usage 1,841KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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