kim.oj
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Post Expires] Present the expiry date on pageMarking as resolved
Forum: Plugins
In reply to: [WP Post Expires] Conflict with ACFMarking as resolved
Forum: Plugins
In reply to: [Contact Form 7 Mail Conditions] Fixed PluginI couldn’t figure that one out with one input, so I made separately input fields for every question I wanted to check.
Hope you find another answer!
/KimForum: Plugins
In reply to: [Advanced Menu Widget] Translation for “Select” text of dropdownIf you use Polylang as a translation plugin on the site you can do like this:
In the child themes function.php
pll_register_string('Select i Advanced menu', 'Select');
In the plugin file class-advanced-menu-widget.php row 14 instead of “Select”
' . pll__('Select') . '
Then you go to the admin > Language > String translation use filter “polylang” and then translate the string in all your language.
Hope this makes sens
/KimForum: Plugins
In reply to: [Contact Form 7 Mail Conditions] Fixed PluginHi,
if you have this in your form[checkbox checkbox-961 "test 1" "test 2" "test 3"]
Then you just need to write this in your mail
[checkbox-961]
If you want to print something in the form, I unfortunately don’t have a answer.
Did you come up with a solution?
Have the same problem on a site.Deactivating plugins and changing themes are not an option for this site.
I have deactivated the captcha function in WP security for now.Forum: Plugins
In reply to: [Contact Form 7 Mail Conditions] Fixed PluginMade a smal adjustment to @receter’s code to make the plugin work with mail(2) in CF7 Version 4.4
mail2 > mail_2
/** * Modifies the emails by replacing the conditionals [if field_name][/if] * * @param [Object] $cf7 the contanct form 7 object * @return void * @author Tobias Braner **/ public function before_send_mail($contact_form) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $posted_data = $submission->get_posted_data(); $mail = $contact_form->prop('mail'); $mail_2 = $contact_form->prop('mail_2'); $mail_body = $mail['body']; $mail_2_body = $mail_2['body']; $mail['body'] = $this->process_conditions($mail_body, $posted_data); $mail_2['body'] = $this->process_conditions($mail_2_body, $posted_data); $contact_form->set_properties(array('mail' => $mail, 'mail_2' => $mail_2)); } }
- This reply was modified 7 years, 9 months ago by kim.oj.
Forum: Plugins
In reply to: [WP Post Expires] Conflict with ACFHi again!
Have had some contact with the ACF support and they have helped me allot!Here are two of their comments that can help you fix this conflict in this plugin.
And hopefully help others until this is fixed!I’ve just done some testing with the free version and found that the ‘WP Post Expires’ plugin is registering a custom jQuery date picker library.
WP includes the jquery date picker library in it’s core, which is what ACF enqueues.
It seems that any plugin that enqueues the WP date picker library will trigger this issue.The only solution for now is to edit the ACF plugin file ‘acf.php’ on line 551 and remove ‘jquery-ui-datepicker’ from the deps array.
Please contact the developers of ‘WP Post Expires’ and notify them that the datetime picker fails when the WP ‘jquery-ui-datepicker’ library is enqueued.
There is nothing I can do about this bug from my end, it must be fixed from ‘WP Post Expires’I’ve just done some testing and found that the issue comes from a line of JS within the ‘WP Post Expires’ Plugin.
It’s not necessarily a ‘bug’ in their code, but when ACF PRO is active, this conflict is caused.The line of code that causes the issue can be found in the file ‘wp-post-expires/assets/js/plugins-scripts.js’ on line 18.
The issue is that the ‘langs’ variable does not contain the expected object key because ACF PRO has included the datetime picker JS without including the ‘en’ translation – becuase the default language is already english.Simply comment out line 18 and the page will work again as expected.
Hope this helps
Forum: Plugins
In reply to: [WP Post Expires] Present the expiry date on pagefound a code that worked:
<?php $expires = get_post_meta($post->ID, 'xn-wppe-expiration', true); $label = !empty($expires)? date_i18n('j F', strtotime($expires)) : __('never', 'wp-post-expires'); echo $label; ?>
Forum: Plugins
In reply to: [Ajaxy Instant Search] Result isn't always showingHi, after some adjustmens I got it to work, kind of.
The correct result is coming up after the wrong one, so it works ??
Thanks for the help!Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 mail (2) not workingClarification to above.
As long as I don’t have the same emails it works on the test site. On the main site that won’t work either.You don’t have a solution for this?
Forum: Plugins
In reply to: [Polylang] Menu are not displayed correctly after activating PolylangIt turned out that no menu was activated on a specific menu area, so all pages was showing in the menu.
Solution
I activate the plugin and assigned a specific menu to the menu areas.Forum: Plugins
In reply to: Change text in WooCommerce Shop WidgetSolution: Overriding the template file in the Child Theme hierarki
Respons over here:
https://www.ads-software.com/support/topic/change-text-in-woocommerce-shop-widget-1?replies=7#post-8508029Forum: Plugins
In reply to: [WooCommerce] Change text in WooCommerce Shop WidgetAha thank you!
Did a overriding of the template file in the Child Theme I’m using and now I have the word I want!
Don’t know why I didn’t think of that before!Have a nice weekend!
Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 mail (2) not workingCant switch theme on the main site unfortunally.
But I have the same theme (and version) on the test site and as long as I don’t use the same mail adress for mail 1 and 2 it works.