Viewing 9 replies - 1 through 9 (of 9 total)
  • Yes, me too…
    I want also like that.
    So, not only guest can post in the front page.
    Registered member should use his name for the Author.

    Plugin Author inapan

    (@inapan)

    There are some posts about contributor access.

    First, the plugin doesn’t just allow guest posting. It allows guest posting only if you explicitly enable it. Normally the widget only shows for logged-in users.

    For logged-in users the post authors name is the name of the user.

    To determine whether the users profile of logged-in users allows posting, the widget uses the code current_user_can('publish_posts'). Normally Subscribers and Contributors cannot publish posts so the widget doesn’t show for them.
    You can however expand the capabilities of these roles with plugins, for instance the User Role Editor plugin. If you enable the Contributor role to publish_posts the widget will show for them.

    You can also try to change some code in the quick-post-widget.php. Try changing on line 872 of the current version 1.8.1 the line which says

    if ( current_user_can('publish_posts') )

    to

    if ( $current_user->user_level >= 1 )

    Of course the disadvantage of hacking is that you will lose those customizations when upgrading the plugin. The advantage however is that you won’t need an extra role editor plugin.

    Please reply whether all this has been helpful to you.

    inapan

    Thread Starter Ronald

    (@rcherryjam21net)

    This is a great plugin! With WordPress the default capability of a Contributor is to be able to submit posts for review. Pending approval by the admin they will be published. I would like a contributor able to submit post using quick-post as he/she can on the back end of WordPress.

    Tried the Role Editor plugin you suggested and the hacks to quick-post-widget.php but after making those changes a Contributor is able to publish posts, not just submit them for review by the admin. I appreciate your work on this. Access to the plugin site is giving a database error.

    Plugin Author inapan

    (@inapan)

    @ronald

    I’m afraid I can only help you with another small hack but I will give all the posts about contributor and subscriber access some thoughts to perhaps come up with a more elegant solution in the future.

    For the time being a hack which I think might work (you also need the hack, or User Role Editor plugin described above). Place the following code in the quick-post-widget.php file before the post gets inserted, for instance on line 1197 (for version 1.8.1 of the plugin):

    if ( $current_user->user_level == 1 ) {
    	$publish_status = 'pending';
    }

    This way, only for contributors, the publish status allways becomes pending.

    Hope this helps for now and, as said, I will think of a better solution for the future.

    inapan

    Thread Starter Ronald

    (@rcherryjam21net)

    Yes, that worked. Now contributor post are held for review. Thanks I appreciate your expertise!

    Plugin Author inapan

    (@inapan)

    @ronald

    You’re welcome.

    inapan

    Brian

    (@womensradio)

    @inapan it looks like you know your stuff! Any chance you might have a hack in mind for our similar situation?

    Our contributors will be submitting content for approval, but we want to give them the ability to schedule a future publication date.

    It seems like your hack mentioned above would do the trick:

    if ( $current_user->user_level == 1 ) {
    	$publish_status = 'pending';
    }

    However, we would be editing the ‘Posts.php’ file, correct? Is there a certain line/section we might apply this to?

    Many Thanks!

    -Brian & WR

    Just wanted to vote for the plugin to honor the contributor role (ie – they are allowed to post, but posts are held for review). It was the first thing I wanted to do with the plugin (which is how I found this thread!). In the meantime, I’ll use the hacks mentioned above.

    Thanks!

    Other than that – it was exactly what I needed!

    One more vote for the plugin to be visible to contributors (to submit for review).

    Any progress on that?

    I tried to insert the hack code above, but WP gave me an error saying I was violating a security rule, which I could disable only by modifying .htaccess. I didn’t want to mess around with this, so I dropped it.

    Unfortunately, this means for now, your otherwise excellent widget is useless to us. Our few authors — who review no review — don’t need the widget; but the contributors who could benefit from the widget can’t see it!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Quick Post Widget] Contributor access?’ is closed to new replies.