friendofdog
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Remove admin fields: facebook_link, salary_min, salary_maxAh… Well that would make sense. Sorry, I should have checked this first. I inherited the project from another developer, I suppose he set these fields somewhere out of sight.
Forum: Plugins
In reply to: [WP Session Manager] Store image for session, delete on expirationThank you for clarifying – saves me a lot of time.
What I might do is use the wp_logout hook to delete the image and end the session, setting an idle logout time that is shorter than when the session would expire.
Forum: Plugins
In reply to: [Contact Form 7] Attachment “unnamed” if filename is JapaneseI’ve tested it in a number of ways, including twentyseventeen with no active plugins (except for CF7, of course). The results are all the same. WP core and CF7 are latest versions.
Forum: Plugins
In reply to: [Contact Form 7] Attachment “unnamed” if filename is JapaneseThanks for the quick reply!
I’ve tested it in a number of ways, including twentyseventeen with no active plugins (except for CF7, of course). The results are all the same. WP core and CF7 are latest versions.
But to answer your question, the site I referenced is built on Beans (https://getbeans.io) with:
– ACF (with ACF CF7, ACF WPML, Really Simple CAPTCHA)
– CF7 (with Dynamic Text Extension, Cf7 Fields Repeater)
– WP Job Manager
– WPML (with String Translation)
– YoastForum: Plugins
In reply to: [WP Job Manager] Fetching job listing data with WP REST APIThanks, I’ll check that out!
Forum: Plugins
In reply to: [Advanced Custom Fields: Multisite Sync] wp_get_sites() is now get_sites()Thanks for catching this. I guess no problem editing plug directly as this won’t be updated any time soon…
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Apps Script redirects on page loadThanks for all the help! I’ll take a look at the API.
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Apps Script redirects on page loadStupid mistake on my part. I was using the URL for testing code, not for the published app… I’ve updated the shortcode.
But now there’s another issue, the same one I think as this fellow and this fellow were experiencing: my script uses HtmlService, which doesn’t work with this plugin because it returns a framed webpage, not strait-up HTML.
What I’m trying to do here is embed a file upload script similar to this one. I’m not sure that this would even be possible without using framed content, which Google doesn’t support outside of Google Pages.
I know that this has become a customisation question, and it really isn’t fair to ask you to customise stuff for me. But in principle, what would you recommend? If this plugin really isn’t the solution for me, are there any articles or resources you could point me towards?
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Apps Script redirects on page loadForum: Plugins
In reply to: [Easy Modal] Popup scrolling with page:1) Display Options -> Fixed Postioning [sic] -> Checking this sets the positioning of the modal to fixed
2) Never used BuddyPress, so here’s a more generic answer. Let’s say the top-level Login/Register modal has an ID of “top-modal”, the Login modal is “login-modal”, and the button you mentioned is “login”. You want the top-level modal to close and the Login one to open. The following script should do the trick…
$('#top-modal button#login').on('click', function() { $('#top-modal').emodal('close'); $('#login-modal').emodal('open'); });
You can even return to the original modal after the Login one closes…
$('#login-modal').on('emodalAfterClose', function() { $('#top-modal').emodal('open'); });
Forum: Plugins
In reply to: [Wordpress File Upload] Get attachment ID immediately after uploadingMany thanks – it works! I used the below action to pass the attachment ID to the appropriate field…
$changable_data['js_script'] = '$("#attachment").val("' . $attachment_ID . '");';
Forum: Plugins
In reply to: [Form to Post] Repeating fieldsI looked into this a bit further and it’s a bit more complicated than I originally thought. ACF has its own method of creating posts, and with Repeater Fields I found no other solution than to use ACF’s method.
$field_key = 'field_123123123123'; // corresponds with a meta_ field $subfield_key = 'field_456456456456'; // repeating sub-field of $field_key $post_id = $the_post_id; // gets the current post ID $items = array('foo','bar','meh','cat','dog'); foreach ($items as $items_value) { $value[] = array($subfield_key => $items_value); update_field( $field_key, $value, $post_id ); }
The issue is that you when you use Repeater Fields, you can’t get a meta_ field by its name. You have to get it by its field key, which is generated by ACF when you create a custom field. Repeater sub-fields also have their own field keys.
Also, I couldn’t get this to work with update_post_meta, which FtP uses. I had to use update_field (which is native to ACF).
Sorry, I thought this would be an open-and-shut issue. I’ve posted a similar question on ACF’s forums – if they indicate a solution that allows FtP integration, I’ll share it here.
Forum: Plugins
In reply to: [Form to Post] Server-side filter for custom fieldsThat did it! Many thanks.
Forum: Plugins
In reply to: [Contact Form 7] Prevent fields from clearing on submitStill looking to solve this issue.
I tried this, didn’t work.
$.fn.clearForm = function() { return this.each(function() { $('input', this).not('.wpcf7-form-control').clearFields(); }); };
Got the idea from here: https://www.techiecorner.com/2732/contact-form-7-clear-all-field-except-specific-after-submission/. But no, it doesn’t work…
Again, thanks for the help. This makes sense.