Things are coming along, especially with all your support. I have disabled the admin panel for subscribed users. So now the only option is to use the front form editor, that way all the hidden fields on form are not visible to user when creating or editing profile.
I’m not sure if I implemented the form correctly because you mentioned a virtual page, I created a page and I inserted the [connections_form] shortcode. i then created a menu item linking to this page.
From your post above i will not be able to use a similar setup for editing as i need
to be in single person view in order to edit details.
stylistically I would like to remove the the edit link from above the single card view and insert it as a text/php/htm sidebar widget. I believe I found the function/code which creates the link. just hoping that there is a way to modify it to display inside a php sidebar widget
public static function entryAction( $atts, $entry ) {
// Grab an instance of the Connections object.
$instance = Connections_Directory();
// Check to see if the entry has been linked to a user ID.
$entryID = get_user_meta( get_current_user_id(), 'connections_entry_id', TRUE );
// var_dump( $entryID );
$results = $instance->retrieve->entries( $atts );
// var_dump( $results );
if ( is_user_logged_in() &&
( current_user_can( 'connections_manage' ) || $entryID == $results[0]->id ) &&
( current_user_can( 'connections_edit_entry' ) ||
current_user_can( ‘connections_edit_entry_moderated’ ) )
) {
cnURL::permalink( array( 'type' => 'edit', 'slug' =>
$entry->getSlug(), ‘text’ =>
__( ‘Edit Entry’, ‘connections_form’ ), ‘return’ => FALSE ) );
}
}
Also from my forum readings and one of your other posts, users will be able to submit multiple profiles (but only be able to edit the one based on their email address). Did i understand this correctly? Is there any way to use form and link and not allow multiple entries?
thanks again
dominic
