Page 1 of 1

trackmania server connect BBCode

Posted: 05 Apr 2010, 02:08
by peugeot405
I want to make a trackmania server connect BBCode.
It allows tm server owners to post a link to connect directly to there server.

anyone has an idee?
normally the url is:

Code: Select all

<a href="tmtp://#join=SERVERLOGIN HERE">SERVERNAME HERE</a>
I was thinking in the line of:

BBCode usage:

Code: Select all

[tm]{INTTEXT1},{INTTEXT2}[/tm]
HTML replacement:

Code: Select all

<a href="tmtp://#join={INTTEXT1}">{INTTEXT2}</a>
Help line:

Code: Select all

[tm]server login,server name[/tm]
or i could use this:

BBCode usage:

Code: Select all

[tm]{INTTEXT1},{INTTEXT2}[/tm]
HTML replacement:

Code: Select all

<input class="button2 btnlite" type="button" value="{INTTEXT1}"  onclick="window.location.href='tmtp://#join={INTTEXT2}'" />
Help line:

Code: Select all

[tm]server name,server login[/tm]
its a little variation from the link= BBCode

I'm not sure if a tmtp connect is save to use in a BBCode

antoher problem came up when I tried it on my test forum and it works in IE, but not in firefox.

All suggestions are welcome.