1
Monika
Yogurt again!
  • 2008/12/22 5:11

  • Monika

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/12/19


Hey again with Yogurt, it is a good module but it still needs a LOT OF improvements.

The anonymous user should not see My Settings tab (also in the menu), please how to do to hide it if the user is anonymous?

Actually the whole networking sub menus should be hidden if the user is anonymous.

Thank you

2
blueteen
Re: Yogurt again!
  • 2008/12/23 10:34

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello, are you talking about this tab ?
Resized Image

On my website, anonymous can't see it.

Check if you have this code in : yogurt/templates/yogurt_navbar.html (line 41 to 43)
le="color: #000000"><?php <{if $isOwner}> <li <{if $section_name==$lang_configs}>class="tabs-selected" <{/if}>> <a href="configs.php?uid=<{$uid_owner}>"><span><img class="yogurt-nav-bar-icon" src="images/configs.gif" /><{$lang_configs}></span></a></li> <{/if}>


The tab displays only for the owner.

For you second question, try this :
In modules/yogurt/xoops_version.php, look for
le="color: #000000"><?php $modversion['hasMain'] = 1;


Add this code after :
le="color: #000000"><?php if (is_object($xoopsUser)){ $groupsok = $xoopsUser->getGroups(); } else {$groupsok=99;} if (!in_array("3", $groupsok)){


And after
le="color: #000000"><?php $modversion['sub'][9]['url'] = "configs.php";


Add :
le="color: #000000"><?php }