Make FAQ only visible to registered users?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Damo
Posts: 12
Joined: Wed May 11, 2011 8:06 am

Make FAQ only visible to registered users?

Post by Damo »

I'm not sure if you can do this. The "feature" section says you can control access to the FAQ, including who can see certain sections. But from some posts on here, it would seem that you can't prevent unregistered users from seeing content... so I am a little confused.

Basically... can you prevent unregistered users from seeing content?
JochenS
Posts: 121
Joined: Wed Feb 16, 2011 3:51 pm
Location: Schönaich
Contact:

Re: Make FAQ only visible to registered users?

Post by JochenS »

Basically... can you prevent unregistered users from seeing content?
Thorsten states that phpMyFAQ is not a system to protect data 100%. But this is possible. You need to configure "user groups". See this discussion: viewtopic.php?f=2&t=11159
But from some posts on here, it would seem that you can't prevent unregistered users from seeing content.
Which post you are refering?
Our public FAQ is proudly powered by phpMyFAQ: http://vhtfaq.ge51.honeywell.de/
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: Make FAQ only visible to registered users?

Post by jason102178 »

No Not at this time it is not possible to only make FAQs visible to registered users...


Thanks

Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
JochenS
Posts: 121
Joined: Wed Feb 16, 2011 3:51 pm
Location: Schönaich
Contact:

Re: Make FAQ only visible to registered users?

Post by JochenS »

Confusion, Confusion:)

Jason,

can you tell me why I was able to configure this?

Check one of my faq's http://clfaq.ge51.honeywell.de or even http://xl5kfaq.ge51.honeywell.de? OK the second one has little more php programming, but the first one is pure phpMyFAQ!
Our public FAQ is proudly powered by phpMyFAQ: http://vhtfaq.ge51.honeywell.de/
JochenS
Posts: 121
Joined: Wed Feb 16, 2011 3:51 pm
Location: Schönaich
Contact:

HOWTO Make FAQ only visible to registered users!

Post by JochenS »

My intention of this posting is to write a howto on this topic. If you have any comments, please post it. I will incorporate it.

These are the settings I have used to hide my FAQ's.
1.) I have set the medium access level the main config.

2.) I have added a "Viewer" group with no rights except of the right to change the password. This group has "autojoin" enabled.

Image

3.) Each category can be viewed only by the group "Viewer"
Image

4.) Each FAQ can be viewed only by the group "Viewer"
Image

Please note the group and user permission are combined with an boolean "AND". My first expection was a "Or".

I plan to provide the code to hide the main page of the FAQ behind a login screen. I will merge the code as soon the 2.7 beta is released.



Open gaps are:
  • RSS feed "Latest FAQs" shows all FAQ's (and also all languages)
  • For every single FAQ the rights needs to be set in the right way:
Issues:
  • Search plugin is not working

Jason & Thorsten, what are your comments?
Last edited by JochenS on Mon May 16, 2011 4:01 pm, edited 1 time in total.
Our public FAQ is proudly powered by phpMyFAQ: http://vhtfaq.ge51.honeywell.de/
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: Make FAQ only visible to registered users?

Post by jason102178 »

Thanks for sharing this , the only problem i really seen is that the users would have to edit each category and set the user permission levels to restricted which can be a little time consuming to go back and edit each one, would be better if there was one edit an it would change all the categories...

But with that said i do like the idea of all new Entries being Forced to the new Group so users wont have to worry about adding restriction to new ones.....

I am still looking into the security issues with it and i will re post


I will discuss the with Throsten and see what he thinks.....


Cheers,

Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Make FAQ only visible to registered users?

Post by Thorsten »

Hi,

thanks for sharing this information. I think we should should start creating a better user manual and include this kind of information.

phpMyFAQ 2.7 itself has the special focus on better usability and removing some old issues. The next beta release won't have all improvements but I hope I can include a lot of them.

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