1
Shine
Create one different usergroups Mainmenu Block ?
  • 2003/11/5 23:46

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Instead of using the standard main menu block, I would like to create my own main menu block.
Creating a block isn't the problem,.......but....:

I know that within XOOPS 1.3.x by using the code:
Quote:

global $xoopsUser;

if($xoopsUser){ // Registered UserMenu
menu links

}

//*******************************************
else { // Anonymous UserMenu

menu links

}

you could handle 2 different types of usergroups mainmenuus within 1 block. Anonymous and Registered users.
No up to my questions:
1). Is the above code also correct for use within XOOPS 2.0.3?
2). What code should I apply if I have a third usergroup, and want to put their mainmenu also within this same menu block?

Can somebody help me out on this?

Grtz., Shine

2
Mithrandir
Re: Create one different usergroups Mainmenu Block ?

1) Yup
2) No clue - haven't messed with usergroups

Login

Who's Online

445 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 445


more...

Donat-O-Meter

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

Latest GitHub Commits