WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
Feature Suggestion: Front End Connections & Drafts (5 posts)

  1. Derek Perkins
    Member
    Posted 2 years ago #

    I think that it would be cool to have some functionality built in where you could let users enter in connection information on the front end, similar to a user tagging system, and then have the connection enter some sort of 'draft' mode, awaiting site moderation.

    I know I could roll my own solution for the interface, though it'd be great to simply use the one from the admin page since it works great, plus the front end would stay up to date with any changes to the plugin. The difficult part is figuring out how to put it into 'draft' mode. The only thing I can think of without hacking the install is to double all my 'p2p_register_connection_type' calls and create duplicate draft versions. Then as users submitted connections, it would add to the duplicate, then I could iterate over those and change the connection type to match the original whenever they were approved.

    Is this something that you'd be interested in adding to core? Would you have any suggestions about how to approach the problem?

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    I do not intend to add any front-end UI, because it would be very difficult to make it work with any theme out of the box.

    The 'draft' mode is interesting, though. Ideally, you should be able to do p2p_add_meta( $p2p_id, '_is_draft', true ); and then query for those connections which don't have that flag.

    This is not possible through the 'connected_meta' query var yet: http://core.trac.wordpress.org/ticket/18158

  3. Derek Perkins
    Member
    Posted 2 years ago #

    That draft ticket looks very interesting. I'll see how that works once 3.4 comes out.

    How difficult would it be to use the same default admin UI but just call it on the front end?

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Answer: difficult.

  5. leonik82
    Member
    Posted 2 years ago #

    very good plug-in.. i also need a front-end functionality...
    same suggestions on how to do it with default theme twenty eleven?
    i'm using quick post widget to insert custom post type in front-end.

    thanks a lot for your help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic