• Hi there,

    First, your plugin looks great and its exactly want I need for a project I am working on!
    But I don′t need the option for people to login from the front-end and add new business directories.

    What I really need is a way for all the site editors to have access to the plugin from the back-end and be able to add new entries without having to use another kind of login.

    Can you please tell me what PHP code do I need to change for that?

    Thanks!

    https://www.ads-software.com/plugins/ldd-business-directory/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mark

    (@delayedinsanity)

    You shouldn’t have to do any editing at all.

    I believe there was an option on the dashboard to turn off the submit button on the front end. From there, anyone with access to you dashboard can use the “add listing” feature.

    Thread Starter filete

    (@filete)

    Hi again,

    Thanks for your quick reply!

    Yes, I have that option in the settings page turn-off ( I think you mean the ‘Add’ and ‘Login’ option in front).
    But even so, all the editors when logged to the wordpress dashboard, don′t see your plugin menu on the left -side!

    Thread Starter filete

    (@filete)

    Well, it looks like the plugin dashboard is only access by Administrators.

    Checking the lddbd_backend-display.php file, we find this code:

    if (!current_user_can('manage_options'))

    This check if the user has administrator privileges, but i thought will only show an error message to an editor, if it try to edit or add a new business directory from the backend.

    But in my case, the plugin menu does not show up in the wordpress dashboard if I log as an editor. I tried to change the role from ‘manage_options’ to ‘edit_posts’, still no luck!

    Being trying for hours and can′t find whats the issue!

    Please give some help.Thanks!

    Mark

    (@delayedinsanity)

    Can you do a multiple file search and replace? If not, you will have to do it individually in both lddbd_backend-display.php and lddbd_settings.php. There are quite a few instances where capabilities are checked, not the least of which is in the latter file where add_menu_page() is called.

    Search for manage_options and replace it with edit_posts

    Alternatively, you can take a look at LDD Directory Lite which is where all development on the directory plugin will be transitioning to.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HELP: backend access to all editors without logins?’ is closed to new replies.