GameTracker > Forum > General Help > in game name-link question for webmaster.
Vultr.com - Instant Cloud Server Deployment
GAMETRACKER FORUMS
Forum Home > General Help > in game name-link question for webmaster.
b2k_teoPM
#1
in game name-link question for webmaster.
Jun 06, 2012 9:06 AM
Joined: Sep 05, 2008
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.

burnPM
#2
Jun 06, 2012 9:14 AM
Joined: Sep 27, 2006
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.
I am retired from GameTracker after 11 years and will not be responsive for support requests.

b2k_teoPM
#3
Jun 06, 2012 9:23 AM
Joined: Sep 05, 2008
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_teoPM
#4
Jun 06, 2012 10:02 AM
Joined: Sep 05, 2008
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

burnPM
#5
Jun 06, 2012 3:43 PM
Joined: Sep 27, 2006
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.
I am retired from GameTracker after 11 years and will not be responsive for support requests.