Problem with manialink via one .xml file

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
Harrison_rus
Translator
Translator
Posts: 243
Joined: 03 Nov 2011, 17:16
Location: Russia

Problem with manialink via one .xml file

Post by Harrison_rus »

Hi all. I have big problem with my manialink. It is not work long time ago, because I can't made it from one .xml file.
My manialink have buttons for downloading a maps, but for downloading I use other manialink with maniacode...
It is possible, that in my manialink contains all code for buttons, backgrounds etc, and contains a maniacode for downloading a map?
Now my manialink code looks this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<manialink version="1">
<timeout>0</timeout>
<music data="https://dl.dropbox.com/s/53okwdy0ge1gyx0/TMSunRise.ogg"/>
<!--Backround-->
<quad sizen="320 180" valign="center" halign="center" image="https://dl.dropbox.com/s/20l0duxiaf12k2c/Background.jpg"/>
<!--MainBar-->
<quad posn = "0 60 1" sizen="320 10" valign="center" halign="center" image=""/>
<!--button next-->
<!--Maps-->
<!--download map longcanyon-->
<quad posn = "12 -26 1" sizen="54 36" image="https://dl.dropbox.com/s/3rj8koasw8pdbje/LongCanyon1.jpg" imagefocus="https://dl.dropbox.com/s/71ru63xj5kufauw/LongCanyon2.jpg" manialink="installLongCanyon"/>
</manialink>
Where is installLongCanyon is other manialink...

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<maniacode noconfirmation="1">
<install_map>
<name>LongCanyon</name>
<url>http://tm.mania-exchange.com/tracks/download/22718</url>
</install_map>
</maniacode>
How I may connect both manialinks in one .xml file? Just I don't want pay for my manialink over 3000 planets every month.
Image
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Problem with manialink via one .xml file

Post by Dommy »

Source code from "DomExp?t=HungerGames" manialink:

Code: Select all

<?php
$title = $_GET['t'];
header('Content-Type: text/xml');
echo '
<maniacode noconfirmation="1">
	<install_pack>
		<name>'.$title.'</name>
		<file>Packs/'.$title.'.Title.Pack.Gbx</file>
		<url>
			http://dominolink.aq.pl/'.$title.'/'.$title.'.Title.Pack.Gbx
		</url>
	</install_pack>
</maniacode>
';
?>
Where modifing HungerGames to Invasion or Dominis downloads this title.
Change maniacode a bit and upload it on webspace (dont use dropbox, its not supporting php).
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest