WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Directory
[resolved] User Edit Record Ongoing Issue (49 posts)

  1. DJ Smith
    Member
    Posted 1 year ago #

    I'm still looking for clarity on getting the Directory Plugin to work for me. I need to give users the ability to edit there record. I added the Members plugin and created a role for the members. Are there specific capabilities I need to give them? Right now I only have "gravityforms_edit_forms" check and the "Edit Entry" link isn't showing. If I check "gravityforms_directory" then I get the "Edit Entry" link but it shows on every record. Keep in mind I'm not logged in as the admin and logged in under another profile with the role of a member. I need to get this resolved to make the client happy. Can anyone clarify this?

    Thanks!
    DJ

    http://wordpress.org/extend/plugins/gravity-forms-addons/

  2. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    You need to use useredit to allow users to edit their own forms:
    [directory form="12" useredit="true"]

  3. DJ Smith
    Member
    Posted 1 year ago #

    Still no luck.

    I have this checked:
    Allow logged-in users to edit entries they created. Will add an 'Edit Your Entry' field to the Single Entry View. (useredit)

    Anything else that I need to do? Anything I need to change in the Roles?

    Thanks!

  4. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    Let me know it the update, coming soon, fixes this for you. I changed some things in this regard.

    If not, I'll keep checking!

  5. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    Do you have caching enabled?

  6. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    Please upgrade to the latest version and let me know if that fixes the issue for you.

  7. DJ Smith
    Member
    Posted 1 year ago #

    It fixed an issue that I had with the first entry with last name starting with "A" wasn't display.

    But still not able to edit by user. Is there something I need to change in the "Roles"?

    Thanks for your help Zack! I will make sure to hit my client up so we can make a donation to your plugin.

  8. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    The key is that the user is logged in when they create the entry. Have you confirmed that is the case? Each entry stores the user ID of who created it. I believe he plugin should allow the person who created the entry and is logged in to edit the entry, regardless of roles.

  9. DJ Smith
    Member
    Posted 1 year ago #

    Might be my problem. I build a site for Idaho Media Professionals and they have about 80 members. They wanted them to be able to login and update their info. I got Gravity Forms after coming across your plugin. But we had to enter in each member because there's an annual fee that all have already paid. I shut off that PayPal connection and we entered each member and gave them a user name and password. Wouldn't that still build the connection so they would login and be able to update their info? I hope this makes sense.

    I even did this with my own information and if I login to my other profile which is non-admin I don't get the link to edit my info.

    Thanks!

  10. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    The entry needs to be mapped to the user ID. You can edit the created_by field in the "wp_rg_lead" table of your database to modify who the lead is owned by. You can also log in to other users' accounts with this plugin: http://wordpress.org/extend/plugins/skeleton-key/

  11. DJ Smith
    Member
    Posted 1 year ago #

    I went to the "wp_users" table and grabbed the number in the ID field and put that in the created_by field in the "wp_rg_lead" table. I logged in as that user using a plugin I found called "Admin Login As Different User". That plugin also shows you the user id. When I logged in as that user I still wasn't able to see a link to edit that record. Suggestions? Thanks.

  12. abss
    Member
    Posted 1 year ago #

    am having the same problem any solutions?

  13. DJ Smith
    Member
    Posted 1 year ago #

    Abss - No, I have not resolved the issue I was having even after mapping the userID in the 2 tables listed above.

  14. nancyeb01
    Member
    Posted 1 year ago #

    After I change Authors and Contributors to the Editor role, the editing permission works.

    I'd love to have that for Authors and Contributors.

  15. nancyeb01
    Member
    Posted 1 year ago #

    To clarify my last comment. Even if a logged in Author or Contributor creates a post using a Gravity Form, they cannot edit it in the directory.

    Only if they are an editor can they edit thru the Single Entry edit function.

  16. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    @DJ Smith Here's how to fix the issue: http://www.seodenver.com/a-gravity-forms-add-on-change-who-created-an-entry/

    @nancyeb01 - I'll look into that, thanks.

  17. DJ Smith
    Member
    Posted 1 year ago #

    It's still not working for me. Ugh. :-( I've done everything above, installed the new plugin and changed the entry to match the user. I'm using the Members Plugin and have assigned a role for the members of the organization. What capabilities should they have assigned?

    http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin

  18. DJ Smith
    Member
    Posted 1 year ago #

    The only time I can make edits is when I'm logged in as Admin. Even then I get an error when updating the entry.

    There were errors with the edit you made.
    Password: This field is required.

  19. Pamela Looper
    Member
    Posted 1 year ago #

    Hi @DJ Smith
    I had the same problem, also use the Members Plugin and was only able to edit the entries when logged in as admin. But for me it is solved now, I added the capability gravityforms_directory to the role that required to edit the entries and voila! Hope it works for you too.

  20. DJ Smith
    Member
    Posted 1 year ago #

    That's a security risk though. By doing that you give everyone who's logged in permission to edit anyone's record. I don't want someone else going into another members record and making a change. That just opens a can of worms.

    The way this plugin should work is only giving the person who created the record permission to edit their record, and only their record. I'm hoping that Zack is either making needed changes, let me know if I'm doing something wrong or another solutions. Thanks.

  21. firstep3
    Member
    Posted 1 year ago #

    I am having this problem as well. I originally set up my users as Authors, but I had a problem with them creating and publishing new content when all I wanted to allow them to do was edit their entries from the form. I changed their roles to Contributors, and now they no longer see the "Edit Entry" link. I then went and changed their roles back to Author, but the link is still not coming back up. Is there any way to allow them to edit their form entries using the Subscriber role? I really don't want them to be able to do anything else on the site, but I'll conced the Contributor role if I have to.

  22. nancyeb01
    Member
    Posted 1 year ago #

    @firstep3 While Zack is working on this issue, one thing you might do is restrict access to areas of the Dashboard and Configuration using plugins like Adminimize and Admin Editor Pro.

  23. firstep3
    Member
    Posted 1 year ago #

    @nancyeb01 - Thank you so much for your suggestion. I actually ended up going with Adminimize to restrict what the users can see in the admin area, but I still needed to give them a way to see and edit their own posts without seeing or editing other people's posts. I picked up two additional plugins that allowed me to accomplish everything I needed. One was called Manage Your Own Posts, which was not on the WordPress site, and the other was User Role Editor, which allowed me to make sure that my Authors could edit their changes but not publish them. This allows me to validate the content before it goes live.

    I am still not seeing the "Edit Entry" link, and I was hoping to go live with my site this weekend. If it has to wait it can. One major favor I would like to ask is to have the "Edit Entry" link moved to the top of the page, rather than the very bottom. Some of our entries are VERY long, and ALL of the users who did the early testing (when my links were working) complained about how difficult it was to locate the link.

  24. Pamela Looper
    Member
    Posted 1 year ago #

    @djsmith I agree it would be dangerous if they can edit someone elses post but they can only see their own posts in the directory. There's not another place they could see the "edit" button is there?

  25. firstep3
    Member
    Posted 1 year ago #

    @PamelaLooper - I am using Gravity Forms to create posts with some of the data we collect, we are storing some of the other information separately. I need my users to be able to go into WordPress later and have the ability to edit their posts. The "Edit Entry" link that we are having problems with is part of the Gravity Forms Directory that is being used to allow them to edit the data that does not get displayed in the post. (Editing that data in Garvity Forms does not update the post data.)

    I wanted to make sure that my users could go into WordPress and edit their own posts, but not be able to see anyone else's or edit those. Sorry for the confusion!

  26. Pamela Looper
    Member
    Posted 1 year ago #

    @firstep3 Thanks, I block my users from the wp dashboard. They can only post and edit posts via the gravity forms. I agree the Edit Entry link would be much better at the top.

    However, after editing via the Edit Entry link the changes are not actually dynamically made in the post, which makes it a little useless. Am I overlooking something?

  27. firstep3
    Member
    Posted 1 year ago #

    Nope, you're not overlooking anything. The Edit Entry link only allows you to edit the Gravity Forms data. Once your form creates the post, everything tied to that post is now in the WP tables. That's why I'm allowing my users to access the admin area in WP. The plugins I am now using only allow them to see their own posts and their profile page. They don't have access to anything else. Also, I have it set up so that any changes they make get submitted for review. They can't actually publish their changes. Publishing is only allowed for admins. We use other data from the form that gets used for a custom search, and we need the Edit Entry link to be able to update that data separately from the post data.

  28. Pamela Looper
    Member
    Posted 1 year ago #

    Ah, that's a little disappointing, the form data was so nice and clean, the posts have a lot of custom fields that may confuse. I'll check out the Manage Your Own Posts Plugin though, my users do need to be able to edit the post. I have Members plugin installed for role access.
    Thanks very much @firstep3 for your advice!

  29. DJ Smith
    Member
    Posted 1 year ago #

    I'm a little frustrated that Zack doesn't monitor the support page for his plugin more often. I have a client that has been waiting for this to work for months. They want their members to be able to edit their entries. I can't do that because I get get an error when trying to edit an entry. Plus the link appears for all members which gives anyone access to changing another members entry. Does anyone have any suggestions or had luck at making contact with Zack? I e-mailed him over a week ago with no reply. Ugh. I know know this is free but you still have an obligation to the WordPress community.

  30. samkitson
    Member
    Posted 1 year ago #

    Been having the same problem that the user has to be an admin to edit their own details when the level of user I want is subscriber. A good way around this is to install the Members plugin, and set subscriber role to be able to do this by selecting 'gravityforms_directory'.

    This seems to work and adds an edit entry link to the single page view of the user's details.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic