on :October 15, 2019, 12:23 pm #56
Osclass 3.8.0
php 7.2.18 localhost
Default theme : Bender
France Interactive Map
Hello,
Where and how to insert the code jquery.vmap.france.js?
I downloaded jquery.jvectormap.2.0.3 that I unzipped in oc-contents / plugins.
I downloaded jquery.vmap.france.js in the same folder.
In administration, the installer of the plugin appears and the installation was successful !
Always in the administration, there is a help which asks to put in the desired location the code below:
<? php france_map (); ?>
I would like to put it at the reception before the listing of the various categories.
After several trial and error, a spacing appears but empty.
How to do ? Help ! Please
Thank you
on :October 15, 2019, 6:49 pm #59
Most likely you have some error there. I am not familiar with the plugin.
Did you make the test on localhost?
on :October 15, 2019, 8:39 pm #60
Hello,
Thank you for your reply.
I am still in localhost.
When I put the recommended code
<? php france_map (); ?> at line 87 of the header.php I get a space but that is empty. The map does not appear in the space that is freed.
I thank you in advance
on :October 15, 2019, 8:53 pm #61
I am not familiar with that plugin, but if the blank space is there is possible to have some js error.
Check for js errors in the firefox console Ctrl+Shift+C.
Console tab.
on :October 15, 2019, 11:33 pm #62
Thank you for your reply.
First, I edited the file jquery.vmap.france.js of the map of France with Firefox, then crtl + shift + c then console and here is the error in French which is reported
L’encodage de caractères d’un document en texte brut n’a pas été déclaré. Le document sera affiché avec des caractères incorrects pour certaines configurations de navigateur si le document contient des caractères en dehors de la plage US-ASCII. L’encodage de caractères du fichier doit être déclaré dans le protocole de transfert ou le fichier doit utiliser une marque d’ordre des octets (BOM) comme signature d’encodage.
2- I edited as before jquery-jvectormap 2.0.3 and rigorously the same error is reported
Thank you
on :October 16, 2019, 7:13 am #63
Is possible to be an encoding issue but I am not sure. If I cannot see myself is hard to point you in the right direction.
on :October 16, 2019, 9:00 am #64
I thank you for bringing me, guided to this point in javascript in which I am novice.
I remain hopeful that another will eventually break through the secret of this error.
Once again, thank you to the entire Osclass Community