1
barryc
Hiding menu item in "header"
  • 2005/7/7 7:16

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


In the theme I use there is a menu bar just below the log that holds certain important links for the site. These are coded in the form:

<a href="<{$xoops_url}>/modules/tinycontent0/index.php?id=9">Join the AKA</a>
&nbsp;•&nbsp;
<a href="<{$xoops_url}>/modules/tinycontent0/index.php?id=10">Killietalk</a>
&nbsp;•&nbsp;

etc. Thus, they are visible to all visitors to the site, but some of the target pages are restricted by the XOOPS permission system to members of certain groups. If a non-member clicks on a restricted item, they will get the login form.

Ideally, I'd like to be able to hide those menu items from non-members, or folks not logged in. In other words, I'd like them to become visible only when a member of the appropriate group logs in. Is there any way I can do this, using scripting perhaps?

Barry Cooper
Barry Cooper
Sweet Home, Oregon