Juergen Schulze
Forum Replies Created
-
I think I know why it is not working.
wp-content/plugins/popup-maker/assets/js/site.js?defer&ver=1.4.15
is missing.
Somehow the “Thank you page” is loading it, but the “Good bye” page is not.
How can I manually force the script to be loaded?
What is the used slag with wp_enqueue_script?pm_remove_cookie just gives me
Uncaught ReferenceError: pm_remove_cookie is not defined
GREAT
I was able to implement it into my own site white plugin to use with a custom short code.
Works like a charm. That was very helpful of you.Here is my code for others to use. Just place it in your custom functions.php
// shortcode set a cookie add_shortcode('xxx_set_cookie', 'xxx_set_cookie'); function xxx_set_cookie($atts){ $atts = shortcode_atts( array( 'cookiename' => '', ), $atts ); print ' <!-- set a cookie start --> <script type="text/javascript"> jQuery(document).ready(function () { jQuery.pm_cookie( \''.$atts["cookiename"].'\', // The cookie name that is set to manual. true, // Setting a cookie value of true. \'10 years\', // Plain english time frame. \'/\' // Cookie path of / means site wide. ); }); </script> <!-- set a cookie end --> '; }
Now you can place/set a cookie with a shortcode
[xxx_set_cookie cookiename="popmake-auto-open-xxx"]
Maybe you can give me a example on how to delete that cookie again?
I would place it in the goodbye page when someone unsubscribes from my newsletter.regards
JuergenForum: Plugins
In reply to: [WooCommerce] Is it possible to show products using author idOh, looks like shortcode_atts always creates a variable even if its empty. So better do this:
# detect author if (isset($atts['author']) && $atts['author']!="") { $args['author'] = absint( $atts['author'] ); $args['posts_per_page']=-1; }
Forum: Plugins
In reply to: [WooCommerce] Is it possible to show products using author idIf you want more than just 1 product to be shown use this:
# detect author if (isset($atts['author'])) { $args['author'] = absint( $atts['author'] ); $args['posts_per_page']=-1; }
Forum: Plugins
In reply to: [WooCommerce] Is it possible to show products using author idThe way you are using this will cause trouble if now author is supplied. It will break all other shortcodes used.
Try this instead# detect author if (isset($atts['author'])) { $args['author'] = absint( $atts['author'] ); }
Hi
just wanted you to know that it seems to work again after one of the last two updates.
Thanks for your efforts.Forum: Plugins
In reply to: [Contact Form 7] Email FROM "syntax error" – help yourselfUsing your own mail server as a relay server ist strictly allowed and not against any RFC.
If you know what you are doing (and I do) there is NOTHING that speaks against using any From address you like.
Hence this overly cautious behavior is totally unnecessary as nobody with some brain will use this plugin with an uncontrolled to-adress.
In my eyes it is a bug.Forum: Plugins
In reply to: [Contact Form 7] Email FROM "syntax error" – help yourselfIs this bug still existing in the newest version?
Same problems with newest Update.
Now, when creating a new popup, there is the same “nothing to select” problem with triggers and cookies selection. There is simply nothing to chose from.
I am using a local domain “turnkey”. Maybe there is any faulty regex not checking for top level domains missing?
Or maybe a wrong encoding? No UTF8? I am using special german charactersForum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] Send emails directly?I still don’t understand.
WHAT FOR CRYING OUT LOUD do I have to do/activate/install to send newsletter emails correct? And I mean HTML AND TEXT Part.Screenshot https://www.directupload.net/file/d/4335/np6reyar_png.htm
No errors on console.
Forum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] Send emails directly?Yes, but as I said before: I don’t use a third party plugin to send mails on wordpress. And BOTH settings worked.
Forum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] Send emails directly?The Newsletter Plugin lets to have a textual version of newsletters, but using WordPress to send email that textual part cannot be easily managed.
No matter how many time I read this sentence. I simply don’t understand this.
I can’t believe that you are not able to clearly point out what this setting has to do.Forum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] Send emails directly?There must be something wrong with this setting.
I tried both and got no different behavior in sending although i am NOT using a third party smtp plugin.
Please explain this ASAP.
I can’t install any new updates of your plugin on productive system as long as this is not clear to me.