b2k_teo • PM |
Jun 06, 2012 9:06 AM
|
![]() Posts: 14 |
Hi all, when i would like to click on a name-link to soo the player's profile page, if within there is a symbol like '#' it is replaced from its corresponding in html '%23'. for example if it is 'Teo#', the link becomes:
http://www.gametracker.com/player/Teo%23/XX.XXX.XX.XXX:XXXXX/ is it necessary for you at website? cheers Teo. ![]() |
burn • PM |
Jun 06, 2012 9:14 AM
|
![]() Posts: 10924 |
Hi teo_ldr,
URL Encoding is indeed a good thing to do for security. You can see more about url encoding here http://www.w3schools.com/tags/ref_urlencode.asp or https://en.wikipedia.org/wiki/Percent-encoding If the URL was formatted slightly differently, such as http://www.gametracker.com/XX.XXX.XX.XXX:XXXXX/player/Teo#, there could be some minor issues because the # can be used for something else. Special characters are good to avoid in URLs. ![]() |
b2k_teo • PM |
Jun 06, 2012 9:23 AM
|
![]() Posts: 14 |
thank you for the fast reply,
yes but i got a mod in my site which shows your player banner just entering the name (copied from here) in 'your profile'. URL is needed as i have indicated above cuz your banner form. ![]() |
b2k_teo • PM |
Jun 06, 2012 10:02 AM
|
![]() Posts: 14 |
oki fixed, just have to write:
'Teo%23' instead of 'Teo#' or rather copy the name that appears in the address bar, into my form! thx anyway cheers. Teo ![]() |
burn • PM |
Jun 06, 2012 3:43 PM
|
![]() Posts: 10924 |
Hi teo_ldr,
You can make use of the urlencode function in PHP if this is the language you are using. For example, you could save the name normally but when the name is concatenated with the banner code within the plugin, you would use the function urlencode($player_name) and it will covert it to the encoded text on the fly. ![]() |