Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Turn Socialize Menu Off When Logged Out

12 years 7 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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?

12 years 7 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

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

12 years 7 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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?

12 years 6 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Marcos Paulino,
Please go to
site admin > template manager > socialize > mega menu [button]
Set the permission of megamenu as registered.
Thanks

12 years 6 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi,

I tried this and it doesn't work...

12 years 6 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Very Simply,

All I want is the login screen to show. I dont want anything else.

Is this possible with socialize?

12 years 6 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Marcos Paulino,
Can you now make all menu item as "registered".
Thanks

12 years 6 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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!

12 years 6 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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.

12 years 6 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

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 -->

replaced by
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 }?>

This is a simple customization which can affect for upgrading the socialize version.
So if any upgrade taking part then need to replace the code again.
Thanks

The following user(s) said Thank You: Marcos
12 years 6 months ago
  • Marcos's Avatar
    Topic Author
  • Marcos
  • Offline
  • Junior Boarder
  • Posts: 182
  • Thank you received: 5
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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?>

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