tomicakorac
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Removed product from cart error message@cbvsolutions were you ever able to resolve this problem? I’m getting a similar (although not the exact same) issue.
Your site seems to be down for maintenance.
Forum: Plugins
In reply to: [Media Library Assistant] Map featured image metadata to post fieldsDavid thank you very much for your help. You really rock when it comes to support.
I was so tired and over-worked last night that I forgot to name the plugin. It’s Automatic Featured Image Post. It’s very useful and I did indeed manage to accomplish what I needed by using its hooks.
Your plugin is just amazing. But in the end it turns out I didn’t need to use it this time. I will however give it a thorough inspection, because I feel there’s nothing it can’t do when it comes to WP media.
Thanks again.
Forum: Plugins
In reply to: [Delete Me] How to get the 'delete me' url?Hi cmc3215, thanks for getting back to me. I finally ended up using the wp_delete_user() function which appeared to be enough for the job requirement. I’ll mark this topic as resolved.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 – Not sending emailsHi hg,
Unfortunately, there is absolutely nothing that anyone can do unless you show us your code. Can you please go to your site’s Dashboard > Contact > [Form name] and copy all the settings that you currently have there?
Forum: Plugins
In reply to: [Contact Form 7] Placeholder text gets submittedSorry, forgot to mark the topic as resolved.
Forum: Plugins
In reply to: [Contact Form 7] Placeholder text gets submittedI’ve found the fix. The problem was indeed in the theme’s ‘cusotm.js’ file:
$('input[type="text"]').each(function () { var $me = $(this), DefaultVal = $me.attr('placeholder'); });
By commenting that out, validation works as expected.
Takayuki, thank you for pointing me in the right direction.
andru26 it would be more than helpful if you shared some more details about your problem and how you solved it, if possible.
Forum: Plugins
In reply to: [Contact Form 7] Placeholder text gets submittedWell I guessed it could have something to do with JavaScript, but I don’t think I could change the entire theme of a live site to resolve this issue. Takayuki, since you say you often see similar issues, can you please provide some links to their solutions, so that I can further track down the root?
Forum: Plugins
In reply to: [Contact Form 7] Placeholder text gets submittedI’m afraid I’m not able to, since it’s a live website. Why do you think switching to the default theme would help?
Hello danieliser,
I haven’t had too much time to tinker around with it, but you can check for yourself. If you create a popup and give it a name that contains at least one non-ANSI character, the popup will fail to display. My guess is that, because the popup shortcode uses the popup name as a parametre, instead of the popup ID, it causes a problem.
True, WP is completely open-source, and if you believe the root of this problem is in WP code, in theory you could submit a fix to the core, but I understand that in practice this doesn’t happen very often.
What you do have control over is the way your plugin works. And a simple enough solution would be to not identify popups by their name, but rather their ID, which I’m sure will resolve the problem, unrelated to WP core.
About the animation, I would be happy to help, but I’m not sure I know how to contribute to your project?
Forum: Plugins
In reply to: [SlimStat Analytics] wp-slimstat.js causing WP Video Lightbox plugin to failcamu man, I’m so sorry, I honestly thought I replied to you. I did test your latest version when you asked, and it worked! But I really thought I replied to you. Don’t know what happened there, I probably forgot to cilck ‘Submit’ after I wrote my answer. I’m really sorry for this.
leecoder what you enter in the ‘Ignore Rel’ depends on your specific website. Can you please share more information? Like what’s your url and what are the exact images you’re seeing the problem with?
Forum: Plugins
In reply to: [Modal Dialog] Position popup in the bottom right cornerYannick this works great, thank you!
I also think it would be very useful if there was an option to choose the animation type for the modal appearing and disappearing, e.g. fade in/out, slide in/out etc.
Forum: Plugins
In reply to: [WP Video Lightbox] Conflict with WP Slimstat pluginYes, I also posted the same question here because it was a bit urgent. camu was kind enough to share the newest version of his plugin which fixes the conflict. wptipsntricks thank you too for the quick reply. I’ll mark this as resolved.
Forum: Plugins
In reply to: [SlimStat Analytics] wp-slimstat.js causing WP Video Lightbox plugin to failcamu this worked like a charm. Thank you very much for the quick reply. Your plugin rocks!
I found a solution to my problem myself. If enyone else needs it, here it is:
1. Install and activate ‘Contact Form 7 Modules’ plugin: https://www.ads-software.com/plugins/contact-form-7-modules/
2. Using the CF7 Modules plugin insert a hidden field in the form.
3. Insert this javascript in the form page template:<script type="text/javascript"> jQuery(document).ready(function($) { $('#first-form-id #hidden-field-id').each(function(i) { $(this).attr('id', 'hidden-field-id-first'); $(this).attr('value', 'first-form'); }); $('#bottom-form #redirect-hidden-field').each(function(i) { $(this).attr('id', 'hidden-field-id-second'); $(this).attr('value', 'second-form'); }); }); </script>
4. In your functions.php insert this code:
/** * Redirect Contact Form 7 submissions */ function wpcf7_redirections ($contact_form) { $submission = WPCF7_Submission::get_instance(); $redirect_field_value = $submission->get_posted_data( 'redirect-field-name' ); // Conditional redirects if ( $submission ) { if ( $redirect_field_value == 'first-condition' ) { $redirect_url = 'https://first-redirect.com'; } else { $redirect_url = 'https://second-redirect.com'; } $contact_form->set_properties( array( 'additional_settings' => "on_sent_ok: \"location = '" . $redirect_url . "';\"" ) ); } } add_action("wpcf7_before_send_mail", "wpcf7_redirections");