Eric Malalel
Forum Replies Created
-
Forum: Plugins
In reply to: [Broadcast] page created with Divi not updated on linked childrenHello Edward,
I have identified an AJAX request sent when I click on the “save” button of the Divi Visual Builder, which triggers an action “et_fb_ajax_save”.
I think we can use this to trigger an update on all blogs where the saved content (post, page or custom post we use) has been linked to children, not copied.
Is this something we can code on our own, can we find some documentation on how to do it?
Forum: Plugins
In reply to: [Broadcast] page created with Divi not updated on linked childrenHello Edward,
I will investigate this and let you know when I have a clue.
Right now, any page created with Divi is accessible through the Divi Builder or the standard WP Page editor.
From the standard WP Page editor, the Broadcast Widget is here and works, so we have a workaround.
Forum: Plugins
In reply to: [AWS for WordPress] synchronize Polly voices with HTML5 animationsHi Tomasz,
I will send you a mail with full details.
Forum: Plugins
In reply to: [AWS for WordPress] synchronize Polly voices with HTML5 animationsI have read information on speech marks and it seems to be there is exactly what I need, the <break> speech mark.
For instance, if I enter the text:
<speak>Salut, je m’appelle Mathieu. <break time=”10000ms”/>Je vais lire le texte que vous écrirez ici.</speak>.
I do get a 10 seconds break.
So if on one side I set timers in my HTML5 CSS3 animations, which is what I already do, and on the other side I set the same breaks in the text, it should work fine, I will have audio synchronized with animations.
The question is: will your plugin support this speech tag?
From your previous post, it seems it is not supported yet.perfect, thanks!
Forum: Plugins
In reply to: [Enable Media Replace] error message in admin when plugin activatedAnswer from plugin author would be appreciated
Forum: Plugins
In reply to: [Simple Page Ordering] infinite loop when drag and dropI use Chrome.
I dropped this plugin and now I use “Intuitive Custom Post Order” and “Admin Collapse Subpages” which work perfectly fine.Forum: Developing with WordPress
In reply to: set commenter cookie by programThanks for pointing me in the right direction.
And as it happens sometimes, the answer was in the question.
Just had to dig into the code and find it.
Thanks again.Forum: Developing with WordPress
In reply to: set commenter cookie by programWell, thanks for all these feedbacks and advices, but my question is not how to set cookie in PHP or how to set it securely, my question is: how to set commenter cookie by program.
To be more precise, this cookie is usually set by WP itself and obeys to strict syntax:
https://codex.www.ads-software.com/WordPress_Cookies
excerpt from this page:
When visitors comment on your blog, they too get cookies stored on their computer. This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. Three cookies are set for commenters:
comment_author_{HASH}
comment_author_email_{HASH}
comment_author_url_{HASH}
So, how to generate these cookies, knowing that there is a {HASH} in their names. How to genenate the right {HASH} which will then be accepted by WP.
Thanks in advance for feedback on this specific point.Forum: Developing with WordPress
In reply to: set commenter cookie by programThanks for the security tip.
However, my question is about creating the WP commenter cookie itself, whether or not name and email are provided encrypted in URL.
Can’t find how to do it on this site or by googling a lot.
If you can help on that too, thanks!Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] translate GTranslate in WP adminSolved! Using the Loco FAQ, I discovered my translation files were in the wrong folder.
I set them to be in the plugin folder, but they need to be in the WP languages folder.
Now everything works fine.Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] translate GTranslate in WP adminHi, what do you mean by no retation.
Po and mo files are standard files for localizing plugins and themes.
I digged into your plugin code and found it uses a text domain.
Please confirm that i can translate the admin page of your plugin with po and mo files, and sure, i will post on loco forum to investigate further.
But first, i want to be sure your admin page can be localized as any plugin or theme.Forum: Developing with WordPress
In reply to: WordPress Ajax call not working in FirefoxWell, in fact, this code
window.location.href = $kps_Host + $kps_LoginPath;
needed to be put in the AJAX post callback, to guaranty the AJAX call is executed before the page navigation takes place.
I changed my code and it works fine now.$("a[href='/kps_logout']").on('click', function() { // check href symbolic URL jQuery.post( WP_AJAX_URL, { 'action': 'kps_logout', 'security': $("#kpcms-ajax-nonce").val() }, function(){ // redirect and deactivate default navigation window.location.href = $kps_Host + $kps_LoginPath; } ); return false; });
Forum: Developing with WordPress
In reply to: WordPress Ajax call not working in FirefoxI have deactivated all plugins, no change.
I cannot switch to Twenty Sixteen as I rely heavily on the Divi theme from Elegant Theme and all the JQuery stuff is implemented in a child theme.
Here is how I load my jQuery, which is needed only by custom post types:if ( get_post_type() == 'kpcms_place' ) { // JQuery scripts and JQuery with WP Ajax URL set wp_enqueue_script( 'kpcms-KPS-pages', get_stylesheet_directory_uri() . '/js/kpcms-KPS-pages.js', array( 'jquery' ), '1.0.0', true ); // pass Ajax Url to script.js wp_localize_script('kpcms-KPS-pages', 'WP_AJAX_URL', admin_url( 'admin-ajax.php' ) ); }
Please notice the jQuery is executed, since the user is redirected to the home page.
But it is not disconnected.
And when I look at network trafic, I don’t see the Ajax call in Firefox, while I can see it in CHrome and IE.I have followed the following tutorial:
https://premium.wpmudev.org/blog/using-ajax-with-wordpress/- This reply was modified 8 years, 1 month ago by Eric Malalel.
Forum: Developing with WordPress
In reply to: WordPress Ajax call not working in FirefoxHi and thanks for quick feedback.
I just did it, restart the web server to be sure, but sorry, no change, so I removed it.