ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SAEF changes author on edit!

April 02, 2008 1:17pm

Subscribe [5]
  • #1 / Apr 02, 2008 1:17pm

    louderthan10

    11 posts

    Help!

    I have a stand alone edit form on my site. It works great except for the fact that if someone other than the original author makes an edit, the entry’s author changes to whomever edited it last.

    Is there some way I can make it hold onto the original author?


    Thanks!

    BTW it was great meeting the team in Austin at SXSW this year! We’re really excited for v.2

  • #2 / Apr 02, 2008 1:22pm

    Lisa Wess

    20502 posts

    Hey, louderthan10!  Are your authors set as authors for the publish page drop-down?  Also, what version and build of EE are you on?

    SXSW was a blast, it was great to meet everyone. =)

  • #3 / Apr 02, 2008 1:25pm

    louderthan10

    11 posts

    No they aren’t, should they be?

    I’m on v. 1.6.2

    Thanks!

  • #4 / Apr 02, 2008 1:32pm

    louderthan10

    11 posts

    Okay I’ve added that group to the Publish page drop-down so I can edit them from the control panel, but I’m still getting the same problem on the SAEF.

  • #5 / Apr 02, 2008 2:32pm

    Lisa Wess

    20502 posts

    Does this changing around happen in the publish page as well? Or only in the SAEF?

  • #6 / Apr 02, 2008 2:48pm

    louderthan10

    11 posts

    Nope just in SAEF. I thik it might be because of the hidden field “author_id” that gets generated with the SAEF tags. IF there was a way I could override that or assign it to the original author I think it might work.

  • #7 / Apr 02, 2008 9:02pm

    Sue Crocker

    26054 posts

    You’re creating a stand alone EDIT form, right? Not the stand alone ENTRY form..

    How are you making the form?

  • #8 / Apr 02, 2008 9:09pm

    louderthan10

    11 posts

    Hi Sue,

    It is an editing form… I’ve actually built myself a little workaround that works just as well for my needs. I’ve basically just added and other custom weblog field called photographer (it’s a photo contest site) that gets populated with the screen_name value when an entry is first published via SAEF.

  • #9 / Apr 02, 2008 9:30pm

    Sue Crocker

    26054 posts

    So in other words, everything is working?

  • #10 / Apr 04, 2008 11:21am

    fanderson

    899 posts

    I am coming in a little late on this discussion, but it is still a relevant issue for me.

    I would like to set up a Stand Alone Edit Form so that content from an existing entry can be edited from a web interface so the user does not have to go through the CP.

    I have read the information on the Stand Alone Entry Form, which I have been able to successfully implement. Is there documentation on how to do it as an Edit Form?

    Any guidance or direction on this would be greatly appreciated.

    Thanks,

    Forrest

  • #11 / Apr 04, 2008 1:31pm

    Sue Crocker

    26054 posts

    Forrest, the first place I’d look is at Solspace’s Form Helper Plugin

  • #12 / Apr 14, 2008 3:24am

    Jesse M

    92 posts

    I’m seeing this same issue (in EE 1.5.2 build 20070604).

    I’m setting up an SAEF to allow users to submit entries, and later edit their own entries.  Both of those are working.  However, if the entry_id for the edit form is changed to load an entry authored by another user, when the form is submitted the entry is updated and authorship is changed to the current user (which is not the original author), despite “Can edit entries authored by others” being set to No for the relevant member group.

    I can fix this myself, but I expected that setting to prevent this behavior.

  • #13 / Apr 14, 2008 10:59am

    Robin Sowell

    13255 posts

    😉  Time to upgrade.  But yep- it’s going to automatically assign the author to whoever loads the page.  I’ve worked around it by adding a hidden field for author and using the author of the entry’s member_id.  Should do the trick- yell if you run into issues with it.

  • #14 / Apr 14, 2008 3:04pm

    Jesse M

    92 posts

    > Time to upgrade.

    I’d like to, but unfortunately it’s not that simple.

    Thanks for your suggestion.  I think what I’m going to do is read the author_id from the database in my weblog_standalone_insert_entry hook method and set $_POST[ ‘author_id’ ] to that so that the user has no opportunity to monkey with it.

    > But yep- it’s going to automatically assign the author to whoever loads the page.

    Like I said, in my opinion it’s misleading that “Can edit entries authored by others” and “Can change the author name when posting section entries” don’t prevent this.

  • #15 / Apr 14, 2008 4:20pm

    Ingmar

    29245 posts

    Following up for Robin here:

    I’d like to, but unfortunately it’s not that simple.

    Why, what seems to be the problem?

    Like I said, in my opinion it’s misleading that “Can edit entries authored by others” and “Can change the author name when posting section entries” don’t prevent this.

    Thank you for your suggestion. Perhaps you would like to make it an official feature request?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases