Battlefield 3 Servers Hosting
GAMETRACKER FORUMS
Forum Home > GameTracker General Help & F.A.Q.s > in game name-link question for webmaster.
teo-PM
#1
in game name-link question for webmaster.
Jun 06, 2012 9:06 AM
Joined: Sep 2008
Posts: 6
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.
http://sof2.org
burnPM
#2
Jun 06, 2012 9:14 AM
GAMETRACKER ADMIN Joined: Sep 2006
Posts: 5548
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.
Frequently asked questions and forum guidelines

GameServers.com is the worldwide leader in game server hosting. GameServers is known for their industry leading prices, support, and superior performance. Servers starting from $0.99/slot public, $0.79/slot private.


Constant.com offers scalable VPS servers and dedicated servers to host your website, apps, and/or game servers. Constant offers very flexible packages and are known for their uptime. VPS servers as low as $20/mo.


Current Special: CS1.6 and CSS for $0.50/slot
teo-PM
#3
Jun 06, 2012 9:23 AM
Joined: Sep 2008
Posts: 6
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.
http://sof2.org
teo-PM
#4
Jun 06, 2012 10:02 AM
Joined: Sep 2008
Posts: 6
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
http://sof2.org
burnPM
#5
Jun 06, 2012 3:43 PM
GAMETRACKER ADMIN Joined: Sep 2006
Posts: 5548
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.
Frequently asked questions and forum guidelines

GameServers.com is the worldwide leader in game server hosting. GameServers is known for their industry leading prices, support, and superior performance. Servers starting from $0.99/slot public, $0.79/slot private.


Constant.com offers scalable VPS servers and dedicated servers to host your website, apps, and/or game servers. Constant offers very flexible packages and are known for their uptime. VPS servers as low as $20/mo.


Current Special: CS1.6 and CSS for $0.50/slot