Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

How to hide main menu after user login

10 years 7 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

ISSUE SUMMARY:
I want to hide main menu after user login into jomsocial. Please see my attachment file.

STEPS TO REPLICATE:
1 login
2 I want to hide main menu that show up


before login
3
4
5
RESULT
EXPECTED RESULT
BROWSER

Attachments:
10 years 7 months ago
Licenses:

Hi,

please edit:
/templates/socialize/tpls/blocks/mainnav.php
and replace it with new code:

<?php
/**
 * @package   T3 Blank
 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license   GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<!-- MAIN NAVIGATION -->
<?php
$user = JFactory::getUser();
?>

<nav id="t3-mainnav" class="wrap navbar navbar-default t3-mainnav" style="<?php echo ($user->get('guest') != 1) ? 'display: none;' : ''; ?>">
	<div class="container">

		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
		
			<?php if ($this->getParam('addon_offcanvas_enable')) : ?>
				<?php $this->loadBlock ('off-canvas') ?>
			<?php endif ?>

		</div>

		<?php if ($this->getParam('navigation_collapse_enable')) : ?>
			<?php $this->addScript(T3_URL.'/js/nav-collapse.js'); ?>
			<div class="t3-navbar-collapse navbar-collapse collapse"></div>
		<?php endif ?>

		<div class="t3-navbar navbar-collapse collapse">
			<jdoc:include type="<?php echo $this->getParam('navigation_type', 'megamenu') ?>" name="<?php echo $this->getParam('mm_type', 'mainmenu') ?>" />
		</div>

	</div>
</nav>
<!-- //MAIN NAVIGATION -->

Regards

The following user(s) said Thank You: Muhammad
10 years 7 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

Thanks. Its work!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW