News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Restricting access to pages based on membergroup

Started by james78, June 30, 2010, 01:28:22 PM

Previous topic - Next topic

james78

Hi wonder if someone can help me.
I have a website which uses SSI to bring in the forum information to show certain things etc..
My question is I have used   if ($context['user']['is_guest'])     or     if ($context['user']['is_logged'])  to show or hide content on my website but I wondered if there is a way to hide content based on membergroup.

What i am trying to do is retrieve just the latest post from a board which is only viewable on forum to a certain membergroup but if they are not in that group then it will display a message saying you need to be in membergroup to view.

I hope someone can help or help with some code.

forum version is 2 rc3

many thanks in advance

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

james78


xenovanis

Glad I could help :)

I'll mark this solved then, feel free to mark it unsolved if you need more help.
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: