Jump to content

Quebec flag doesn't show up on stats maps


ECplus3

Recommended Posts

Hi there,

 

When viewing my statistics page on the maps tab I noticed that the flag for the province of Québec wasn't showing up.  

 

I took a quick look at the source and it appears that the page code simply takes the province name and uses it to reference the .png file in the /images directory.  

 

However, Québec has an accent on the first 'e', which is not allowed in a URL.  The code needs to be modified to scrub out accents before using them in a url.

 

Cheers,

Chuck

Link to comment
On 6/20/2018 at 6:04 PM, E&Cplus3 said:

Hi there,

 

When viewing my statistics page on the maps tab I noticed that the flag for the province of Québec wasn't showing up.  

 

I took a quick look at the source and it appears that the page code simply takes the province name and uses it to reference the .png file in the /images directory.  

 

However, Québec has an accent on the first 'e', which is not allowed in a URL.  The code needs to be modified to scrub out accents before using them in a url.

 

Cheers,

Chuck

Ideally, It shouldn't use the place name at all, but use the country ID/State ID (and integer) for each location and name the png files accordingly.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...