11
ptomter
Re: Different homepage for different groups
  • 2010/7/8 15:54

  • ptomter

  • Just popping in

  • Posts: 49

  • Since: 2009/3/31


No I need link customs link for groups, so if you could help me I would be thankful.

12
ptomter
Re: Different homepage for different groups
  • 2010/7/8 16:28

  • ptomter

  • Just popping in

  • Posts: 49

  • Since: 2009/3/31


I used
<{php}> if ( in_array(1, $_SESSION['xoopsUserGroups'] ) {/php}>
"some information"

rather than

<{if 1|in_array:$xoops_usergroups}>Show for group 1<{/if}>

Then it worked

13
ptomter
Re: Different homepage for different groups
  • 2010/7/10 2:25

  • ptomter

  • Just popping in

  • Posts: 49

  • Since: 2009/3/31


When jusing

<{php}> if ( in_array(1, $_SESSION['xoopsUserGroups'] ) {/php}>

It seems that it doesnt care witch usergroup that is logged in and is showing my things eather. I will try with an "else" function and see if this is needed.

14
ghia
Re: Different homepage for different groups
  • 2010/7/10 6:41

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


XOOPS, PHP version?
Which files, module, block(?) are you modifying?

Login

Username:
Password:

Lost Password? Register now!

Who's Online

73 user(s) are online (51 user(s) are browsing Support Forums)


Members: 1


Guests: 72


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits