PHP manialinks

If you have anything to say - or advice to give - on the creation or publishing of ManiaLinks, here is the place to do it!

Moderator: TM-Patrol

Post Reply
User avatar
danodude
road tourist
road tourist
Posts: 96
Joined: 25 Nov 2011 09:54
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Location: Earth, at the bottom of the canyon
Contact:

PHP manialinks

Post by danodude » 25 Nov 2011 10:47

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|

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: PHP manialinks

Post by Slig » 25 Nov 2011 16:38

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

User avatar
danodude
road tourist
road tourist
Posts: 96
Joined: 25 Nov 2011 09:54
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Location: Earth, at the bottom of the canyon
Contact:

Re: PHP manialinks

Post by danodude » 27 Nov 2011 08:24

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|

User avatar
danodude
road tourist
road tourist
Posts: 96
Joined: 25 Nov 2011 09:54
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Location: Earth, at the bottom of the canyon
Contact:

Re: PHP manialinks

Post by danodude » 02 Dec 2011 03:50

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|

User avatar
svens
speedy pilot
speedy pilot
Posts: 304
Joined: 05 Dec 2009 23:30
Owned TM-games: TMUF, TMS, TMO
Location: Bern, CH
Contact:

Re: PHP manialinks

Post by svens » 02 Dec 2011 09:49

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).

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: PHP manialinks

Post by Slig » 02 Dec 2011 10:00

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 ;)

User avatar
danodude
road tourist
road tourist
Posts: 96
Joined: 25 Nov 2011 09:54
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Location: Earth, at the bottom of the canyon
Contact:

Re: PHP manialinks

Post by danodude » 02 Dec 2011 10:56

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|

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: PHP manialinks

Post by Slig » 02 Dec 2011 13:02

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...

User avatar
danodude
road tourist
road tourist
Posts: 96
Joined: 25 Nov 2011 09:54
Owned TM-games: All except Sunrise
Manialink(s): none atm :)
Location: Earth, at the bottom of the canyon
Contact:

Re: PHP manialinks

Post by danodude » 04 Dec 2011 13:10

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|

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests