FortMaxWave
Forum Replies Created
-
Forum: Plugins
In reply to: [Equal Height Columns] PHP 7.2 & count()Forum: Plugins
In reply to: [Equal Height Columns] PHP 7.2 & count()Same problem here with PHP 7.2 🙁
Forum: Plugins
In reply to: [WP Easy Toggles] Cannot add more than one toggle in a pageOk, I think the problem comes with the “span.easy_toggle” itself. If placed right after a paragraph, it merges with it and break the JS logic. Its kinda weird..
Maybe you should change the <span> for a <div> or add a wrapper (div) around the toggle.
Let me know.
I disabled ModSecurity module in the cPanel for that domain and it seems to work again. I will talk with my provider to see what changed lately.
Thanks again for your time.
Hi George, thanks for you answer.
I did try (with just WooCommerce, WooCommerce Multilingual & WPML with basic store theme) = Same result.
About admin-ajax, it’s working fine elsewhere on the site. It’s just when i try to save a product translation with the “woocommerce editor” that I get a 404 and nothing happens after that.. It’s weird.
Forum: Plugins
In reply to: [Birthdays Widget] Birthday date is missing the month since the last updatethanks pal!
Forum: Plugins
In reply to: [Birthdays Widget] Birthday date is missing the month since the last updateany update?
richardvandermeer: What have you done exactly to bypass the problem?
Thanks
Here is my code I used (for reference if someone else has the same problem)..
My code is maybe not optimized or something (I’m not a javascript expert) but it works..
If someone else have a better solution and want to share it… Go for it..<script type="text/javascript" src="{{SERVER PATH}}/js.cookie.js"></script> <script type="text/javascript"> jQuery(document).ready(function () { if (Cookies.get('popmake-auto-open-{{POPMAKE POST ID}}-{{POPMAKE COOKIE ID}}') === undefined ){ jQuery('{{VIDEO ID}}').prop('autoplay', true); } }); jQuery('#popmake-{{POPMAKE POST ID}}') .on('popmakebeforeClose', function () { var $video = jQuery('video', jQuery(this)); $video[0].pause(); }); </script>And HTML looks like this:
<video id="{{VIDEO ID}}" controls width="1280" height="720"> <source src="{{VIDEO SOURCE}}.mp4" type="video/mp4" /> <source src="{{VIDEO SOURCE}}.webm" type="video/webm" /> <source src="{{VIDEO SOURCE}}.ogv" type="video/ogg" /> </video>* I used JS Cookie script (and jQuery). Download script here: https://github.com/js-cookie/js-cookie
** Replace the {{ }} with your own ID.Hi,
Your code did not worked for me but I have found a solution by validating if cookie exists and append the autoplay on the video tag if not..The only thing that would be easier for me would be if the cookie name wouldn’t include the post ID in it.. That way, I could use the same function on multilanguage pages/sites.. Do you think it would be possible in a next release?
Thanks for your support!
I think that I forgot to mention that the popup is trigger on auto-open after page has loaded.. Is there any difference in the javascript?!
thanks again..
humm pretty basic html 5 integration:
<video class=”video-player” controls width=”1280″ height=”720″>
<source src=”http://video_source.mp4″ type=”video/mp4″ />
<source src=”http://video_source.webm” type=”video/webm” />
<source src=”http://video_source.ogv” type=”video/ogg” />
</video>Could it be because que function trigger the play() action before the video has loaded?! Is there a simple way to add code to wait a few miliseconds before trigger the play()?
thanks
I cannot give you a link because Im working in localhost.
but here’s my javascript that I used:
<script type="text/javascript"> jQuery('#popmake-17') .on('popmakeBeforeClose', function () { var $video = jQuery('video', jQuery(this)); $video[0].pause(); }); jQuery('#popmake-17') .on('popmakeBeforeOpen', function () { var $video = jQuery('video', jQuery(this)); $video[0].play(); }); </script>the “close” function is working fine but not the “play”..
No JS errors in console..I also tried “popmakeAfterOpen” like you said in your last comment, the code in your doc is “popmakeBeforeOpen” (http://docs.wppopupmaker.com/article/86-start-video-when-the-popup-opens).. but no luck..
Hope it helps..
Thanks