KodeTom
Forum Replies Created
-
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Conversion Tracking Code FieldWhen I change it to a textarea it doesn’t save
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Conversion Tracking Code FieldYeah that does work fine, the only issue is that I want to change the input type=text to a textarea instead so I can echo the conversion code properly.
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Conversion Tracking Code FieldOkay so for the conversion code I’ve added:
Below “Return/Thanks URL:” in salesforce.php under line 469:
$content .= '<p>'; $content .= '<label>'.__('Conversion Code:','salesforce').'</label><br/>'; $content .= '<input type="text" name="conversioncode" style="width:50%;" value="'.esc_html($options['forms'][$form_id]['conversioncode']).'">'; $content .= '<br/><small>'.__('Code to track conversions').'</small>'; $content .= '</p>';
And then under
$dform['returl'] = '';
on line 553:
$dform['conversioncode'] = '';
And then under ‘returl’s foreach this starts on line 120:
foreach (array('form_name','source','conversioncode') as $option_name) { if (isset($_POST[$option_name])) { $options['forms'][$form_id][$option_name] = $_POST[$option_name]; } }
You can see the input field is input type=”text” in the first bit of code i pasted, I want this to save as a textarea instead but when I change the field to a textarea it won’t save.
Any thoughts?
Forum: Plugins
In reply to: [Contact Form 7] Make the button editable with ACFFor anyone wanting to do this in future here is the solution:
Go to the contact form 7 directory > modules > submit.php
Put your ACF field in a variable like so:
$test = get_field(‘form_button’);And then change $atts[‘value’] = $value; to $atts[‘value’] = $test;
Forum: Plugins
In reply to: [Contact Form 7] Make the button editable with ACFYou can execute PHP inside the “Edit form” area but not between speech marks. Hmm.
Forum: Plugins
In reply to: [Contact Form 7] Make the button editable with ACFJust need to find where the plugin echos the button and it’s text.
Forum: Fixing WordPress
In reply to: I have encounter an error trying to upload photos to mediaIt is the permissions on your uploads folder. Try connecting via FTP and set the uploads folder, and sub folders to permissions 777 and then test your upload then, it should work.
But it isn’t a good idea to keep these permissions set to 777.