Making FAQ only visible to registered users?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
filmo
Posts: 10
Joined: Tue Jun 30, 2009 12:22 am

Making FAQ only visible to registered users?

Post by filmo »

Is it possible to make the contents of the FAQ available ONLY to registered users and administrators?

Another words, a non-registered user would see no content, only a page prompting them to register.
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Making FAQ only visible to registered users?

Post by Thorsten »

Hi,

yes, this is possible.

You can create one group and add the auto-join flag for it. So all registered users will join this group and you have to set the categories and records to be visible only for this group.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
filmo
Posts: 10
Joined: Tue Jun 30, 2009 12:22 am

Re: Making FAQ only visible to registered users?

Post by filmo »

Thanks.

Is there a way to 'bulk' update all the existing FAQ entries to be associated with a particular group or do I need to do them one-by-one?

I'm very comfortable with mySQL, so if there's some sort of UPDATE command I can issues against the database to do this all at once that would probably be the easiest. (unless it's built in, but I didn't see such functionality.)
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Making FAQ only visible to registered users?

Post by Thorsten »

Hi,

you can do that directly in MySQL. You have to set the user and group IDs in the faq*_user and faq*_group tables.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply