amosnier
Forum Replies Created
-
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?Yes, congratulations ! everything is fine now ..
You can check yourself … for example this onr https://dev3.attacn91.fr/quiz-europe/
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?It is a real pleasure to help (in spite of myself) for the development of the plugin, because the format of these quizzes is very appreciated by my friends …
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?- I installed the fresh version : but no improvement
- language : French
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?In fact, I have 4 quizzes on my site, that all give the samee behaviour :
Quiz Europe, Quiz Sécurité Sociale, Quiz Superprofits, Quizz Dette – Fiscalité
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?I just discovered that when I select the quiz, whereas the list of QUESTIONS is fine, the QUIZ SETTINGS is empty ! So I can’t adjust any setting !
With Debug True, the debug.log file just says : “PHP Warning: foreach() argument must be of type array|object, null given in /home/attacnfrpy/dev3/wp-content/plugins/hd-quiz/classes/quiz.php on line 306”
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?So sorry. I just disabled the region blocking on the developement site. I think you can view now. I will do te same for the production site in 5 minutes.
Forum: Plugins
In reply to: [HD Quiz] Direct jump to results with version 2.0 ?I am sorry, the page address I gave was my production site, where I had to downgrade to the version 1.8.15 in order to let mthe quizs working. The version 2.0.0 is on my developement site
https://dev3.attacn91.fr/quiz-europe/ where there is neither cache nor minification (WP-Optimer disabled). You can then see the strange behaviour, described previously, and compare with the perfect behaviour of the production site (version 1.8.15) https://attacn91.fr/quiz-europe/I will now test if the version 2.0.0 of the quiz plugin has some conflict with other plugins.
Thanks a lot for the clear explanation !
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Wpcom Connection Test issueThanks a lot for this information.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Wpcom Connection Test issueThanks a lot for your clear response ! Actually, as this french site is visited by hundreds of foreign intruders and bots, I had to install a blocking plugin (iQ Block Country) to allow only french visitors. Thanks to your suggestion, the solution was to use the allowlist for the frontend given in https://jetpack.com/support/how-to-add-jetpack-ips-allowlist/
And Jetpack is now well connected to my WordPress.com account and the Wpcom connection test error has disappeared. Of course, I will need to update any time the addresses change. Don’t know the periodicity …
Forum: Plugins
In reply to: [hCaptcha for WP] hcap whitelistIt works now ! I simply moved the filter from the functions.php file of my theme to the functions.php file of the plugin (/src/php/includes/common).
Don’t understand why it is not working in the functions of my theme.
But it works now …Forum: Plugins
In reply to: [hCaptcha for WP] hcap whitelistSo, I forced the function added in the theme’s function.php file to be true :
function my_hcap_whitelist_ip( $whitelisted, $ip ) { return true; return $whitelisted; } add_filter( 'hcap_whitelist_ip', 'my_hcap_whitelist_ip', 10, 2 );but the hCaptcha is still present when I log in.
Maybe is this filter only valid for the pro version ?Forum: Plugins
In reply to: [hCaptcha for WP] hcap whitelistOK, when I displayed $ip, it was returned “null”. So I added first the line
$ip = $_SERVER['REMOTE_ADDR'];
and the IP number is now well defined (ipv6).
But I don’t now actually in which file I have to add the snippet for the login. Up to now, I put it in the functions.php file, but it shouldn’t be the right place, because it doesn’t work. Hace you an idea where to put this snippet for the login session ?Forum: Plugins
In reply to: [hCaptcha for WP] hcap whitelistI added
var_dump( $ip );but does’nt improve.
URL of the website : https://attacn91.fr/Thanks for your help.
Forum: Plugins
In reply to: [hCaptcha for WP] hcap whitelistSorry, when I copied the lines from my functions.php file, I missed the last line that was well present in the file :
// hCaptcha filtre ajouté to whitelist certain IPs /** * Filter user IP to check if it is whitelisted. * For whitelisted IPs, hCaptcha will not be shown. * * @param bool $whitelisted Whether IP is whitelisted. * @param string $ip IP. * * @return bool */ function my_hcap_whitelist_ip( $whitelisted, $ip ) { // Whitelist local IPs. if ( false === $ip ) { return true; } // Whitelist some other IPs. if ( '1.1.1.1' === $ip ) { return true; } return $whitelisted; } add_filter( 'hcap_whitelist_ip', 'my_hcap_whitelist_ip', 10, 2 );the line
add_filter( 'hcap_language', 'my_hcap_language' );
is in principle used when we want to set hCaptcha language programmatically.
See
https://fr.ww.wp.xz.cn/plugins/hcaptcha-for-forms-and-more/#how%20to%20whitelist%20certain%20ips
But This filter snippet seems not to work for me …