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

Login

Who's Online

257 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

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

Latest GitHub Commits