1
irongaijin
Custom links with variables in the main menu
  • 2006/8/24 17:41

  • irongaijin

  • Just popping in

  • Posts: 11

  • Since: 2006/8/24


I modified my system block mainmenu to include a custom link but I would like to make that link hidden from unregistered users. I saw info pertaining to creating a whole menu this way but I was wondering if there was a simple way of adding that variable to the manimenu code? Here it is currently:







Thanks for your help!

2
davidl2
Re: Custom links with variables in the main menu
  • 2006/8/24 17:43

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


It would be a lot simpler to use MultiMenu and just to create a menu block that only the relevent group can see.

3
irongaijin
Re: Custom links with variables in the main menu
  • 2006/8/24 17:57

  • irongaijin

  • Just popping in

  • Posts: 11

  • Since: 2006/8/24


I did look into MultiMenu but was put off. I was hoping there was just some code I could add to the existing html.

4
stefan88
Re: Custom links with variables in the main menu
  • 2006/8/24 18:48

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

YOUR CODE FOR ALL USERS GOES HERE

<{if $xoops_isuser}>
  ...
  
YOUR CODE FOR LOGGED USERS GOES HERE
  
...
<{/if}>

YOUR CODE FOR ALL USERS GOES HERE


The code will be visible only for logged users.

..

5
irongaijin
Re: Custom links with variables in the main menu
  • 2006/8/24 19:26

  • irongaijin

  • Just popping in

  • Posts: 11

  • Since: 2006/8/24


Stefan88,

That was so easy I feel stupid! :) Thank you much!!

Login

Who's Online

218 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

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

Latest GitHub Commits