PDA

View Full Version : Special characters and filenames


McMendo
03-22-2007, 04:09 PM
I need to make a customized option with a special character to point to a filename which cannot be have that special character. This is for the Country Flag hack. I asked the question a few months ago, but the coder has not logged in since:


https://vborg.vbsupport.ru/showpost.php?p=1209631&postcount=175

In the User Profile Fields, the custom Profile Field "Country" has a list of options which are the country names. When a "country name" is chosen by a user from the dropdown menu in the user's Edit Options, this links to a "filename" in a directory which is a gif image with the country flag.

This is alright except with "country names" which have a special character, like Espa?a, because the "filename" cannot have that special character and it doesn't recognize it.

How can I go around this? I.e. make option "Espa?a" link to file "Espana.gif".

Surely there must be a way to do this?

McMendo
03-24-2007, 12:59 AM
Anyone? :(

McMendo
03-29-2007, 08:36 PM
*bump*

WetWired
03-29-2007, 08:55 PM
<img src="images/flags/<if condition="$userinfo[fieldX]=='Espa?a'">Espana<else />$userinfo[fieldX]</if>.gif" title="$userinfo[fieldX]" align="center">