I don't want the menu or the blank position to show when users are not logged in. Perhaps in guest mode for J3.
How do I do this?
Hi Marcos Paulino,
I am a bit dark about the whole requirement.
Can you explain a bit more? Sometimes a screenshot with highlighted things will help to understand better way.
Thanks
Hi,
Very simply... I only want the Megamenu [mainmenu] position to be displayed when the user is logged in.
When the user is NOT logged in, I want the position to disappear.
Does this make it any clearer?
Hi Marcos Paulino,
Please go to
site admin > template manager > socialize > mega menu [button]
Set the permission of megamenu as registered.
Thanks
Hi Marcos Paulino,
Can you now make all menu item as "registered".
Thanks
Hi,
It looks like it is "starting" to work but the blue bar still shows (without any menu options).
Can you make it so that the blue bar does not show in ANY of the languages when the users are not logged in?
Thanks!
One thing I need you to have a look at is that when you login in ENGLISH, sometimes the main login stays as if you haven't logged in. In other languages you don't have this issue.
I deleted the home menu, recreated it, and nothing.
I hope you can find what is causing this.
Thanks!
PS In addition to not having the menu show when users are not logged in which is the orignal issue.
Hi Marcos Paulino,
I have changed at your site
"root/templates/socialize/tpls/block/mainnav.php" as
defined('_JEXEC') or die;
?>
<!-- MAIN NAVIGATION -->
<nav id="t3-mainnav" class="wrap t3-mainnav navbar-collapse-fixed-top">
<div class="container navbar">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar hidden-desktop" data-toggle="collapse" data-target=".nav-collapse">
<i class="fa fa-bars"></i>
</button>
<div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
<?php endif ?>
</div>
</div>
</div>
</nav>
<!-- //MAIN NAVIGATION -->defined('_JEXEC') or die;
$user = JFactory::getUser();
?>
<?php if(!$user->guest){?>
<!-- MAIN NAVIGATION -->
<nav id="t3-mainnav" class="wrap t3-mainnav navbar-collapse-fixed-top">
<div class="container navbar">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar hidden-desktop" data-toggle="collapse" data-target=".nav-collapse">
<i class="fa fa-bars"></i>
</button>
<div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
<?php endif ?>
</div>
</div>
</div>
</nav>
<!-- //MAIN NAVIGATION -->
<?php }?>
Thank you Ashraf,
This works great. But I still have the issue with the Facebook login.
Try this:
1. Login with FB
2. Either press Ctrl - F5 or switch the language.
Then Try this.
1. Logout
2. Login entering username and pass
What is causing this?>