1
BrainDead
Menu link hack by user group
  • 2005/6/24 4:32

  • BrainDead

  • Just popping in

  • Posts: 6

  • Since: 2004/11/14


I need to add a html link in the main menu that only shows to my "family" group and "admin" group.

What is the proper code for something like this?

{if $xoops_group_is "family"} & {if $xoops_isadmin}>

<
a href="link1.htm">family group link</a>

<{else}>

<
a href="link2.htm">link for everyone else</a>


Thanks for the help.

2
Will_H
Re: Menu link hack by user group
  • 2005/6/24 19:51

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Well unless you are dead set on diplaying this in the user menu, you could make a custom block, place your desired url into this block, go to your admin panel, go to groups, and adjust the acces rights there. you can weight and place the block beneath your user menu and even call it something like "Family Links" or "User Links"... essentially you could create a special menu for each group by adding as many links as you need.

Login

Who's Online

230 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 230


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