dacrosby
Forum Replies Created
-
PHP v5.6.33
MySQL v5.6.39
“GoDaddy “Enterprise Busines Hosting”, Apache, cPanelother phpinfo() :
PHP memory limit 128M
PHP exec time 30
PHP post max size 8MB
Max Upload 2MBPost SMTP has logging enabled:
max Log entries: 250
Max Transcript Size: 128
Under Misc settings, PHP log level is set to Error and Delivery Mode is set to “Log email and Send”I did recently switch from the old plugin, POSTMAN SMTP – would that have left some residual isues? I noticed most of the settings copied over automatically (e.g. API ley, log amounts etc)
It depends where you want the field to show up. You could add it to the Subject line, or in To/ From. Probably you’ll want it in the Message Body so the email recipient can see if the option was checked or not.
This is standard in Contact Form 7. See details here: http://contactform7.com/setting-up-mail/
Forum: Plugins
In reply to: [Contact Form 7 Newsletter] Plugin Doesn't WorkAs an addendum to my last; best to add a quick error check in when merging the arrays.
if( false !== strpos( $key, 'ctct-' ) ) { //$lists = $data; //break; if (is_array($data) && !empty($data)) $lists = array_merge($lists, $data); }Forum: Plugins
In reply to: [Contact Form 7 Newsletter] Plugin Doesn't WorkI had this issue and spent some time back-tracking the issues I was experiencing. For me, there was two –
The first problem I found was with the Tag Generator. It generates the shortcode as such:
[ctct ctct-1234 type:single 'List Name::#1212121212' subscribe_type_radio:single]It needs to be reordered as such:
[ctct ctct-1234 type:single subscribe_type_radio:single 'List Name::#1212121212']Why does this make a difference? It shouldn’t. Best I can tell is the regex in
contact-form-7/includes/shortcodes.phpfunctionshortcode_parse_attsbreaks with the enclosing quotes and ::# format.The second problem I encountered is that this plugin requires the
ctct-name prefix.[ctct ctct-1234 ...] // works [ctct ctct-my_custom_field ...] // works [ctct my_custom_field ...] // doesn't workThis check is found in
contact-form-7-newsletter/cf7-constantcontact.php, functionget_submitted_listsAnother thing that bugged me is that you can only have one ctct shortcode per form. I wanted a newsletter signup that had an option to also sign up for a secondary mailer. One hidden field and one checkbox – this plugin only checks the first ctct shortcode and ignores the rest. You can add multiple checkboxes or select options, but I wanted to force one and make one optional.
So time for a minor plugin modification. In
contact-form-7-newsletter/cf7-constantcontact.php, functionget_submitted_listsmake the following modification:if( false !== strpos( $key, 'ctct-' ) ) { //$lists = $data; //break; $lists = array_merge($lists, $data); }Perfect, now it loads up all of my lists! New and existing users.
Forum: Plugins
In reply to: [Contact Form 7] Special mail tags on widgetsThis is perfect. It should be added to the CF7 Special Mail Tags page instead of saying they simply don’t work in Widgets.
<?php if (have_posts()): while (have_posts()) : the_post(); get_sidebar(); // this Widget sidebar has a CF7 shortcode in it endwhile; endif; ?>I disabled all other plugins and switched to TwentyFifteen theme, but it’s still showing the same error. I have it set to not redirect the page after login, perhaps if it redirects the user it’d bypass the error?
I went ahead and made a quick change to the plugin file mentioned above directly and it seems to have corrected the issue.
In login-with-ajax-source.js (again, the same issue is in login-with-ajax.js on erm.. line 1), I modified line 56 to add a full selector instead of a period.
var lwaSub = newWidget.find('.lwa-title-sub').show();I downloaded 3.1.4 from WordPress plugin page again to make sure I hadn’t accidentally caused the error myself, but it is present also in a fresh copy of the plugin:
$.get( data.widget, function(widget_result) { var newWidget = $(widget_result); form.parent('.lwa').replaceWith(newWidget); var lwaSub = newWidget.find('.').show(); // line 56 var lwaOrg = newWidget.parent().find('.lwa-title'); lwaOrg.replaceWith(lwaSub); });Forum: Plugins
In reply to: [CSV Importer] [Feature Request] Abiity to set more Post StatusesI figured out a hard-code fix to do exactly this, if anyone’s interested. Open wordpress-dir/plugins/csv-importer/csv_importer.php and check about line 260. Change the
'post_status'toconvert_chars($data['csv_post_status']).$new_post = array( 'post_title' => convert_chars($data['csv_post_title']), 'post_content' => wpautop(convert_chars($data['csv_post_post'])), // 'post_status' => $opt_draft, 'post_status' => convert_chars($data['csv_post_status']), [ ... ]Then in your csv file, just add a column for csv_post_status. You can now import posts as publish, trash, draft, etc.
Forum: Plugins
In reply to: [Contact Form DB] How to ignore certain fieldsI feel silly for missing this. Thanks for pointing it out!
Forum: Plugins
In reply to: [Contact Form 7] Modify shortcode outputWell, I’m close:
add_action("wpcf7_posted_data", "wpcf7_modify_this"); function wpcf7_modify_this($posted_data) { // user doesn't enter an email if ($posted_data['email'] == "") $posted_data['email'] = "not-supplied@example.com"; // sets preferred-date radio value to "yes" if ($posted_data['preferred-date'] == "-1") $posted_data['preferred-date'] = "Anytime"; return $posted_data; }The thing to note here is that validation occurs prior to this point.
Forum: Plugins
In reply to: [Theme My Login] Login page redirects to wrong URLHow did you rename the pages TML creates?
Forum: Plugins
In reply to: [Theme My Login] Login page redirects to wrong URLFigured it out: start over. I deleted all Log In, Log Out, Register, & Lost Password pages, uninstalled TML and reinstalled with zero related Pages prior to installation.
It’d be nice if there was a way to change these URLs/slugs. It’s not unheard of to have, e.g., /sign-up, /join, /forgot-pass, and /sign-out as the desired slug. Looks like ‘login’ / ‘register’ / ‘lostpassword’ are hard coded in TML though. Odd.
Forum: Plugins
In reply to: [W3 Total Cache] W3 and PHP 5.4 not 100% compatible…FYII Had the same issue; upgraded to PHP 5.4 on a GoDaddy shared hosting account and got a 500 error on every page of my front end. I narrowed it down to W3 Total Cache by switching plugins on/off, then narrowed it down specifically to the page caching functionality.
Disabled Page Cache (Performance -> General Settings) and works again.
I’m having the same issue: Post Object doesn’t populate any items for Posts or Pages in the drop down menu when editing (Post Object Type – Attachment does work).
Using version 4.3.3. The same settings worked in the prior version. The database seems to remain unharmed – just can’t make any modifications.