Marius
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Mailto Links - Protect Email Addresses] Fatal Error : wpml_mailto()Hi @ironikus,
I’m calling the function with parameters from another plugin (Pods):
$the_travail = pods('travail', get_the_ID()); echo wpml_mailto($the_travail->display("email"), "Contacter l'auteur");
Which, basically, is equivalent to:
echo wpml_mailto("[email protected]", "Contacter l'auteur");
Best,
Forum: Plugins
In reply to: [Direct Stripe] Ask only for country and nameHi Nicolas,
Thanks for the super quick answer.
I’ve had a look to your method for coupons and discovered the concept of transients, which is great! I’m just wondering something before trying to implement it on my side:
//SET Coupon value as a transient for process add_action( 'wp_ajax_ds_set_coupon', 'ds_set_coupon' ); add_action( 'wp_ajax_nopriv_ds_set_coupon', 'ds_set_coupon' );
Where these two actions are called? I mean where are the corresponding do_action()?
Thanks again!
Marius
Hi,
Thanks for the answer, I tried, but it doesn’t solve the issue.
However, I investigated further and temporarily fixed the issue doing some modification to photo-gallery’s script.min.js file.
At some point, there is this part of code:
jQuery(e).children(".bwg-extended-item").each(function() { var e = jQuery(this).find("img"), t = jQuery(this).find(".bwg-item0"), i = jQuery(this).find(".bwg-item2"); i.width() / i.height() > e.width() / e.height() ? i.width() > e.width() ? e.css({ width: "100%" }) : e.css({ maxWidth: "100%" }) : i.height() > e.height() ? e.css({ height: "100%" }) : e.css({ maxHeight: "100%" }), jQuery(this).find(".bwg-item2").css({ marginLeft: Math.round((t.width() - e.width()) / 2), marginTop: Math.round((t.height() - e.height()) / 2) }) }), bwg_container_loaded(jQuery(e).data("bwg")) } function bwg_thumbnail(e) { var t = jQuery(e).width(), i = jQuery(e).data("thumbnail-width"), a = jQuery(e).data("max-count"), r = parseInt(t / i) + 1; a < r && (r = a); var _ = 100 / r; jQuery(e).find(".bwg-item").css({ width: _ + "%" }), jQuery(e).children(".bwg-item").each(function() { var e = jQuery(this).find("img"), t = jQuery(this).find(".bwg-item2"); t.width() / t.height() > e.width() / e.height() ? t.width() > e.width() ? e.css({ width: "100%" }) : e.css({ maxWidth: "100%" }) : t.height() > e.height() ? e.css({ height: "100%" }) : e.css({ maxHeight: "100%" }), jQuery(this).find(".bwg-item2").css({ marginLeft: Math.round((t.width() - e.width()) / 2), marginTop: Math.round((t.height() - e.height()) / 2) }) }), bwg_container_loaded(jQuery(e).data("bwg")) }
At the end of the two functions I’ve added the Math.round methods and it fixed the issue. Would be great if one of your developers could investigate further to fix definitely the problem…
Forum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] Filter magic tag valueHi Josh,
Thanks for your detailed answer.
Marius
Forum: Plugins
In reply to: [Participants Database] Can’t add a field value after form submissionHi Roland,
I have seen you already released the update. Everything is working fine now.
Thanks a lot!
Forum: Plugins
In reply to: [Participants Database] Can’t add a field value after form submissionHi again,
I have been using Participants_Db::write_participant to try to update a record in another piece of code and, this time, I got some errors in my php log:
[18-Jul-2017 17:12:16 Europe/Brussels] PHP Notice: wpdb::prepare was called <strong>incorrectly</strong>. The query argument of wpdb::prepare() must have a placeholder. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.9.0.) in /srv/data/web/vhosts/asylos.eu/htdocs/wp-includes/functions.php on line 4139 [18-Jul-2017 17:12:16 Europe/Brussels] Participants_Db::process_form storing record: UPDATE fmk_3_participants_database SET <code>date_updated</code> = NOW(), WHERE <code>id</code> = 747 [18-Jul-2017 17:12:16 Europe/Brussels] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE <code>id</code> = 747' at line 1 for query UPDATE fmk_3_participants_database SET <code>date_updated</code> = NOW(), WHERE <code>id</code> = 747 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, Caldera_Forms->cf_init_system, Caldera_Forms::process_form_via_post, Caldera_Forms::process_submission, do_action('caldera_forms_submit_complete'), WP_Hook->do_action, WP_Hook->apply_filters, slug_process_form, PDb_Base::write_participant, Participants_Db::process_form
I investigated a bit and I’m wondering whether there is an issue with line 1837 of participants-database.php. The $column_data concatenated to $sql looks to be empty when $action == ‘update’. Could that explain the fact that I can’t update my data with Participants_Db::write_participant so far?
Hi Alex,
Thanks for the quick answer. I finally found where was the issue. Looks like there is a conflict when both CF7 Google Sheet Connector and your plugin are activated. I deactivated the former and everything is finally working well.
Thanks for your job!
Marius
Hi Malay,
Any update on this?
The reason why I am removing people from the temporary login is that it is impossible to renew their access for more than one day. So, if you can’t find any workaround, would that be possible to provide a way to easily renew an access for more than one day?
Btw, a cool feature would also be the capacity to create a temporary login for a custom duration ??
Thanks!
Marius
Forum: Plugins
In reply to: [Participants Database] Issue with order attribute in shortcodeNow it is working correctly…. maybe a cache issue. Sorry!
Forum: Plugins
In reply to: [Participants Database] [Wish] Overwrite wordpress date format in pdb_recordHi,
It looks to be working fine without the strict date setting indeed. I just hope the database is not going to start mixing up months and days as I am using the ‘d/m/Y’ format on the signup form.
I actually don’t know how this works, i.e. how the script knows that the input has to be interpreted as ‘d/m/Y’ and not ‘m/d/Y’… is it based on the browser localisation setting of the user or on a php/server setting?
Anyway, thanks for the quick answer.
Marius
Hi Malay,
Sorry for the late reply. It’s not super urgent but if you find a workaround it would be indeed welcomed ??
Thanks!
Forum: Plugins
In reply to: [Participants Database] Dropdown: hide some valuesHi,
Sorry to re-open this feed. The above solution does not actually work perfectly. At least on Firefox, it is still possible to select the options on which the display:none propriety is set by using the arrows on the keyboard. I don’t know whether this is a bug in Firefox but this is actually quite annoying.
So, for the moment, I used a Javascript trick:
document.getElementById("pdb-country").options[3].disabled = true; document.getElementById("pdb-research_team").options[4].disabled = true;
Just wanted to inform you.
Marius
Forum: Plugins
In reply to: [Participants Database] Dropdown: hide some valuesOh nice, I didn’t know this CSS feature. Many Thanks.
Forum: Plugins
In reply to: [Participants Database] Restrict access to uploaded filesOn my side I finally found this one : https://wpguru.co.uk/2012/01/how-to-prevent-direct-file-access-in-your-wp-content-directory/
Not exactly the same rewrite rules so I’ll have to take a look at Apache documentation.
Forum: Plugins
In reply to: [Participants Database] Restrict access to uploaded filesYes, that is what I was afraid of. I don’t know exactly how to set up this .htaccess as well. Thanks for your help!