Forum Replies Created

Viewing 15 replies - 1 through 15 (of 235 total)
  • Thread Starter RSimpson

    (@rsimpson)

    I’m the only one who should be getting the emails, but there are multiple.

    Thread Starter RSimpson

    (@rsimpson)

    It’s only my address that’s in the field, the settings are default other than that.

    Thread Starter RSimpson

    (@rsimpson)

    Hi Adam,

    No, it has a single address in there. The other users are administrators or similar (shop manager on WooCommerce).

    Cheers,
    Robert

    Thread Starter RSimpson

    (@rsimpson)

    So run $filename through it after handling all of the database functions?

    Thread Starter RSimpson

    (@rsimpson)

    Ah, excellent ๐Ÿ™‚

    At which point in the proceedings below should I apply it?

    move_uploaded_file( $value['tmp_name'], $new_filename );
    $file_data = file_get_contents( $new_filename );
    $filename = basename( $new_filename );
    if( wp_mkdir_p( $wp_upload_dir['path'] ) ) { $file = $wp_upload_dir['path'].'/'.$filename; }
    else { $file = $wp_upload_dir['basedir'].'/'.$filename; }
    file_put_contents( $file, $file_data );

    Hi folks,

    Iโ€™m not sure if fabwintle resolved their issue but this is something thatโ€™s been on my mind also. I have a client set up with both WooCommerce and PMPro but theyโ€™re yet to add any products to the WooCommerce end and so have avoided conflicts thus far, but Iโ€™m about to set up another client in a similar fashion so itโ€™s come back to the front of my mind.

    Do you have any kind of guide on how best to avoid conflicts like this?

    Cheers,
    Robert

    Thread Starter RSimpson

    (@rsimpson)

    Excellent, all is working as expected and I’ve now got a level of control I didn’t have previously.

    Thanks again ๐Ÿ™‚

    Thread Starter RSimpson

    (@rsimpson)

    I’ve made a further update that instead of completely replacing any existing BCC addresses, it appends the original admin email to any which already exist in the BCC array.

    It’s worth noting that this filter only seems to run when AJAX is switched off. It’s not a huge issue but it’d be nice to use it without having the page reload. Any ideas?

    add_filter( 'cforms2_admin_email_filter', 'change_cforms_admin_email', 10, 3 );
    function change_cforms_admin_email( $mail, $no, $pid ) {
    	if( strlen( $no ) < 1 ) {
    		$branch = get_branch( $pid );
    		if( isset( $branch[0]['email'] ) ) { // only proceed if this meta data exists
    			$original_admin_email = $mail->to[0][0];
    			$mail->to[0][0] = $branch[0]['email'];
    			if( $mail->to[0][0] !== $original_admin_email ) { // only make changes if the new address doesn't match the original admin address
    				$reflector = new ReflectionObject( $mail );
    				$bcc = $reflector->getProperty( 'bcc' );
    				$bcc->setAccessible( TRUE );
    				$current_bcc = $bcc->getValue( $mail );
    				foreach( $current_bcc as $cbcc ) { // check BCC for original admin address
    					if( $cbcc[0] == $original_admin_email ) {
    						$oa_already_exists = 1;
    					}
    				}
    				if( !isset( $oa_already_exists ) ) { // add original admin address to BCC
    					$new_bcc = $current_bcc;
    					$new_bcc[] = array( $original_admin_email, '' );
    					$bcc->setValue( $mail, $new_bcc );
    				}
    			}
    		}
    	}
    	return $mail;
    }
    Thread Starter RSimpson

    (@rsimpson)

    The PHP manual can be a real pain, but using what you gave me as a starting point I was able to find what I needed to get it working ๐Ÿ™‚

    For anyone who needs to achieve something similar, here’s what I came up with (the branch part is specific to my needs, but this should be enough to get you going):

    add_filter( 'cforms2_admin_email_filter', 'change_cforms_admin_email', 10, 3 );
    function change_cforms_admin_email( $mail, $no, $pid ) {
    	if( strlen( $no ) < 1 ) { // if this is the default form
    		$branch = get_branch( $pid ); // get the post data for the current branch (custom function)
    		$branch = $branch[0];
    		if( isset( $branch['email'] ) ) {
    			$original_admin_email = $mail->to[0][0];
    			$mail->to[0][0] = $branch['email']; // this updates the main admin email
    			if( $mail->to[0][0] !== $original_admin_email ) { // this adds the original admin email as a bcc if it doesn't match the new address being pulled from the db
    				$reflector = new ReflectionObject( $mail );
    				$bcc = $reflector->getProperty( 'bcc' );
    				$bcc->setAccessible( TRUE );
    				$bcc->setValue( $mail, array( array( $original_admin_email ) ) );
    			}
    		}
    	}
    	return $mail;
    }
    Thread Starter RSimpson

    (@rsimpson)

    I’m trying to add CC and BCC addresses but the methods are private. Any suggestions? This is throwing the expected error:

    add_filter( 'cforms2_admin_email_filter', 'change_cforms_admin_email', 10, 3 );
    function change_cforms_admin_email( $mail, $no, $pid ) {
    	$mail->to[0][0] = 'new@email.address'; // this isn't the address in my code
    	$mail->add_bcc( 'another@email.address' ); // this isn't the address in my code
    	return $mail;
    }
    Thread Starter RSimpson

    (@rsimpson)

    Got it working ๐Ÿ™‚

    add_filter( 'cforms2_admin_email_filter', 'change_cforms_admin_email', 10, 3 );
    function change_cforms_admin_email( $mail, $no, $pid ) {
    	$mail->to[0][0] = 'new@email.address'; // this isn't the address in my code
    	return $mail;
    }
    Thread Starter RSimpson

    (@rsimpson)

    I’ve just edited to to the following:

    add_filter( 'cforms2_admin_email_filter', 'change_cforms_admin_email' );
    function change_cforms_admin_email( $mail, $no, $pid ) {
    	$mail->to[0][0] = 'new@email.address'; // this isn't the address in my code
    	return $mail;
    }

    The errors are now as follows:

    Warning: Missing argument 2 for change_cforms_admin_email() in /theme-path/functions/cforms.php on line 11
    
    Warning: Missing argument 3 for change_cforms_admin_email() in /theme-path/functions/cforms.php on line 11

    It seems that the apply_filters in lib_validate.php on line 712 aren’t passing $no and $pid.

    Any ideas?

    • This reply was modified 3 years, 3 months ago by RSimpson.
    Thread Starter RSimpson

    (@rsimpson)

    I’ve tried using the filter to alter the address but it’s throwing an error. Here’s my code followed by the error.

    add_filter( 'cforms2_admin_email_filter', 'change_cforms_admin_email' );
    function change_cforms_admin_email( $mail ) {
    	$mail->to[0][0] = 'new@email.address'; // this isn't the address in my code
    }

    Fatal error: Call to a member function send() on null in /wordress-content-path/plugins/cforms2/lib_validate.php on line 712

    Thread Starter RSimpson

    (@rsimpson)

    Working as expected now ๐Ÿ™‚

    Thread Starter RSimpson

    (@rsimpson)

    @bgermann sorry for the late response, had to take a call.

    Here’s my output:

    {
        "global": {
            "cforms_style_doctype": "<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd\">",
            "v": "14.14",
            "cforms_style": {
                "body": "style=\"margin:0; padding:0; font-size: 13px; color:#555;\"",
                "meta": "style=\"font-size: 90%; margin:0; background:#aaaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c5c5; border-bottom:1px solid #9d9d9d;\"",
                "admin": "style=\"background:#f0f0f0; border-top:1px solid #777; box-shadow:0 -2px 2px #999;\"",
                "title": "style=\"font-size: 90%; margin:0; background:#fcfcfc; padding:1em 2em 1em 0.6em; color:#888888; display:inline-block;\"",
                "table": "style=\"width:auto; margin: 0.2em 2em 2em; font-size: 100%;\"",
                "fs": "style=\"color:#555; padding:1em 0 0.4em; font-size: 110%; font-weight:bold; text-shadow:0 1px 0 #fff;\"",
                "key_td": "style=\"padding: 0.3em 1em; border-bottom:1px dotted #ddd; padding-right:2em; color:#888; width:1%;\"",
                "val_td": "style=\"padding: 0.3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;\"",
                "autoconf": "style=\"padding:1em 1em 0; background:#f0f0f0; color:#333;\"",
                "dear": "style=\"margin:0.5em 30px; font-weight:bold; margin-bottom:1.2em;\"",
                "confp": "style=\"margin:0.5em 30px;\"",
                "confirmationmsg": "style=\"margin:4em 30px 0; padding-bottom:1em; font-size:80%; color:#aaa;\""
            },
            "cforms_inexclude": {
                "ex": "",
                "ids": ""
            },
            "cforms_no_css": "1",
            "cforms_formcount": "4",
            "cforms_upload_err1": "Generic file upload error. Please try again",
            "cforms_upload_err2": "File is empty. Please upload something more substantial.",
            "cforms_upload_err3": "Sorry, file is too large. You may try to zip your file.",
            "cforms_upload_err4": "File upload failed. Please try again or contact the blog admin.",
            "cforms_upload_err5": "File not accepted, file type not allowed.",
            "cforms_captcha_def": {
                "foqa": "1"
            },
            "cforms_sec_qa": "What is 50+20?=70\r\nWhat is 5+10?=15\r\nWhat is 30+70?=100",
            "cforms_codeerr": "Please double-check your anti-spam answer.",
            "cforms_show_quicktag": "1",
            "cforms_crlf": {
                "b": "0"
            },
            "cforms_css": null,
            "cforms_jqueryuitheme": "smoothness",
            "cforms_database": "0",
            "cforms_datepicker": "0",
            "cforms_dp_date": "mm\/dd\/yy",
            "cforms_dp_nav": {
                "changeYear": true
            },
            "cforms_html5": "0"
        },
        "form": {
            "cforms_upload_ext": "",
            "cforms_upload_size": "",
            "cforms_dontclear": false,
            "cforms_count_fields": 13,
            "cforms_count_field_1": "Your Details$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_2": "Name$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms_count_field_3": "Email$#$textfield$#$1$#$1$#$0$#$0$#$0",
            "cforms_count_field_4": "Telephone$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_5": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms_required": "*",
            "cforms_emailrequired": "*",
            "cforms_confirm": "0",
            "cforms_ajax": "1",
            "cforms_fname": "Contact Us",
            "cforms_csubject": "Re: Your note$#$Re: Submitted form (copy)",
            "cforms_cmsg": "Dear {Your Name},\nThank you for your note!\nWe will get back to you as soon as possible.\n\n",
            "cforms_cmsg_html": "<div style=\"padding:1em 1em 0; background:#f0f0f0; color:#333;\"><p style=\"margin:0.5em 30px; font-weight:bold; margin-bottom:1.2em;\">Dear {Your Name},<\/p>\n<p style=\"margin:0.5em 30px;\">Thank you for your note!<\/p>\n<p style=\"margin:0.5em 30px;\">We will get back to you as soon as possible.\n<div style=\"margin:4em 30px 0; padding-bottom:1em; font-size:80%; color:#aaa;\">This is an automatic confirmation message. {Date}.<\/div><\/div>\n\n",
            "cforms_emailoff": "0",
            "cforms_emptyoff": "0",
            "cforms_tellafriend": "0",
            "cforms_customnames": "0",
            "cforms_startdate": " ",
            "cforms_enddate": " ",
            "cforms_formaction": false,
            "cforms_email": "sales@domain.com",
            "cforms_fromemail": "noreply@domain.com",
            "cforms_bcc": "",
            "cforms_header": "{Message}\r\n\r\nFrom:\r\nName: {Name}\r\nEmail: {Email}\r\nTelephone: {Telephone}\r\n\r\n-----\r\nSubmitted on {Date} via {Page} by {IP} (visitor IP).",
            "cforms_header_html": "<p style=\\\"font-size: 90%; margin:0; background:#aaaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c5c5; border-bottom:1px solid #9d9d9d;\\\">A form has been submitted on {Date}, via: {Page} [IP {IP}]<\/p>",
            "cforms_formdata": "0000",
            "cforms_space": "30",
            "cforms_noattachments": "0",
            "cforms_subject": "WEBSITE: {Subject}",
            "cforms_submit_text": "Submit",
            "cforms_success": "Thank you for your enquiry.",
            "cforms_failure": "Please fill in all the required fields.",
            "cforms_limittxt": "<strong>No more submissions accepted at this time.<\/strong>",
            "cforms_working": "One moment please...",
            "cforms_showpos": "ynyy",
            "cforms_hide": false,
            "cforms_redirect": false,
            "cforms_redirect_page": "http:\/\/redirect.to.this.page",
            "cforms_action": "0",
            "cforms_action_page": "http:\/\/",
            "cforms_mp": {
                "mp_form": false,
                "mp_next": "",
                "mp_first": false,
                "mp_reset": false,
                "mp_resettext": "",
                "mp_back": false,
                "mp_backtext": ""
            },
            "cforms_notracking": false,
            "cforms_count_field_6": "Your Message$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_7": "Subject$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms_count_field_8": "Message$#$textarea$#$1$#$0$#$0$#$0$#$0",
            "cforms_count_field_9": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_10": "Anti-Spam Question$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_11": "Please answer this question.$#$textonly$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_12": "New Field$#$cforms2_question_and_answer$#$0$#$0$#$0$#$0$#$0",
            "cforms_count_field_13": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0"
        },
        "form2": {
            "cforms2_upload_ext": "",
            "cforms2_upload_size": "",
            "cforms2_dontclear": false,
            "cforms2_count_fields": 14,
            "cforms2_count_field_1": "Your Details$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_2": "Name$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms2_count_field_3": "Email$#$textfield$#$1$#$1$#$0$#$0$#$0",
            "cforms2_count_field_4": "Telephone$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_5": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms2_required": "*",
            "cforms2_emailrequired": "*",
            "cforms2_confirm": "0",
            "cforms2_ajax": "1",
            "cforms2_fname": "Product Enquiry",
            "cforms2_csubject": "Re: Your note$#$Re: Submitted form (copy)",
            "cforms2_cmsg": "Dear {Your Name},\nThank you for your note!\nWe will get back to you as soon as possible.\n\n",
            "cforms2_cmsg_html": "<div style=\"padding:1em 1em 0; background:#f0f0f0; color:#333;\"><p style=\"margin:0.5em 30px; font-weight:bold; margin-bottom:1.2em;\">Dear {Your Name},<\/p>\n<p style=\"margin:0.5em 30px;\">Thank you for your note!<\/p>\n<p style=\"margin:0.5em 30px;\">We will get back to you as soon as possible.\n<div style=\"margin:4em 30px 0; padding-bottom:1em; font-size:80%; color:#aaa;\">This is an automatic confirmation message. {Date}.<\/div><\/div>\n\n",
            "cforms2_emailoff": "0",
            "cforms2_emptyoff": "0",
            "cforms2_tellafriend": "0",
            "cforms2_customnames": "0",
            "cforms2_startdate": " ",
            "cforms2_enddate": " ",
            "cforms2_formaction": false,
            "cforms2_email": "sales@domain.com",
            "cforms2_fromemail": "noreply@domain.com",
            "cforms2_bcc": "",
            "cforms2_header": "{Message}\r\n\r\nFrom:\r\nName: {Name}\r\nEmail: {Email}\r\nTelephone: {Telephone}\r\n\r\nProduct: {Product}\r\n{Product Link}\r\n\r\n-----\r\nSubmitted on {Date} via {Page} by {IP} (visitor IP).",
            "cforms2_header_html": "<p style=\\\"font-size: 90%; margin:0; background:#aaaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c5c5; border-bottom:1px solid #9d9d9d;\\\">A form has been submitted on {Date}, via: {Page} [IP {IP}]<\/p>",
            "cforms2_formdata": "0000",
            "cforms2_space": "30",
            "cforms2_noattachments": "0",
            "cforms2_subject": "WEBSITE: Enquiry about {Product} from {Name}",
            "cforms2_submit_text": "Submit",
            "cforms2_success": "Thank you for your enquiry.",
            "cforms2_failure": "Please fill in all the required fields.",
            "cforms2_limittxt": "<strong>No more submissions accepted at this time.<\/strong>",
            "cforms2_working": "One moment please...",
            "cforms2_showpos": "ynyy",
            "cforms2_hide": false,
            "cforms2_redirect": false,
            "cforms2_redirect_page": "http:\/\/redirect.to.this.page",
            "cforms2_action": "0",
            "cforms2_action_page": "http:\/\/",
            "cforms2_mp": {
                "mp_form": false,
                "mp_next": "",
                "mp_first": false,
                "mp_reset": false,
                "mp_resettext": "",
                "mp_back": false,
                "mp_backtext": ""
            },
            "cforms2_notracking": false,
            "cforms2_count_field_6": "Your Message$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_7": "Message$#$textarea$#$1$#$0$#$0$#$0$#$0",
            "cforms2_count_field_8": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_9": "Anti-Spam Question$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_10": "Please answer this question.$#$textonly$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_11": "New Field$#$cforms2_question_and_answer$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_12": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_13": "Product$#$hidden$#$0$#$0$#$0$#$0$#$0",
            "cforms2_count_field_14": "Product Link$#$hidden$#$0$#$0$#$0$#$0$#$0"
        },
        "form3": {
            "cforms3_upload_ext": "",
            "cforms3_upload_size": "",
            "cforms3_dontclear": false,
            "cforms3_count_fields": 29,
            "cforms3_count_field_1": "Your Details$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_2": "Name$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_3": "Email$#$textfield$#$1$#$1$#$0$#$0$#$0",
            "cforms3_count_field_4": "Telephone$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_5": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms3_required": "*",
            "cforms3_emailrequired": "*",
            "cforms3_confirm": "0",
            "cforms3_ajax": "1",
            "cforms3_fname": "Meter Readings",
            "cforms3_csubject": "Re: Your note$#$Re: Submitted form (copy)",
            "cforms3_cmsg": "Dear {Your Name},\nThank you for your note!\nWe will get back to you as soon as possible.\n\n",
            "cforms3_cmsg_html": "<div style=\"padding:1em 1em 0; background:#f0f0f0; color:#333;\"><p style=\"margin:0.5em 30px; font-weight:bold; margin-bottom:1.2em;\">Dear {Your Name},<\/p>\n<p style=\"margin:0.5em 30px;\">Thank you for your note!<\/p>\n<p style=\"margin:0.5em 30px;\">We will get back to you as soon as possible.\n<div style=\"margin:4em 30px 0; padding-bottom:1em; font-size:80%; color:#aaa;\">This is an automatic confirmation message. {Date}.<\/div><\/div>\n\n",
            "cforms3_emailoff": "0",
            "cforms3_emptyoff": "0",
            "cforms3_tellafriend": "0",
            "cforms3_customnames": "0",
            "cforms3_startdate": " ",
            "cforms3_enddate": " ",
            "cforms3_formaction": false,
            "cforms3_email": "sales@domain.com",
            "cforms3_fromemail": "noreply@domain.com",
            "cforms3_bcc": "",
            "cforms3_header": "Reading 1:\r\nBlack & White: {Black & White 1}\r\nColour: {Colour 1}\r\n\r\nReading 2:\r\nBlack & White: {Black & White 2}\r\nColour: {Colour 2}\r\n\r\nReading 3:\r\nBlack & White: {Black & White 3}\r\nColour: {Colour 3}\r\n\r\nFrom:\r\nName: {Name}\r\nEmail: {Email}\r\nTelephone: {Telephone}\r\n\r\nCompany: {Company Name}\r\nAddress: {Street Address}, {City}, {Region} {Postcode}\r\n\r\n-----\r\nSubmitted on {Date} via {Page} by {IP} (visitor IP).",
            "cforms3_header_html": "<p style=\\\"font-size: 90%; margin:0; background:#aaaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c5c5; border-bottom:1px solid #9d9d9d;\\\">A form has been submitted on {Date}, via: {Page} [IP {IP}]<\/p>",
            "cforms3_formdata": "0000",
            "cforms3_space": "30",
            "cforms3_noattachments": "0",
            "cforms3_subject": "WEBSITE: Meter reading from {Name} @ {Company Name}",
            "cforms3_submit_text": "Submit",
            "cforms3_success": "Thank you for your enquiry.",
            "cforms3_failure": "Please fill in all the required fields.",
            "cforms3_limittxt": "<strong>No more submissions accepted at this time.<\/strong>",
            "cforms3_working": "One moment please...",
            "cforms3_showpos": "ynyy",
            "cforms3_hide": false,
            "cforms3_redirect": false,
            "cforms3_redirect_page": "http:\/\/redirect.to.this.page",
            "cforms3_action": "0",
            "cforms3_action_page": "http:\/\/",
            "cforms3_mp": {
                "mp_form": false,
                "mp_next": "",
                "mp_first": false,
                "mp_reset": false,
                "mp_resettext": "",
                "mp_back": false,
                "mp_backtext": ""
            },
            "cforms3_notracking": false,
            "cforms3_count_field_6": "Your Company$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_7": "Company Name$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_8": "Street Address$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_9": "City$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_16": "Colour 1$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_15": "Black & White 1$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_14": "Fill in black and white and also a colour reading in addition, if for a colour meter reading.$#$textonly$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_13": "Reading 1$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_10": "Region$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_11": "Postcode$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms3_count_field_12": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_28": "New Field$#$cforms2_question_and_answer$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_27": "Please answer this question.$#$textonly$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_26": "Anti-Spam Question$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_25": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_17": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_18": "Reading 2$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_19": "Black & White 2$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_20": "Colour 2$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_21": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_22": "Reading 3$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_23": "Black & White 3$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_24": "Colour 3$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms3_count_field_29": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0"
        },
        "form4": {
            "cforms4_upload_ext": "",
            "cforms4_upload_size": "",
            "cforms4_dontclear": false,
            "cforms4_count_fields": 24,
            "cforms4_count_field_1": "Your Details$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_2": "Name$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_3": "Email$#$textfield$#$1$#$1$#$0$#$0$#$0",
            "cforms4_count_field_4": "Telephone$#$textfield$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_5": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms4_required": "*",
            "cforms4_emailrequired": "*",
            "cforms4_confirm": "0",
            "cforms4_ajax": "1",
            "cforms4_fname": "Toner Request",
            "cforms4_csubject": "Re: Your note$#$Re: Submitted form (copy)",
            "cforms4_cmsg": "Dear {Your Name},\nThank you for your note!\nWe will get back to you as soon as possible.\n\n",
            "cforms4_cmsg_html": "<div style=\"padding:1em 1em 0; background:#f0f0f0; color:#333;\"><p style=\"margin:0.5em 30px; font-weight:bold; margin-bottom:1.2em;\">Dear {Your Name},<\/p>\n<p style=\"margin:0.5em 30px;\">Thank you for your note!<\/p>\n<p style=\"margin:0.5em 30px;\">We will get back to you as soon as possible.\n<div style=\"margin:4em 30px 0; padding-bottom:1em; font-size:80%; color:#aaa;\">This is an automatic confirmation message. {Date}.<\/div><\/div>\n\n",
            "cforms4_emailoff": "0",
            "cforms4_emptyoff": "0",
            "cforms4_tellafriend": "0",
            "cforms4_customnames": "0",
            "cforms4_startdate": " ",
            "cforms4_enddate": " ",
            "cforms4_formaction": false,
            "cforms4_email": "sales@domain.com",
            "cforms4_fromemail": "noreply@domain.com",
            "cforms4_bcc": "",
            "cforms4_header": "Machine ID: {Machine ID}\r\nType of Machine: {Type of Machine}\r\nBlack toners: {Black toners}\r\nCyan toners: {Cyan toners}\r\nMagenta toners: {Magenta toners}\r\nYellow toners: {Yellow toners}\r\n\r\nFrom:\r\nName: {Name}\r\nEmail: {Email}\r\nTelephone: {Telephone}\r\n\r\nCompany: {Company Name}\r\nAddress: {Street Address}, {City}, {Region} {Postcode}\r\n\r\n-----\r\nSubmitted on {Date} via {Page} by {IP} (visitor IP).",
            "cforms4_header_html": "<p style=\\\"font-size: 90%; margin:0; background:#aaaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c5c5; border-bottom:1px solid #9d9d9d;\\\">A form has been submitted on {Date}, via: {Page} [IP {IP}]<\/p>",
            "cforms4_formdata": "0000",
            "cforms4_space": "30",
            "cforms4_noattachments": "0",
            "cforms4_subject": "WEBSITE: Toner request from {Name} @ {Company Name}",
            "cforms4_submit_text": "Submit",
            "cforms4_success": "Thank you for your enquiry.",
            "cforms4_failure": "Please fill in all the required fields.",
            "cforms4_limittxt": "<strong>No more submissions accepted at this time.<\/strong>",
            "cforms4_working": "One moment please...",
            "cforms4_showpos": "ynyy",
            "cforms4_hide": false,
            "cforms4_redirect": false,
            "cforms4_redirect_page": "http:\/\/redirect.to.this.page",
            "cforms4_action": "0",
            "cforms4_action_page": "http:\/\/",
            "cforms4_mp": {
                "mp_form": false,
                "mp_next": "",
                "mp_first": false,
                "mp_reset": false,
                "mp_resettext": "",
                "mp_back": false,
                "mp_backtext": ""
            },
            "cforms4_notracking": false,
            "cforms4_count_field_6": "Your Company$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_7": "Company Name$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_8": "Street Address$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_9": "City$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_16": "Black toners#0#1#2#3#4$#$selectbox$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_15": "Type of Machine#Black & White Copier#Colour Copier#Printer#MultiFunction$#$selectbox$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_14": "Machine ID$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_13": "Machine Information$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_10": "Region$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_11": "Postcode$#$textfield$#$1$#$0$#$0$#$0$#$0",
            "cforms4_count_field_12": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_17": "Cyan toners#0#1#2#3#4$#$selectbox$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_18": "Magenta toners#0#1#2#3#4$#$selectbox$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_19": "Yellow toners#0#1#2#3#4$#$selectbox$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_24": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_23": "New Field$#$cforms2_question_and_answer$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_22": "Please answer this question.$#$textonly$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_21": "Anti-Spam Question$#$fieldsetstart$#$0$#$0$#$0$#$0$#$0",
            "cforms4_count_field_20": "--$#$fieldsetend$#$0$#$0$#$0$#$0$#$0"
        }
    }
    • This reply was modified 3 years, 4 months ago by RSimpson. Reason: Removing domain
Viewing 15 replies - 1 through 15 (of 235 total)