Page 1 of 1

PHP manialink help

Posted: 27 Jul 2015, 16:15
by BigBang1112
I know I'm a little stupid, and just can't solve this by myself, but I really need a help with this.

Because I'm working on my manialink a week now and I already did a design of it, I need to know, how to convert it into PHP system. Do I need some stuff to download or I can just rename the file and do

Code: Select all

<?php echo '(manialink)' ?>
I have already webhost for it and some little knowledge about PHP.

I'm kinda lost with this, because I didn't found any helpful answers. Mabye it's something with the Manialib or what.

Thanks for any answers! :)

bigbang1112

Re: PHP manialink help

Posted: 27 Jul 2015, 17:08
by steeffeen
if you only want to print the manialink-xml in your php script, you could as well just put an xml file on the server
the php-way should work though, did you even try it?

btw: the manialink shortcut doesn't work, you have to use [maniaplanet]

Re: PHP manialink help

Posted: 27 Jul 2015, 17:12
by BigBang1112
I just tried make php file with "echoing" the xml file lol.

Thanks I'll try that :)

Re: PHP manialink help

Posted: 27 Jul 2015, 17:30
by BigBang1112
Can I have a little example please?

I tried put

Code: Select all

<?php echo 'whole file' ?>

Code: Select all

<label posn="10 -10 0" sizen="180 15" text="echo $_GET["page"]" style="TextRaceMessageBig"/>

Code: Select all

<label posn="10 -10 0" sizen="180 15" text="<?php echo  $_GET["page"] ?>" style="TextRaceMessageBig"/>
Each told me an error when accesing the manialink

Sorry, I'm really lost in this..

Re: PHP manialink help

Posted: 27 Jul 2015, 19:36
by BigBang1112
Oh yes! I figured it out.

There is a solution:

Code: Select all

<?php (some php stuff) echo '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>'; ?>
(your manialink code)
<?php (some php stuff) ?>
* File must be .php

Still thanks for help!