Title: Userroles
Last modified: October 20, 2017

---

# Userroles

 *  Resolved [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/)
 * Hello!
 * Is it possible that a user has the role to use the sortcodes, but doesn’t have
   the ability to edit the shortcodes?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9624095)
 * Nice idea. I’ll do research and implement that.
 *  Thread Starter [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9626893)
 * great. It would also be nice when I can use it for frontend-pulishers (like [https://de.wordpress.org/plugins/front-end-publishing/](https://de.wordpress.org/plugins/front-end-publishing/)).
   Now the tinymce-button in the frontend is not displayed.
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9649881)
 * [@monika21](https://wordpress.org/support/users/monika21/) I tested the existing
   behavior.
 * Shortcodes can be created only by “administrators” (or) users who have ability
   to edit plugin settings.
 * But they cannot be edited by other users.
 * Example:
    Admin user created a shortcode, an editor/author can only use the shortcode
   but cannot edit it.
 * Can you please help me if this is what you are trying to achieve ?
 * Thanks,
    Aakash
 *  Thread Starter [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9651463)
 * [@vaakash](https://wordpress.org/support/users/vaakash/) You are right. Authors
   cannot edit the shortcodes, but the “edit”-link is visible (in the editor).
 * Now I have a second problem: When I add the tinymce-editor with the plugin [https://wordpress.org/plugins/front-end-publishing/](https://wordpress.org/plugins/front-end-publishing/)
   the tinymce-button for the shortcodes are not visible. How can I add the button?
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9652131)
 * [@monika21](https://wordpress.org/support/users/monika21/), yes the edit button
   will be visible but when the user clicks it, he will get permission denied error.
 * Regarding the tinymce issue, that is a unique requirement.
    Can you please try
   changing `admin_init` to `init` in this file ?
 * [https://plugins.trac.wordpress.org/browser/shortcoder/trunk/admin/sc-admin.php#L25](https://plugins.trac.wordpress.org/browser/shortcoder/trunk/admin/sc-admin.php#L25)
 *  Thread Starter [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9654566)
 * Thank you for the help, [@vaakash](https://wordpress.org/support/users/vaakash/).
 * Now I see the button, but nothing happens when I click on the button…
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9655745)
 * [@monika21](https://wordpress.org/support/users/monika21/), I guess it is because
   the WordPress admin UI elements are not loaded outside in the frontend.
 * Can you please share me the site URL where I can see the editor ?
 * One more question, do other tiny mce buttons from other plugins work ? because
   the implementation is not specific to Shortcoder.
 * Thanks,
    Aakash
 *  Thread Starter [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9655849)
 * [@vaakash](https://wordpress.org/support/users/vaakash/), unfortunately the site
   is in construction and behind a htaccess-password… but I use also this plugin
   [https://wordpress.org/plugins/wp-user-avatar/](https://wordpress.org/plugins/wp-user-avatar/)
 * and in the front-end editor I can use the button of the wp-user-avatar plugin.
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9655924)
 * Ok, can you please try adding the below code in your theme’s functions.php file?
 * `add_thickbox();`
 * If this does not work, try the one below.
 *     ```
       add_action( 'wp_enqueue_scripts', 'sc_add_thickbox' );
       function sc_add_thickbox(){
         wp_enqueue_script( 'thickbox' );
         wp_enqueue_style( 'thickbox' );
       }
       ```
   

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Userroles’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/userroles/#post-9655924)
 * Status: resolved