PDA

View Full Version : Adding button to navbar vbCMS 4.1.4


LordEd
06-28-2011, 03:29 PM
Hi guys,

Been lurking around on the forums, and found alot of things I might find useful at some point, but not something that I can use to just add a Button to the main navbar. Most of the HOW-TOs seems to be either to add a Dropdown box to the main navbar, or the secondary one or even removing buttons from the main one.

So any hints in the right direction would be greatly appriciated.

I think I got the plugin done, its just the template code I am a bit confused about. Tried editing the code for the dropdown one, but it didnt end up very well ;)

Oh, got it! Jesus, that was... easy.

pantani
06-29-2011, 10:24 AM
And how did you do it so easy?? :)

LordEd
06-29-2011, 10:51 AM
And how did you do it so easy?? :)

That was me being a tad sarcastic, which doesnt translate well to a forum. ^^ Sorry about that, but I did end up using the dropdown guide from the article forum and just messed about with the template until it actually worked like I wanted it to.

https://vborg.vbsupport.ru/showthread.php?t=228338

Followed that, but replaced

Title: dropdown
Code: <li class="popupmenu">
<a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">Drop Bombs</a>
<ul class="popupbody popuphover">
<li><a style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink1.php">SubLink 1</a></li>
<li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink2.php">SubLink 2</a></li>
<li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink3.php">SubLink 3</a></li>
</ul>
</li>

with:

<li class="menu">
<a href="linktoarticlestaticpagewhatever" class="navtab" style="background:transparent url {vb:stylevar right} center; padding-right: 15px">Namethatshowsonnavbar</a>
</li>