PHP manialink help

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

PHP manialink help

Post 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
Last edited by BigBang1112 on 27 Jul 2015, 17:18, edited 1 time in total.
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: PHP manialink help

Post 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]
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    BigBang1112
    Posts: 388
    Joined: 20 Jul 2015, 12:44
    Location: Czech Republic
    Contact:

    Re: PHP manialink help

    Post by BigBang1112 »

    I just tried make php file with "echoing" the xml file lol.

    Thanks I'll try that :)
    User avatar
    BigBang1112
    Posts: 388
    Joined: 20 Jul 2015, 12:44
    Location: Czech Republic
    Contact:

    Re: PHP manialink help

    Post 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..
    User avatar
    BigBang1112
    Posts: 388
    Joined: 20 Jul 2015, 12:44
    Location: Czech Republic
    Contact:

    Re: PHP manialink help

    Post 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!
    Post Reply

    Return to “ManiaLink”

    Who is online

    Users browsing this forum: No registered users and 0 guests