5311
fabou78
Re: Hilight current module in main page nav-bar
  • 2015/12/15 8:53

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


Thanks,

I will have a look to the module but one of the reason that I don't like modules is that you run into issues when you want to upgrade and that module is not upgraded to new version.

I understand what you are doing in your first example and I will test if it understand wilcard like this

{ if $xoops_requesturi  == "/modules/news/*"}


my aim would be to try to match anything that has /modules/news/ in it.

I don't understand your second example because don't know what "smartfactory" is but I will test it also.


Thanks again*/



5312
Bleekk
Re: Hilight current module in main page nav-bar
  • 2015/12/15 7:51

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


I would suggest you to use this module.
It is a really good module for menus and there is already a bootstrap template for menus.

You can also use smartys like
<{ if $xoops_requesturi  == "/modules/news/article.php?storyid=1"}>active<{/if}>


Or you can use
<{if $xoops_dirname == "smartfactory"}>active<{/if}>



5313
fabou78
Re: Hilight current module in main page nav-bar
  • 2015/12/14 22:55

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


I see what you mean, there is no reference of the array in my nav-bar.

I am a bit reluctant to use a module for this as I want to keep my website as simple as possible (not too many modules)

Do you think it would be feasible to implement this using regular expression on the URL?

Something like this;

if the current URL contains "{$xoops_url}>/modules/newbb" then highlight the menu newbb.

I would do this for each module in my nav-bar. I am assuming there that a module URL allways start with {$xoops_url}>/modules/ follwed by the module name.



5314
Bleekk
Re: Hilight current module in main page nav-bar
  • 2015/12/14 22:00

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


Hi,

you can't use module.highlight like this because it comes from the array
<{foreach item=module from=$block.modules}>


I would recommend you to use mymenus module. it does excatly what you want



5315
fabou78
Hilight current module in main page nav-bar
  • 2015/12/14 21:10

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


I am trying to implement the nav-bar so that it knows what module is on and highlight it. I figured out that the best place to start was in system_block_mainmenu.html since it seem to do it well for the “Main Menu” block.

I have notice that
<li class="<{if !$block.nothome}>active<{/if}>">
is used for Home and
<li class="<{if $module.highlight}>active<{/if}>">
is used for the other modules.

When I tried to appy this to the nav-bar (themes/xbootstrap/tpl/nav-menu.html) I didn’t quite get the results expected
<div class="navbar-collapse collapse">
        <
ul class="nav navbar-nav">
          <
li class="<{if !$block.nothome}>active<{/if}>">
            <
a href="<{$xoops_url}>">
              <
span class="glyphicon glyphicon-home">span> <{$smarty.const.THEME_HOME}>
            a>
          li>

          <
li class="<{if $module.highlight}>active<{/if}>">
            <
a href="<{$xoops_url}>/modules/newbb">
              <
span class="glyphicon glyphicon-bullhorn">span> <{$smarty.const.THEME_MODULE3}>
            a>
          li>
          <
li class="<{if $module.highlight}>active<{/if}>">
            <
a href="<{$xoops_url}>/modules/contact">
              <
span class="glyphicon glyphicon-phone">span> <{$smarty.const.THEME_MODULE4}>
            a>
          li>
        ul>
div>


When I click on the forum (NewBB) all the button in the nav-bar get highlighted (including home). It is only when I clik on Home that only Home is highlighted. Any idea what is the issue?

Also I was trying to print out what value $block.nothome and $module.highlight had. nothome displays nothing while highlight displays nothing or the value 1.

The folks at http://ocaholic.ch have managed to implement this, I wonder how.



5316
fabou78
Re: XOOPS France
  • 2015/12/13 10:12

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


Thanks guys,

I have managed to get in, since my profile email address is correct I guess I put the wrong address when I filled the contact form.



5317
Mamba
Re: How to do Email setup xoops-2.5.7.1
  • 2015/12/13 1:50

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


I just saw instructions for making Gmail your outbound mail server. Read the "How to configure outbound email settings?" section in:

https://wiki.bitnami.com/Applications/Bitnami_XOOPS
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5318
Cesagonchu
Re: XOOPS France

Montuy337513 answered you by email on December 3, but it was wrong email address.
The following was his answer:

Bonjour,

j'ai directement activé votre compte dans note base de données.

Vous pouvez vous connecter sur frxoops.org avec votre pseudo/mot de passe enregistré lors de votre inscription.

--

Cordialement,

Administrateur de frxoops.org
montuy337513



5319
Mamba
Re: XOOPS France
  • 2015/12/13 1:16

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


I sent an email to one of the Admins in XOOPS France. Hopefully, you'll hear from them soon...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5320
Mamba
Re: How to do Email setup xoops-2.5.7.1
  • 2015/12/13 1:15

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
Edit: Problem was solved using noreply@yourdomain.com

Excellent! Glad to hear that it did work!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 529 530 531 (532) 533 534 535 ... 29425 »



Login

Who's Online

673 user(s) are online (353 user(s) are browsing Support Forums)


Members: 0


Guests: 673


more...

Donat-O-Meter

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

Latest GitHub Commits