mattheo
Forum Replies Created
-
Hi Delyan,
I saw you released a new version of the plugin (v. 1.3.6).
Did my issue regarding the WP multisites installation has been solved with the update?Many thanks.
M.Thank you very much for your fast response.
I’ve seen that you’re updating quite frequently.
Do you know how much time does this fix require?Regards,
M.Thank you for your response.
It’s a strange result the one we are obtaining, because, with this code in the test site we are able to let woking the role 1 (editorformazioneintegrale) and the role 2 (wpseo_editor), but not the role 3 (psicologo)
add_filter( 'sg_security_2fa_roles', 'add_user_roles_to_2fa' ); function add_user_roles_to_2fa( $roles ) { $roles[] = 'editorformazioneintegrale'; $roles[] = 'wpseo_editor'; $roles[] = 'psicologo'; return $roles; }
- This reply was modified 2 years, 5 months ago by mattheo.
Our WP multisite installation has some customizations in styles and functions for its different subsites.
For this reason we have files in /wp-content/theme/subsite1/, that is the leading one and some customized files (for example functions.php, style.css and specific template files…) in /wp-content/theme/subsite2/ or /wp-content/theme/subsite3/ and so on.
The error is that your code is working on test area (pretty well, even if some roles it is not able to manage, we didn’t know why), but it is not working on the live site at all.
We added this code to functions.php in the folder /theme in the main site (the first one) of the multisite installation.
We added the same code in functions.php in the folder /theme of every site of the multisite installation.
add_filter( 'sg_security_2fa_roles', 'add_user_roles_to_2fa' ); function add_user_roles_to_2fa( $roles ) { $roles[] = 'editoruerlimitatoadalcunicontenuti'; $roles[] = 'editorsoloedit'; return $roles; }
in both cases the 2fa hasn’t been worked.
The fact is that: in our TEST MULTI-SITE (which is an exact copy of the live multisite) we used a specular code that is working properly, with the 2fa active for our custom users.
add_filter( 'sg_security_2fa_roles', 'add_user_roles_to_2fa' ); function add_user_roles_to_2fa( $roles ) { $roles[] = 'editorformazioneintegrale'; $roles[] = 'wpseo_editor'; $roles[] = 'psicologo'; return $roles; }
I hope these elements can help you to understand our problem.
Thanks,
M- This reply was modified 2 years, 5 months ago by mattheo.
Hi Georgi,
many thanks for your supportWe had positive results using your code in a single WP installation.
We also used that code in a WP multisite installation.
We put it in every functions.php of that installation, because we’ve got different themes.
In some of those themes the code it works, in some other ones the whole theme goes in error, not showing the subsite.
Have you an idea how we could do to avoid errors and to reach the result?
- This reply was modified 2 years, 5 months ago by mattheo.
Forum: Plugins
In reply to: [Font Awesome] Tik Tok icon doesn’t work + Plugin fatal errorIt worked immediately simply by putting
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">
before my icons.
Now they are all updated to the newest version and tiktok icon is working too.
Thanks!
- This reply was modified 3 years, 3 months ago by mattheo.
I solved. Now it works fine.
The key was: All field names should be uniqueThank you!
It doesn’t seem to work on my form. The submission works even if I leave text* fields empty, without any validation error.
Here’s my code:
<label> Numero partecipanti * [select* posti include_blank "1" "2"] </label> [group group-partecipanti1] Nome e Cognome partecipante 1 [text* partecipanti1 id:width100] [/group] [group group-partecipanti2] Nome e Cognome partecipante 1 [text* partecipanti1 id:width100] Nome e Cognome partecipante 2 [text* partecipanti2 id:width100] [/group]
Do you notice any mistake?