Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • clarckconnect Friend
    #186740

    hello everyone i want ask, i want hide some modul after login, my modul position on user3 and i read for hiding modul after login i need use this code :
    <blockquote><?php
    $user =& JFactory::getUser();

    if ($user->guest): ?>
    <jdoc:include type=”modules” name=”user3″ style=”rounded” />
    <?php endif; ?></blockquote>

    but i confuse where should i put cause i try to put on index.php on template still appear i use ja T3 blank template. thanks before.

    Ninja Lead Moderator
    #489932

    Very difficult to explain the php code to hide module on JA Template to you.

    You can use other way

    1) Log into your Joomla dashboard
    2) In the top menu, click Extensions and then click Module Manager
    3) In the list of modules on the page, click the module that you don’t want to show for logged in users
    4) In the list of settings on the page, find the Access setting:

    Access
    The access level group that is allowed to view this item.

    The default setting is Public, which is everyone that visits your site. This includes both guests and logged in users. To hide this module for users logged in, change the setting value to Guest, which means only guests will have permission to view it. Click Save in the top left of the page to save your settings.

    In the screenshots below, both are taken as a logged in user. One screenshot represents when the Public Access is set, and the other shows the Guest Access set.

    If you are using Joomla J2.5 refer this link to create Guest access

    clarckconnect Friend
    #490290

    ok thanks ill try it

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  clarckconnect 11 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum