TMTP syntax

General Discussion about Trackmania United

Moderator: TM-Patrol

Florent
Developer
Developer
Posts: 1594
Joined: 09 Aug 2005 14:07
Contact:

TMTP syntax

Post by Florent » 19 May 2008 14:44

To use tmtp with short manialinks, you should use this syntax :

tmtp:///:YourManialink

the character ':' before the manialink indicates it's a short manialink
and not an URL, and the 3 characters '/' after "tmpt:" are needed
because otherwise web browsers (like IE, Firefox,...) add a '/' at the
end of the manialink.
So when you type "tmtp://:Manialink:Home" in your web browser,
it will send the string "tmtp://:Manialink:Home/" to TrackMania,
and then the game will try to show the manialink "Manialink:Home/"
instead of "Manialink:Home".
But if you type "tmtp:///:Manialink:Home", it will not modify the string.

I think blahitis did or is doing a BBCode for it ^_^

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: TMTP syntax

Post by f*ckfish » 19 May 2008 15:28

Thanks a lot for this info, Florent =)
Are there any other fancy tmtp commands that we need to know about (other than the obvious #score=, #addfavourite=, #invitebuddy=, #addbuddy=, #joinasreferee=, #spectate=, and #join= )?
inactive, sorry

Florent
Developer
Developer
Posts: 1594
Joined: 09 Aug 2005 14:07
Contact:

Re: TMTP syntax

Post by Florent » 19 May 2008 16:54

That's all

Other things you can do would be with a ManiaLink page or ManiaCode (without downloads however)

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: TMTP syntax

Post by f*ckfish » 20 May 2008 08:58

Ok, so will there be an official documentation about all the ManiaLink styles and substyles?
Sorry for the offtopic, but I'm dying to know ;-)
inactive, sorry

rat_rat_rat
cyclist
cyclist
Posts: 40
Joined: 01 Jul 2007 13:13
Contact:

Re: TMTP syntax

Post by rat_rat_rat » 20 May 2008 10:11

ratcolor>

Testing...

Official documentation? Hehe, no - manialink there is most mysterious language that I ever seen.

"The manialink creation may be more simple in the future" - that Nadeo answered me.

User avatar
MuLoO
speedy pilot
speedy pilot
Posts: 351
Joined: 31 Jan 2008 19:06
Owned TM-games: TMO / TMU-F
Manialink(s): muloo
Location: Belgium Brussels

Re: TMTP syntax

Post by MuLoO » 10 Jun 2008 11:33

Hi,

Sorry to bring this old post back up, but howto make the tmtp link clickable in forum posts like an url

Thanks
Click the image to join The Power System server
Imagecolor>
Sponsored by Playfaster.net

Xfire: muloo
Burn rubber, not your soul !

tcq
speedy pilot
speedy pilot
Posts: 380
Joined: 05 Apr 2007 08:09
Location: Germany
Contact:

Re: TMTP syntax

Post by tcq » 10 Jun 2008 11:50

[manialink=][/manialink]

User avatar
MuLoO
speedy pilot
speedy pilot
Posts: 351
Joined: 31 Jan 2008 19:06
Owned TM-games: TMO / TMU-F
Manialink(s): muloo
Location: Belgium Brussels

Re: TMTP syntax

Post by MuLoO » 10 Jun 2008 20:07

tcq wrote:[manialink=][/manialink]
Thanks but this only works for this forum ... the buttons are allready in the editor ... but on an other server = inpossible?
Click the image to join The Power System server
Imagecolor>
Sponsored by Playfaster.net

Xfire: muloo
Burn rubber, not your soul !

Xymph
Pit Crew
Pit Crew
Posts: 5650
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: TMTP syntax

Post by Xymph » 10 Jun 2008 20:38

MuLoO wrote:
tcq wrote:[manialink=][/manialink]
Thanks but this only works for this forum ... the buttons are allready in the editor ... but on an other server = inpossible?
Nope, unless that other forums' admin adds support for them, like Blahitis did here.

Btw, I saw Florent use a [spectate=][/spectate] tag, but there's no button for that one on the posting page yet. Time to add it, Blah? :)
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

User avatar
MuLoO
speedy pilot
speedy pilot
Posts: 351
Joined: 31 Jan 2008 19:06
Owned TM-games: TMO / TMU-F
Manialink(s): muloo
Location: Belgium Brussels

Re: TMTP syntax

Post by MuLoO » 11 Jun 2008 11:18

thanks :thumbsup:
Click the image to join The Power System server
Imagecolor>
Sponsored by Playfaster.net

Xfire: muloo
Burn rubber, not your soul !

User avatar
s!em
speedy pilot
speedy pilot
Posts: 573
Joined: 06 Dec 2005 12:53
Owned TM-games: ALL
Location: Belgium

Re: TMTP syntax

Post by s!em » 13 Jun 2008 19:12

If I put an images between [server=] [/server]
Then it doesn't work :?

User avatar
Retodon8
swift roadking
swift roadking
Posts: 751
Joined: 12 Jul 2006 14:57
Owned TM-games: TMSX, TMU(F), TM2:C
Manialink(s): Retodon8
Location: Netherlands
Contact:

Re: TMTP syntax

Post by Retodon8 » 22 Jun 2008 09:57

I can't see the actual code that turns the BBCode into HTML, but this is what I think may be happening.
The "[server=]" adds a break right after the "<a>", so the "[img]" part right after moves to the next line, and it, plus the stuff that follows, doesn't get turned.

Images work fine with the [manialink] BBCode though; I just checked.
It's probably useful to compare the two pieces of code. :)

(The following won't change the BBCode thing, but documenting for those who want to know:
In Firefox go: Tools > Options... > Applications > tmtp, and use its pull-down menu to change your preferences for that protocol.)
Яєזσםση8
ImageImage

User avatar
MuLoO
speedy pilot
speedy pilot
Posts: 351
Joined: 31 Jan 2008 19:06
Owned TM-games: TMO / TMU-F
Manialink(s): muloo
Location: Belgium Brussels

Re: TMTP syntax

Post by MuLoO » 01 Jul 2008 22:52

I have been testing a while to make a image clickable with a tmtp link ...
example : [url=tmtp://:#join=e-gekko-lol]Image[/url]

this is the code i tryed

Code: Select all

[url=tmtp://:#join=e-gekko-lol][img]http://www.google.com/intl/en_ALL/images/logo.gif[/img][/url]
but my outcome is like this

Code: Select all

 tmtp://:/#join=e-gekko-lol 
Is there a way to fix this?

Thanks
Click the image to join The Power System server
Imagecolor>
Sponsored by Playfaster.net

Xfire: muloo
Burn rubber, not your soul !

User avatar
BLaHiTiS
lord of the roads
lord of the roads
Posts: 3331
Joined: 12 Aug 2005 15:46
Owned TM-games: tmu tmo tms tmn
Manialink(s): muxitis
Location: Hasselt, Limburg, Belgium
Contact:

Re: TMTP syntax

Post by BLaHiTiS » 19 Jul 2008 20:48

well yes I actually "had" to do it if some of these links were gonna work because the software doesn't like # in a link in some case and phpbb doesn't want to help me with that. (safety first I guess?).

The bbcode is just a case of translating an imput to a html hyperlink output, while also providing you with a simplified method of showing your manialinks, scores and servers here.

actually on other nonphpbb3 servers it might respond completely differently , depending on the software if you are just pasting the dry links.

This is just a "foolproof" method (or as foolproof as possible ofcourse) The perfect foolproof method would be that you think about a manialink and it suddenly starts up trackmania without pressing a key :) :)
Image

  • MB:Asus P8 H61
  • CPU:Intel i5 2400
  • RAM:8 Gb
  • GFX:Asus GTX-580 (1500mb DDR5) - Forceware 75.33
  • DirectX: June 2011
  • SND:Realtek HD on mobo
  • OS:Windows 7 SP1- Home Premium
[/size]

User avatar
MuLoO
speedy pilot
speedy pilot
Posts: 351
Joined: 31 Jan 2008 19:06
Owned TM-games: TMO / TMU-F
Manialink(s): muloo
Location: Belgium Brussels

Re: TMTP syntax

Post by MuLoO » 20 Jul 2008 00:08

:D en nu in het nederlands ...

So you say its not possible...
the only solution for me is to have a php page that triggers the tmtp correctly?
Click the image to join The Power System server
Imagecolor>
Sponsored by Playfaster.net

Xfire: muloo
Burn rubber, not your soul !

Post Reply