Generic Maniacode/PHP Maniacode

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
highway camper
highway camper
Posts: 1
Joined: 03 Aug 2011 23:58
Owned TM-games: TMU
Manialink(s): Destyno

Generic Maniacode/PHP Maniacode

Post by gabrielcf55 » 13 Dec 2011 03:32

Hey people!

I'm making a manialink with a lot of stuff, but i lost a lot of time registering all maniacode files in my player page...

I would like to know hot to make a maniacode page with php.

My code is:

Code: Select all

<?xml version='1.0' encoding='utf-8' ?>
<maniacode noconfirmation="1">
   <name>Skin Name</name>
   <url>http://Skin URL</url>
   <file>Skin location</file>
How to transform it to a PHP file? Something like this:

Code: Select all

$parameter = $_GET['parameter'];
echo "<?xml version='1.0' encoding='utf-8' ?>";
echo " <maniacode noconfirmation="1">";
echo " <install_skin>";
echo "    <name>Airhorn</name>";
echo "    <url>" . $parameter . "</url>";
echo "    <file>Skins/Horns/Airhorn.ogg</file>";
echo " </install_skin>";
echo " </maniacode>";
Anyone can help me?

Post Reply