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)
<{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
$modversion['hasMain'] = 1;


Add this code after :
if (is_object($xoopsUser)){
$groupsok $xoopsUser->getGroups();
}
else {
$groupsok=99;}
if (!
in_array("3"$groupsok)){


And after
$modversion['sub'][9]['url'] = "configs.php";


Add :
}


Login

Who's Online

107 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 107


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits