1
MikeShane
nav menu xbootstrap
  • 2014/7/26 0:12

  • MikeShane

  • Community Support Member

  • Posts: 144

  • Since: 2008/1/5 2


I love the fact of bootstrap theme being built into core
Where do I change the menu links normally it is the nav-menu.html in tpl folder
but is has
referance ="javascript:;"><{$smarty.const.THEME_MODULE1}
where do I find the file so I can change
What is the smarty.cont,theme module?

2
AngeloRocha
Re: nav menu xbootstrap

Hi MikeShane!
Go to: /tpl/nav-menu.html

3
MikeShane
Re: nav menu xbootstrap
  • 2014/7/27 17:45

  • MikeShane

  • Community Support Member

  • Posts: 144

  • Since: 2008/1/5 2


but it has reference to $smarty.const.THEME_MODULE; where is "about,news,forum,contact being drawn from?

4
Bleekk
Re: nav menu xbootstrap
  • 2014/7/27 19:05

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


<ul class="nav navbar-nav"

<
li class="active"><a href="<{$xoops_url}>"><{$smarty.const.THEME_HOME}>a>li

<
li><a href="javascript:;"><{$smarty.const.THEME_MODULE1}>a>li

<
li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;"><{$smarty.const.THEME_MODULE2}><class="caret">b>a

<
ul class="dropdown-menu"

<
li><a href="javascript:;">Topic 1a>li

<
li><a href="javascript:;">Topic 2a>li

<
li><a href="javascript:;">Topic 3a>li

<
li><a href="javascript:;">Topic 4a>li

<
li><a href="javascript:;">Topic 5a>li

ul

li

<
li><a href="<{$xoops_url}>/modules/newbb"><{$smarty.const.THEME_MODULE3}>a>li

<
li><a href="<{$xoops_url}>/modules/contact"><{$smarty.const.THEME_MODULE4}>a>li

ul>


Angelo why do you have this javascript part in the href?

These predefined smarties:

<{$smarty.const.THEME_MODULE3}>

are also very bad and not friendly for new users.
I would take all this stuff out and provide a clean menu template

@Mike
Delete this javascript in the href and use your link to the module instead
Also delete this smarty part and give the link a new you want, like "forums" or "gallery"

5
MikeShane
Re: nav menu xbootstrap
  • 2014/7/28 12:24

  • MikeShane

  • Community Support Member

  • Posts: 144

  • Since: 2008/1/5 2


Thank you for your help, I was confused with the smarty reference. Works great for both computer or phone with very little changes needed, very clean and crisp.
Thank you

6
SMEDrieben
Re: nav menu xbootstrap
  • 2014/12/12 19:06

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I love the bootstrap theme as well. I tried to change the background color of the menu bar. I changed several background colors in the /css/bootstrp.min.css but I didn't succeed.

At this moment I'am using the navbar-inverse class in the nav-menu.html.

How can I change the background-color of the menu bar ?

Thanks !

SMEDrieben

7
Mamba
Re: nav menu xbootstrap
  • 2014/12/13 10:43

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


In this kind of situations, it's always good to use tools like in Chrome or Firefox the Inspector.
So in your case, I right-clicked on the menu bar, selected "Inspect Element" and then saw this line:

div class="navbar navbar-inverse navbar-static-top global-nav">

On the right hand side you can see:

.navbar-inverse {
background-color#F93434;
border-color#080808;
}

Once you click on the "background-color" square and change it from the original black to something else, the menu bar will change to that color.

It also shows you where you should change it, i.e. in the bootstrap.min.css file.

Resized Image
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

8
SMEDrieben
Re: nav menu xbootstrap
  • 2014/12/14 15:10

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks ! Very instructive answer. I will use this suggestion.

SMEDrieben

9
Zap_English
Re: nav menu xbootstrap

I did find once where to define THEME_MODULE, THEME_MODULE1, etc but I can't find it again

can someone tell me where it is?

10
Mamba
Re: nav menu xbootstrap
  • 2016/11/1 13:28

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Just search all files in your installation for the term.

It is in:

/themes/yourtheme/language/english/main.php
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

235 user(s) are online (192 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits