Post by Shinobi on Mar 27, 2015 8:24:48 GMT -8
Hello, I was wondering if it's possible to somehow set whatever a person inputs in a custom profile fields, as lowercase.
Why is this?, well, there's a custom profile field on my web that works changing certain part of an URL of an image by using this code:
<div align="center"><a href="http://pokemondb.net/pokedex/$[field_pokemon1]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon1].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon2]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon2].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon3]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon3].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a><br> <a href="http://pokemondb.net/pokedex/$[field_pokemon4]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon4].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon5]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon5].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon6]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon6].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a></div><hr>
</div></div></div></div>
The problem is, if they input the pokemon name somehow not as entirely lowercase, they will get an error image. This is not a big deal, but I would like users to have the advantage of input the name as they want to, but at the end, it would be change to lower case regardless of how has been set.
I hope you can help me, thank you!
Why is this?, well, there's a custom profile field on my web that works changing certain part of an URL of an image by using this code:
<div align="center"><a href="http://pokemondb.net/pokedex/$[field_pokemon1]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon1].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon2]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon2].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon3]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon3].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a><br> <a href="http://pokemondb.net/pokedex/$[field_pokemon4]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon4].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon5]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon5].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a> <a href="http://pokemondb.net/pokedex/$[field_pokemon6]"><img src="http://play.pokemonshowdown.com/sprites/bw/$[field_pokemon6].png" style="max-width:100%;border:0px solid #e3e3e3;padding:5px;"></a></div><hr>
</div></div></div></div>
The problem is, if they input the pokemon name somehow not as entirely lowercase, they will get an error image. This is not a big deal, but I would like users to have the advantage of input the name as they want to, but at the end, it would be change to lower case regardless of how has been set.
I hope you can help me, thank you!