DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

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

Dolphin - Include instructions on the 'Add Site' p...
Dolphin - Redirect users after editing profile

Related Posts

 

Comments 5

mu on Thursday, 19 August 2010 23:37

hi everyone
I dont advise you to do this hack. after i did it , i get all kind of rrors, even if i reedit the original code.
Warning: Cannot modify header information - headers already sent by (output started at /home/mido/public_html/http://vacation-dating.com/templates/base/scripts/BxBaseMenu.php:1817) in /home/mu/public_html/test/inc/design.inc.php on line 133

0
hi everyone
I dont advise you to do this hack. after i did it , i get all kind of rrors, even if i reedit the original code.
Warning: Cannot modify header information - headers already sent by (output started at /home/mido/public_html/vacation-dating.com/templates/base/scripts/BxBaseMenu.php:1817) in /home/mu/public_html/test/inc/design.inc.php on line 133
DeeEmm on Thursday, 19 August 2010 23:54

[quote name="mu"]hi everyone
I dont advise you to do this hack. after i did it , i get all kind of rrors, even if i reedit the original code.[/quote]

Hi Mu,

Not very nice joining up to tell everyone not to apply this mod. I provide a support forum for helping with issues, why have you not posted a question there before before jumping to the conclusion that there is an issue with the mod.

If you had, I would have told you that you have likely added a space at the beginning of your file - as that is what the error you report generally means.

Unfortunately it seems that you are not capable of making even a simple modification such as this one, so I doubt that you are really qualified to comment on the integrity of this mod.

/DM

0
[quote name="mu"]hi everyone
I dont advise you to do this hack. after i did it , i get all kind of rrors, even if i reedit the original code.[/quote]

Hi Mu,

Not very nice joining up to tell everyone not to apply this mod. I provide a support forum for helping with issues, why have you not posted a question there before before jumping to the conclusion that there is an issue with the mod.

If you had, I would have told you that you have likely added a space at the beginning of your file - as that is what the error you report generally means.

Unfortunately it seems that you are not capable of making even a simple modification such as this one, so I doubt that you are really qualified to comment on the integrity of this mod.

/DM
dave on Wednesday, 08 December 2010 23:56

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

0
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
Eric H on Tuesday, 06 March 2012 02:41

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

First part worked perfectly!

0
In the part where you hide the stripe, exactly where do you insert that code? First part worked perfectly!
DeeEmm on Wednesday, 07 March 2012 01:10

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.

0
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.
Already Registered? Login Here
Guest
Saturday, 22 July 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image