Support » Plugin: Q and A FAQ and Knowledge Base for WordPress » [Plugin: Q and A – FAQ Plugin] Restriction for user with Author level

  • Hi, thanks to the developer of this plugin, it works great!

    I only have one problem. I am developing a site where user can register and get an Author level. Problem is, although they can’t see another Author’s posts, but they can see FAQ section, edit and even make their own “FAQ”. Is there any way to resolve this issue?

    Note: WP level is 3.0.3, but I also have the same problem when using 3.0.1. The drop down menu doesn’t have 3.0.3 option.

    http://wordpress.org/extend/plugins/q-and-a/

Viewing 3 replies - 1 through 3 (of 3 total)
  • EFDisaster

    (@efdisaster)

    in a similar situation, I have a couple users who are “Editors”… and it’s fine that they can create and edit FAQs, but they can’t reorder them… is there a simple way to get that part to show up in their dashboard?

    Plugin Author Dalton Rooney

    (@daltonrooney)

    OK, it sounds like you are asking for two different things.

    EFDisaster, you need to change the add_sub_menu function in reorder.php.

    add_submenu_page( 'edit.php?post_type=qa_faqs', 'Reorder FAQs', 'Reorder FAQs', 'manage_options', 'faqpageorder', 'faqpageorder' );

    Right now only people with the “manage_options” capability are able to reorder FAQS. I think you would want anyone who can publish pages to be able to reorder FAQs, too, so maybe try this:

    add_submenu_page( 'edit.php?post_type=qa_faqs', 'Reorder FAQs', 'Reorder FAQs', 'publish_pages', 'faqpageorder', 'faqpageorder' );

    Cardan, you want something totally different, which is to hide the FAQs from users altogether? In q-and-a.php, where the custom post type is registered:

    register_post_type( 'qa_faqs',
    		array(
    			'labels' => array(
    				'name' => __( 'FAQs' ),
    				'singular_name' => __( 'FAQ' ),
    				'edit_item'	=>	__( 'Edit FAQ'),
    				'add_new_item'	=>	__( 'Add FAQ')
    			),
    			'public' => true,
    			'show_ui' => true,
    			'capability_type' => 'post',
    			'rewrite' => array( 'slug' => 'faq', 'with_front' => false ),
    			'taxonomies' => array( 'FAQs '),
    			'supports' => array('title','editor')
    		)
    	);

    Look for where it says ‘capability_type’ => ‘post’

    Change post to whatever you want. If you only want admins to see it, change post to manage_options or something like that.

    Dalton

    I need this also(changing capability_type).

    This way I can use the user role editor plugin to control what each user can do.

    Could you please add an option that would prevent changing the source? This will make updating much easier.

    Thanks George

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Q and A – FAQ Plugin] Restriction for user with Author level’ is closed to new replies.