• Resolved vsingh1

    (@vsingh1)


    I’m trying to make the sharpfolio theme work with the Auto-modify ‘Edit Post’ link feature.

    Can someone show me a theme that works with this feature, and the code that makes it work?

    I’m trying to have a site only display the edit_post_link only if the user has permission to edit the post, and if they do the edit_post_link will take them to my custom “edit form” page.

    If someone has a better solution of how to make that happen without making the auto-modify feature work I’d be glad to know that as well.

    thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter vsingh1

    (@vsingh1)

    sorry, I’m running TDO 0.13.7 – WordPress 2.9.2 – sharpfolio 2.0

    Thread Starter vsingh1

    (@vsingh1)

    This worked out for me:

    <?php if ( $current_user->ID == $post->post_author ) {
    					?>
    <a href="https://www.YOURURL.com/YOUREDITPAGE?tdomf_post_id=<?php echo $post->ID; ?>"> Edit This Post </a>
    
    <?php }	?>
    Thread Starter vsingh1

    (@vsingh1)

    Kubrick worked for me as a starter.

    I noticed that in order for the edit_post link to work, you must have the_content(); shortcode on the template as well. If not, then I didn’t get the edit_post link at all.

    Of course, when I have more than one edit form, you have to build your own edit_form link like you’ve done, otherwise links appear to all edit forms. Nice!?!?

    any one has the following problem?

    say, there are some required fields in your edit form.

    When you save your form again or preview the form, without doing any change in the required fields.

    Will the form give you error, saying those required fields are empty even they have values there?

    Yes, I’ve noticed futsy things like this. So I’ve ended up having to remove ‘required’ from all fields in my edit forms, otherwise it does similar things to what you’re reporting. Not ideal as users can then post fields that originally contained data, as blank.

    And then there’s the fun with setting a custom field as ‘URL’ and it still returns an error even when ‘required’ or ‘validation’ isn’t selected. The only workaround is to turn that back to a text field.

    Thanks mrarrow for the input.

    And then there’s the fun with setting a custom field as ‘URL’ and it still returns an error even when ‘required’ or ‘validation’ isn’t selected.

    Ya, i have encountered that issue too. I also did the same workaround as you did.

    Hope the plugin author can fix those bugs in future release.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: TDO Mini Forms] Themes that work w/ Auto-modify ‘Edit Post’ link feature?’ is closed to new replies.