Can you hide the nav bar

Hi is it possible to hide the nav bar before members join , i have a splashpage so i dont need a navbar , i dont want members looking at my site before joining as its not very busy lol

Quote · 29 Nov 2013

 

Hi is it possible to hide the nav bar before members join , i have a splashpage so i dont need a navbar , i dont want members looking at my site before joining as its not very busy lol

 have you used the site search here, this has been discussed many times in the past

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 29 Nov 2013

This might work..

http://www.boonex.com/m/FREE_MOD_DeeEmm_Hide_Menu_Bar_from_Guests

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 29 Nov 2013

This from Marcoart is easy too..

http://www.boonex.com/forums/topic/Remove-top-menu.htm#86927

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 29 Nov 2013

Or this simple code change to one line.

Just edit inc/classes/BxDolTemplate.php

Look for this at about line 748

            case 'top_menu':
                $sRet = $GLOBALS['oTopMenu'] -> getCode();
                break;

Change this line from this.

$sRet = $GLOBALS['oTopMenu'] -> getCode();

To this.

if(isMember()) $sRet = $GLOBALS['oTopMenu'] -> getCode();


Re-posted from my answer in this topic. http://www.boonex.com/forums/topic/Hide-Empty-Menu-bar.htm

https://www.deanbassett.com
Quote · 29 Nov 2013

 

Re-posted from my answer in this topic. http://www.boonex.com/forums/topic/Hide-Empty-Menu-bar.htm

 Thanks Deano! Yours is actually the one I was trying to find...

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 30 Nov 2013

Great work thankyou very much for helping , ps this change wont cause errors in future updates like 7.1.5

Quote · 30 Nov 2013

 

Great work thankyou very much for helping , ps this change wont cause errors in future updates like 7.1.5

 Any time you make changes to core files, it can be overwritten in an update.  So, make a list of the files you have changed and keep a back up of the file, with the ext of bck; and you will also know which files have changed from the extension.  Then when you upgrade, you add your change to the upgrade file before performing the upgrade.

Geeks, making the world a better place
Quote · 30 Nov 2013

Cool so i just save the inc/classes/BxDolTemplate.php file and all will be good but im thinking this file may have changes in future updates, its prob best once upgrade is complete  just make the changes stated above again

Quote · 30 Nov 2013

 

Cool so i just save the inc/classes/BxDolTemplate.php file and all will be good but im thinking this file may have changes in future updates, its prob best once upgrade is complete  just make the changes stated above again


Umm. Yea. You are correct. She stated that. Just not worded clearly. The backup is just so you have a quick visual references of all the the files you had made changes to. You do not restore those files.

You want to note the changes you make. Not make backups to your files. Because you do not under any circumstances want to replace a newer dolphin file with a older one.

What you want to do is recreate the changes in the newer file. Never replace the entire file with a older version. That's what causes some of the problems many people have when they start mixing files from different versions of dolphin.

https://www.deanbassett.com
Quote · 30 Nov 2013

Hi i just try the code if(isMember()) $sRet = $GLOBALS['oTopMenu'] -> getCode(); it made the nav bar drop down so that there is a gap any reason , many thanks

Quote · 30 Nov 2013

 

Hi i just try the code if(isMember()) $sRet = $GLOBALS['oTopMenu'] -> getCode(); it made the nav bar drop down so that there is a gap any reason , many thanks

Nope. There should not be any issues. I cannot reproduce any problems on my site.


https://www.deanbassett.com
Quote · 30 Nov 2013

 

Hi i just try the code if(isMember()) $sRet = $GLOBALS['oTopMenu'] -> getCode(); it made the nav bar drop down so that there is a gap any reason , many thanks

View source and use Firebug as well to see what is there.  Firebug is good for seeing if there is a division or something and the css being applied.

Geeks, making the world a better place
Quote · 30 Nov 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.