TM-FORUM

The TrackMania universal forum ^_^
It is currently Sat Oct 25, 2014 8:36 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: PHP manialinks
PostPosted: Fri Nov 25, 2011 1:47 pm 
Offline
road tourist
road tourist
User avatar

Joined: Fri Nov 25, 2011 12:54 pm
Posts: 96
Location: Earth, at the bottom of the canyon
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Hey guys I just signed up. I have a question about manialinks. I know how to make the basic xml type, but was wondering if there was any tutorial about adding php to it. I know a bit of php, since im currently learning it. any tutorial or info would be great

Thanks in advance :wink:

_________________
My rig:
|CPU: Intel i5 4670 3.4GHz TB to 3.8GHz, GPU: Gigabyte WindForce x3 GTX 770 4GB GDDR5, RAM: 12GB DDR3 1333MHz, HDD: 1.3TB|


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Fri Nov 25, 2011 7:38 pm 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Mon Sep 05, 2005 8:51 pm
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
The same way as you use php for web page.
Web page: php+html => html page sent to web browser
Manialink page: php+xml => manialink xml page sent to game browser


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Sun Nov 27, 2011 11:24 am 
Offline
road tourist
road tourist
User avatar

Joined: Fri Nov 25, 2011 12:54 pm
Posts: 96
Location: Earth, at the bottom of the canyon
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Ok thanks :) is there any special way of putting it in? an example would really help ;)

_________________
My rig:
|CPU: Intel i5 4670 3.4GHz TB to 3.8GHz, GPU: Gigabyte WindForce x3 GTX 770 4GB GDDR5, RAM: 12GB DDR3 1333MHz, HDD: 1.3TB|


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Fri Dec 02, 2011 6:50 am 
Offline
road tourist
road tourist
User avatar

Joined: Fri Nov 25, 2011 12:54 pm
Posts: 96
Location: Earth, at the bottom of the canyon
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
I really need an example if anyone can do it... thanks ;)

_________________
My rig:
|CPU: Intel i5 4670 3.4GHz TB to 3.8GHz, GPU: Gigabyte WindForce x3 GTX 770 4GB GDDR5, RAM: 12GB DDR3 1333MHz, HDD: 1.3TB|


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Fri Dec 02, 2011 12:49 pm 
Offline
speedy pilot
speedy pilot
User avatar

Joined: Sun Dec 06, 2009 2:30 am
Posts: 304
Location: Bern, CH
Owned TM-games: TMUF, TMS, TMO
Show us what you've tried so far. It's easier to help with specific problems.

Apart from that it's really just putting manialink xml in the php file, instead of html. Depending on your servers config, it won't work with a .xml extension (unlike .html).

_________________
Image
-> serverviewer.svenstucki.ch <-


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Fri Dec 02, 2011 1:00 pm 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Mon Sep 05, 2005 8:51 pm
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
If you really have no idea how to do it, then first :
- learn some basics about php+html web (it sould not difficult to find several tutorials on various sites)
- make some static manialink pages, to learn the specific manialink xml syntax

then, if you still have some specific problem, ask ;)


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Fri Dec 02, 2011 1:56 pm 
Offline
road tourist
road tourist
User avatar

Joined: Fri Nov 25, 2011 12:54 pm
Posts: 96
Location: Earth, at the bottom of the canyon
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
guys I know manialinks without php inside out.. and im learning php too. I know the basics of PHP --> HTML; all I want is an example of HOW to use the php in my manialinks.

Ive made 4 manialinks now, because i love making them. If you want to see them, go to:

dml2, MLCMM, tmfkzmm(although ive stopped making this one).

Thanks again ;)

_________________
My rig:
|CPU: Intel i5 4670 3.4GHz TB to 3.8GHz, GPU: Gigabyte WindForce x3 GTX 770 4GB GDDR5, RAM: 12GB DDR3 1333MHz, HDD: 1.3TB|


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Fri Dec 02, 2011 4:02 pm 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Mon Sep 05, 2005 8:51 pm
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
danodude wrote:
guys I know manialinks without php inside out.. and im learning php too. I know the basics of PHP --> HTML; all I want is an example of HOW to use the php in my manialinks.

It works exactly the same way, just instead of generating html you generate manialink-xml

You should find some real examples (for tm²) there : http://forum.maniaplanet.com/viewtopic.php?f=279&t=7079

Or, if you want for tmf, i have a small very old test page there, which tmu manialink style (so will work on tmf but not tm²). Btw it can make an example to get an idea of the thing...


Top
 Profile  
 
 Post subject: Re: PHP manialinks
PostPosted: Sun Dec 04, 2011 4:10 pm 
Offline
road tourist
road tourist
User avatar

Joined: Fri Nov 25, 2011 12:54 pm
Posts: 96
Location: Earth, at the bottom of the canyon
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Thanks ;) If you could make a simple example for the tmf manialinks i'd really appriciate it!

Thanks again :)

_________________
My rig:
|CPU: Intel i5 4670 3.4GHz TB to 3.8GHz, GPU: Gigabyte WindForce x3 GTX 770 4GB GDDR5, RAM: 12GB DDR3 1333MHz, HDD: 1.3TB|


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group