• I have installed and LOVE the gravity forms toolbar item. Its exactly what I need for my users to be able to easily monitor entries from the front end to the back end.

    However when I limit the capabilities of my users I love the gravity froms tool bar item and I can’t find how to add it back in as a specific capability for my user.

    I have checked all the gravity forms items I want them to accees ( mainly all the view, edit entires, export, view notes etc… but have not allowed fro them to see any of the uninstalls and delete options.

    The roles capability section does allow for me to enter a custom capability, but I have no idea what to write to enable this to show in the front end toolbar

    Can you help?

    Jen

    https://www.ads-software.com/plugins/gravity-forms-toolbar/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Decker

    (@daveshine)

    @boxercox:
    Hi Jen!
    Thanks for your feedback and using my plugin, really appreciate that! ??

    Please see FAQ here with the section “Available Filters to Customize More Stuff” https://www.ads-software.com/plugins/gravity-forms-toolbar/faq/
    You can already restrict for certain roles or just allow for certain roles, let’s say editor.

    Please note that every item in my toolbar plugin depends on the ORIGINAL CAPABILITY used by Gravity Forms itself and/or the supported add-ons.

    For example, if a link item in Gravity Forms requires gform_full_access then it will be the same in my plugin! To have fine grained support for user roles in Gravity Forms their devs always recommend the “Members” plugin by Justin Tadlock https://www.ads-software.com/plugins/members/ — With it you can say what a certain role can do, and enable/disable certain roles – for WP Core or just Gravity Forms. It will be reflected then in my toolbar plugin as I already support it! ??

    I hope this is what you want. Otherwise could please explain in more detail and give an example.

    Thank you.
    –Dave ??

    Plugin Author David Decker

    (@daveshine)

    Me again, I also collected some snippets for better copying as a Gist at GitHub, see here:
    https://gist.github.com/deckerweb/2732242

    –Dave ??

    Thread Starter boxercox

    (@boxercox)

    I am not so great with php ?? bit of a self taught girl so bit stumped.

    I am using 2 other plugins
    1) User Access Manager

    2) User Role Editor

    One allows me to easily lock out pages and sections that are not for certain roles.
    The other allows me to set new roles and then to set what capabilities they have.

    But they don’t seem to show me where to add back in the capability to show the gravity forms toolbar.

    It shows beautifully for admin members but not for my new group “sales staff”

    I could give you login access but not sure where to send it.

    Also I have had issues in the past whereby a helpful developer has negated a whole chunk of a live website while fixing is thing, so I am a little scared.
    What do you suggest?

    Thread Starter boxercox

    (@boxercox)

    I saw your code and would love to try adding it but not sure what file to enter it into. Can you let me know what file and at what line number to add it in?

    Thread Starter boxercox

    (@boxercox)

    Sorry I am a dunce. I have been testing and using the user Roles Editor I can’t seem to add access to the Gravity forms toolbar to any role other than to the admin. Ad Ideally I need it to show on lots of other levels esp my custom roles.

    Can you tell me what code/hook to add, what file to add it to and at what line?

    I have roles like” Manager, Sales Staff etc but at present even editor role can’t see the gravity form s stuff in the toolbar

    Plugin Author David Decker

    (@daveshine)

    Hi there!
    The toolbar plugin itself has no own role/capability! But all included toolbar item links in the plugin are mapped to the existing cabalitity setting in their original menu location.

    However, since you are not using the “Members” plugin, you cannot use the fine grained control from it for Gravity Forms. Gravity Forms itself has only support for “Members” included. The plugins you are using are not much of a help. You can only leverage the global user role for Gravity Forms which is for admins and has the ID of gforms_all_access —> This will be the capability you need to set in your other plugins for those users that should be able to see toolbar items.

    To help your further maybe with an example code what you can additionally do from my plugin, it would be of great help to make me a temporary admin test account on your site – only if you want! My contact is: https://genesisthemes.de/en/contact/ —> I can promise to not do anything to your site! But only if you want that I could have a look.

    Thanks, Dave ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how do I display the gravity forms toolbar item for specific user roles’ is closed to new replies.