Pragmatism in Code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related...

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that has been used in the blog.
  • Login
Posted by on in Dolphin 7.0.x Modifications
  • Font size: Larger Smaller
  • Hits: 3894
  • 6 Comments
  • Print

Dolphin - Hide Menu Bar from Guests

If you would like to completely hide the menu bar from non-members, then this is the mod for you.

Edit

templates/base/scripts/BxBaseMenu.php

Find

return $this->sCode;

Change it to...

if (islogged()){
return $this->sCode;

All Done!

 

If you also want to hide the stripe that the menu bar resided in - you might want to also add this to your template...

div.sys_top_menu {
min-height:0px !important;
}

Of course YMMV depending on template etc.

 

/DM

Rate this blog entry:
0
DeeEmm AKA Michael Percy is an industrial software engineer specialising in language based programming. A long time supporter and contributor to the open source community, he can mostly be found tinkering about creating web sites and plugins for various CMS platforms as well as maintaining several websites of his own.

People in this conversation

  • You can also turn off the bottom menu before login.

    Open inc/classes/BXdoltemplate.php

    Go To Line 723: case 'bottom_links':

    replace: $sRet = $oFunctions -> genSiteBottomMenu();

    with

    if (islogged()) {
    $sRet = $oFunctions -> genSiteBottomMenu();
    }


    Cheers,

    D

    0Like
  • You can also turn off the bottom menu before login.

    Open inc/classes/BXdoltemplate.php

    Go To Line 723: case 'bottom_links':

    replace: $sRet = $oFunctions -> genSiteBottomMenu();

    with

    if (islogged()) {
    $sRet = $oFunctions -> genSiteBottomMenu();
    }


    Cheers,

    D

    0Like
  • In the part where you hide the stripe, exactly where do you insert that code?

    First part worked perfectly!

    0Like
  • In the part where you hide the stripe, exactly where do you insert that code?

    First part worked perfectly!

    0Like
  • Hi Eric,

    The code should be added to the templates css file (index.css should work). Adding it to the end of the file should suffice.

    0Like
  • Hi Eric,

    The code should be added to the templates css file (index.css should work). Adding it to the end of the file should suffice.

    0Like
Add comment