Forum Replies Created
-
AuthorPosts
-
Mike Raccine
ParticipantThanks for all your help.
Am I correct to assume that the redirect only works on a NEW form submission and not on an UPDATE to an existing listing? That’s how mine functions.
Mike Raccine
ParticipantI think I misunderstood your response when you said “Sorry, but there is no way to dynamically redirect back to the user’s profile page.”
What is this checkbox for in the Form settings?
“Whether or not to redirect to a page after a successful submission”.I was able to come up with the MySQL query though as mentioned above.
Mike Raccine
ParticipantThe form does refresh, and shows the data with the form. Let’s just say my client is very picky and is not happy still seeing the form.
My thought, since there is an option to redirect after Form submission, was to send the user to a new page. On the new page I was attempting to display an individual listing using the shortcode [connections id=2].
If I write a MySQL query to get the current WordPress user-id, cross reference that to the connections table column ‘user’. Then replace the id# in the shortcode [connections id=2]. Would that not work?
Mike Raccine
ParticipantThank you, that fixed the issue.
Mike Raccine
ParticipantThis reply has been marked as private.Mike Raccine
ParticipantI am using a Code snippet. Could this be the issue?
function cn_add_date_types( $options ) {$options['business_established'] = __( 'Business Established' , 'connections' ); $options['member_since'] = __( 'Member Since' , 'connections' ); unset( $options['anniversary'] ); unset( $options['baptism'] ); unset( $options['birthday'] ); unset( $options['deceased'] ); unset( $options['certification'] ); unset( $options['employment'] ); unset( $options['membership'] ); unset( $options['graduate_high_school'] ); unset( $options['graduate_college'] ); unset( $options['ordination'] );return $options;
}add_filter( ‘cn_date_options’, ‘cn_add_date_types’ );
Mike Raccine
ParticipantI didn’t change the settings. Under Connections -> Settings -> Display, they currently read: F j, Y
Mike Raccine
ParticipantMy client requires that the form sends an email with the information that has changed, when a member updates their listing.
Mike Raccine
ParticipantThanks for the quick response.
I’ve progressed to the point where I’ve added a 2nd form using the 2 plugins Contact Form 7 with Contact Form to Database.
So now my last hurdle is associating the form (it will be a link to another page) for each member for display on cMap. I’ve edited the card.php file to show the link, but was wondering what variables are available on the cMap display? Ideally the link would reference the user_login for the variable.
So each member listing on cMap would have a link that links to:
mysite.com/member-advertisement/?member=janedoe
mysite.com/member-advertisement/?member=johndoeIs the ‘user_login’ name or user ‘ID’ available as a variable on card.php?
-
AuthorPosts
