• I didnt know this problem until my friend told me when he tested some code.
    Screenshot here: https://3.bp.blogspot.com/-YB17gwo_urU/Tj7cSWc_3pI/AAAAAAAAAvU/ZL0lbaagOAE/1312742485147.png
    I take it by login on account with author role, all role can see this option.
    To fix this error, i have put
    if (current_user_can('manage_options')) { } in function frontpageSlideshow_admin_menu() {
    And add this code before add_action('admin_menu', 'frontpageSlideshow_admin_menu'); if ( is_admin() )
    So it’ve been like that

    function frontpageSlideshow_admin_menu() {
    if (current_user_can('manage_options')) {	add_options_page('Frontpage Slideshow', 'Frontpage Slideshow', 'edit_posts', 'frontpage-slideshow', 'frontpageSlideshow_admin_options'); }
    }

    if ( is_admin() ) add_action('admin_menu', 'frontpageSlideshow_admin_menu');

    It worked well for me now. It was a bug or may be i installed this plugin wrong way.

    https://www.ads-software.com/extend/plugins/frontpage-slideshow/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author jeff_

    (@jeff_)

    You did everything ok, but as the plugin can be used via a shortcode inserted into any post or page body, an author should (in my opinion) have an access to this page…

    Maybe an author should not be allowed to save new configuration for the plugin ?

    Thread Starter trandaihung

    (@trandaihung)

    I think you should make an option in this case. Allowed or not allowed author access this page, and restrict some settings admin dont want to change.

    Plugin Author jeff_

    (@jeff_)

    I can predict that a significant number of users will ask on how to make the plugin to work if I do so…

    I will just change the way the plugin admin interfaces are activated or not. By now, all the people that can edit a post are allowed to view the whole plugin admin interfaces. I will change it to make people that can edit posts will access the per-post formular, then the admin the main admin page, and perhaps a shortcode editor…

    In one of the next releases.

    Thank you trandaihung!
    Works perfect. Is good to point that the change is made in frontpage-slideshow.php and it replaces the existing one.

    Thank you too Jeff for this close follow to your plugin.

    Thank you all.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Frontpage-Slideshow] Admin Option show to member !!?’ is closed to new replies.