TinyPortal

Development => Support => Topic started by: aeon on October 31, 2007, 11:34:22 AM

Title: Membergroup permission for viewing articles
Post by: aeon on October 31, 2007, 11:34:22 AM
Is there any way to limit which membergroups can view each article/category? For example I don't want guests to be able to view most of the articles.
Title: Re: Membergroup permission for viewing articles
Post by: Hairy on October 31, 2007, 12:36:57 PM
The only way I know how to do that is by using PHP articles and using the code explained here: http://www.tinyportal.net/index.php?topic=12898.0

You can have the article show the content for particular groups and make it give a different message to everyone else example: "Sorry, this article is restricted to x members only"

Cheers
Title: Re: Membergroup permission for viewing articles
Post by: aeon on October 31, 2007, 01:15:56 PM
Thanks for the quick reply. This is very useful.
Title: Re: Membergroup permission for viewing articles
Post by: Hairy on October 31, 2007, 01:30:01 PM
No problem aeon

The menu Thurnok posted in that thread is another thing you might like to use, it uses those conditionals that can be used show the links to your articles also.

That way guests etc. should not even stumble onto those articles in the first place but if they accidently do (they could just randomly change the page number in their browser), then they are setup with conditionals also.

Cheers
Title: Re: Membergroup permission for viewing articles
Post by: qtwre on October 31, 2007, 02:57:39 PM
I've a problem on this..  Here is what happened:

I added some members to certain membergroup, be it newly created group or orginal global moderator; those members can't view the main portal homepage..  Can this be solved?  Normal Guest or full access Administrator seems to be ok..
Title: Re: Membergroup permission for viewing articles
Post by: IchBin on October 31, 2007, 06:28:17 PM
DO NOT cross post and especially hijack another thread with a question that is not related to the OT. Continue in your original post please.