jbach2003
Forum Replies Created
-
Forum: Plugins
In reply to: [Form to Post] CF7 form to postALL HAIL MICHAEL SIMPSON!!!
HE IS THE KING OF WORDPRESS!!!
Dude, I seriously cannot thank you enough for ALL of your help. The form is doing exactly what I wanted it to. Now I get to have fun with mail notifications! Thanks again!!!
Forum: Plugins
In reply to: [Form to Post] CF7 form to postMICHAEL!!! YOU’RE BRILLIANT! One more thing though…here’s my code:
function f2p_consolidate_fields( $form_data ) { // change the function name as needed $form_title = 'New Change Request'; // Change this to your form name if ($form_data->title = $form_title) { // Next line sets the post_content value $form_data->posted_data['post_content'] = "New Change Request from {$form_data->posted_data['requester-name']}, {$form_data->posted_data['requester-email']} \n Implementation Date: {$form_data->posted_data['imp-date']} \n Implementation Time: {$form_data->posted_data['imp-time']} \n Duration (What time will the change be finished?): {$form_data->posted_data['dur-time']} \n Please describe the change (e.g. Why is it needed? What result is expected?): {$form_data->posted_data['textarea-description']} \n Was the change tested?: {$form_data->posted_data['radio-tested']} \n If Yes, how was the change tested? If No, why not?: {$form_data->posted_data['textarea-tested']} \n What is the expected impact to business? (e.g. Will downtime be experienced? What depts will be impacted?): {$form_data->posted_data['textarea-impact']} \n Is there a rollback plan?: {$form_data->posted_data['radio-rollback']} \n If Yes, what is the plan? If No why isn't there a rollback plan?: {$form_data->posted_data['textarea-plan']} \n Contacts (Name, extension, cell of who should be notified if escalation is necessary?): {$form_data->posted_data['textarea-contacts']} \n RISK ASSESSMENT \n Can or will the change cause an outage?: {$form_data->posted_data['radio-outage']} \n Can an entire location or dept be impacted or experience an outage?: {$form_data->posted_data['radio-location']} \n Is there any risk that a failed change will not be detected immediately?: {$form_data->posted_data['radio-detect']} \n Will the recovery process take longer than the time to implement?: {$form_data->posted_data['radio-time']} \n Can or will security or confidentiality be compromised?: {$form_data->posted_data['radio-security']} \n Supervisor email: {$form_data->posted_data['email-sup']} \n "; } return $form_data; } add_filter( 'form_to_post_form_data', 'f2p_consolidate_fields', 10, 1 ); // make sure the function name matches aboveALL of the fields populated in the post!!! The ONLY thing left is that any radio answers (all are “Yes” or “No) populate as Array in the post. How can I fix that?
Dude, you are a LIFE SAVER!!! Thank you so much for your help!!!
Forum: Plugins
In reply to: [Form to Post] CF7 form to postAwesome!!! I’ll work on getting that all set up tonight. When I’m done with the code, what do I name the file? Where do I put it? How do I tie it in with Form to Post or Contact Form 7?
Forum: Plugins
In reply to: [Form to Post] CF7 form to postHey Michael: Thanks for getting back with me. I’m definitely not a programmer, but I don’t mind trying to learn. Trust me, I’ve read through all of the documentation, and I’ve tried a litany of different plug-ins. I’ve got the email notifications set up exactly the way I want them…I’m just totally stuck trying to get the whole form to populate on either a page or a post. Are you referring to this code?
function f2p_consolidate_fields( $form_data ) { // change the function name as needed $form_title = 'F2P With Hook Example'; // Change this to your form name if ($form_data->title = $form_title) { // Next line sets the post_title value $form_data->posted_data['post_title'] = "Post from {$form_data->posted_data['your-name']}"; // Next line sets the post_content value $form_data->posted_data['post_content'] = "This is a post from {$form_data->posted_data['your-name']} with email {$form_data->posted_data['your-email']}"; } return $form_data; } add_filter( 'form_to_post_form_data', 'f2p_consolidate_fields', 10, 1 ); // make sure the function name matches aboveIf so, what WP file do I need to add that code to? functions.php in my theme? I just don’t know where to start to get this fixed.
Forum: Plugins
In reply to: Multiple Contact Form 7 fields to postAnyone have any clues? I really need to get this finished!
Forum: Plugins
In reply to: Multiple Contact Form 7 fields to postI just noticed that it emailed a notification to the supervisor email, but not the requester email, if that helps at all.
Forum: Plugins
In reply to: [Fast Secure Contact Form] Email to a field tagNot quite. One field in my form is for the requester to enter his supervisor’s email. The tag (or variable) for that field is sup-email. I want to set up the notification to send to sup-email, that way anyone can use the form, regardless of who their supervisor is.
Forum: Fixing WordPress
In reply to: plugin updates failSounds like a permissions issue. Does the account you’re attempting to update with have the appropriate permissions (recursive?) in the wp-content directory?