xoops forums

Forum Index


Board index » All Posts (fabou78)




fabou78

Friend of XOOPS
Posted on: 2015/12/15 9:03
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#21

Re: Hilight current module in main page nav-bar

As a side note the "*/" after "Thanks again" above has been added by XOOPS and I can't seem to be able to get rid of it.


fabou78

Friend of XOOPS
Posted on: 2015/12/15 8:53
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#22

Re: Hilight current module in main page nav-bar

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*/


fabou78

Friend of XOOPS
Posted on: 2015/12/14 22:55
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#23

Re: Hilight current module in main page nav-bar

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.


fabou78

Friend of XOOPS
Posted on: 2015/12/14 21:10
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#24

Hilight current module in main page nav-bar

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.


fabou78

Friend of XOOPS
Posted on: 2015/12/13 10:12
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#25

Re: XOOPS France

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.


fabou78

Friend of XOOPS
Posted on: 2015/12/12 18:57
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#26

XOOPS France

Hi Guys,

I am trying to get in touch with the folks over France but I am not successfull as of now.

1) Tried to register on their web site but never got the email confirmation
2) filled a contact-us form but didn't get reply back
3) send PM on this site to one member I know is from the French team but no answers

Anyone able to put me in contact with someone over there?

Thanks,


fabou78

Friend of XOOPS
Posted on: 2015/11/26 14:03
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#27

Re: NewBB Status

Thanks,

I will have a look and play with 2.6.0, I can test it but won’t be able to contribute as I have little to no knowledge of php/smarty etc…

I will go with 2.5.7.1 but if RC10 is a test version should I not stick to RC9 for my production server?


fabou78

Friend of XOOPS
Posted on: 2015/11/24 21:29
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#28

NewBB Status

Hi guys,

I am in the process of rebuilding (not upgrade) a site from 2.5.0 to 2.5.7.1. I was under the impression that the latest NewBB was 4.33 RC9 but found RC10 and got to try it. The issue is that from the module about page I can see;


Forum 4.33 RC10 (27/07/2015)
by Marko Schmuck (predator) / D.J. (phppp) / Alfred(dhcst) / xoops.org (irmtfan)
GNU GPL 2.0
4.33 RC 10 NOT RELEASED
===========================================
- moved all images, CSS, and JS files to /assets (mamba)
- renamed .html Smarty templates to .tpl (mamba)
- removed closing php tags (mamba)
- set min. PHP as 5.3.7 and min. XOOPS as 2.5.7 (mamba)
- replaced dirname(__FILE__) with __DIR__ (mamba)
- replaced $i++ with ++$i (mamba)
- replaced $_POST and $_GET with XoopsRequest (mamba)
- replaced XOOPS_ROOT_PATH with $GLOBALS['xoops']->path (mamba)
- added/fixed phpDoc headers (mamba)
- replaced intval() with (int) (mamba)
- enforcing strict comparison (mamba)


1) Can someone confirm if the latest official NewBB that works with XOOPS 2.5.7.1 is RC9 and not RC10?

2) in this post https://xoops.org/modules/newbb/viewtopic.php?post_id=359754 I can see reference to "NewBB: 4.4 Alpha 1" what is it?

3) I can also see some work going on with XOOPS 2.6.0 at the moment so is it worse spending much time on rebuilding from 2.5.0 to 2.5.7.1 or should I just wait for 2.6.0 to go out? I assuming that there will be a NewBB version that will work with 2.6.0.

Thanks,

Fabou


fabou78

Friend of XOOPS
Posted on: 2015/11/23 16:00
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#29

Re: ocaholic.ch/it/fr/co.uk/net with heavily modified xBootstrap Theme

Quote:

reWARder wrote:

@Mamba
We're going to finish all the things we still want to and have to do on the site. After that I'm considering sharing the theme and for that we would have to write a little documention. What's good is, that the code is rather well documented already. That is something which could make the documentation process easier.


Hi guys,

Did we get to the bottom of sharing themes and documenting this really nice work?

Theme sharing and documentation of work like this could help understand the flexibility of XOOPS for those with little knowledge/experience like me. I am really interested with it since I am facing a few esthetical issues with xbootstrap + NewBB.

Also to me the latest version of NewBB was 4.33 RC10 but it seem that ocaholic is using NewBB 4.4 Alpha 1, where can I find this version? Is this a stable version?


fabou78

Friend of XOOPS
Posted on: 2015/2/22 11:58
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#30

Re: NewBB incorect display under certain condition

Quote:

check over there if you find any issues that you could fix


Will do but should I understand by this that you don't think the issue is related to “<{$xoops_module_header}>” and CSS as explained previously?

Fabou



TopTop
« 1 2 (3) 4 »