Advertisement:

Author Topic: Changing what a user can see via their assigned group  (Read 23938 times)

Offline Wh1teLeopard

  • Semi-Newbie
  • *
  • Posts: 53
  • Gender: Female
    • Kei kars in the park
Changing what a user can see via their assigned group
« on: July 16, 2008, 11:25:04 AM »
Just trying to make a different hello message appear to each user dependant on their usergroup to try help explain what features are available to them etc.

I can get the guest, and the admin thing, but for the life of me can't work out how you do it using their user group. This is as far as I've got at the moment:

Code: [Select]
// GUESTS INTRO
if ($context['user']['is_guest'])
echo 'Hello Guest';
else
// NOMINATED MEMBERS INTRO
$context['member']['group']==11)
echo 'Hello Nominated Member';
else
// ADMIN INTRO
if ($context['allow_admin'])
echo 'HELLO ADMIN';

At the moment if you take out the nominated member intro piece it works fine at say hi to guests and admin, but I need to find out how to make it say hi to nominated members too.

Many thanks for any help :)
www.keikarsinthepark.co.uk - The annual meet for kei car owners.

Offline Wh1teLeopard

  • Semi-Newbie
  • *
  • Posts: 53
  • Gender: Female
    • Kei kars in the park
Re: Changing what a user can see via their assigned group
« Reply #1 on: July 16, 2008, 01:21:06 PM »
Doesn't matter, just went a different route in the end.
www.keikarsinthepark.co.uk - The annual meet for kei car owners.

Offline Mysia

  • Newbie
  • *
  • Posts: 7
Re: Changing what a user can see via their assigned group
« Reply #2 on: January 29, 2009, 01:59:45 PM »
What file is this located in? I'd also like to change the hello to a different message.