Manialinks Forever

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

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: Manialinks Forever

Post by jamie_macdonald » 25 Mar 2009 11:31

Moriddin wrote:These are manialink problems again which I can't test here :/
You have to test a bit I gues.


One thing I can tell is that the manialink tag doesn't have a addplayerid parameter :P
i have tried with and withought .. i am trying variations to ... i just cant type random stuff and hope i get there in the end can i? this is why i asked here in the first place to save having to type every available permiatation when someone who has used this can save a week of anguish because they have experience. someone must know ...

I'll keep trying jsut let me know if you think of anything else moriddin .. a great help so far even if i havent come far lol

EDIT: you edited after i quoted :lol: ... i was continuing on someone elses discussion in this thread ... as they were discussing adding player info's already its hardly offtopic? or is it? :?
(i would go ask the questions in a seperate thread but zooz will jsut do me for spamming hehe)

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: Manialinks Forever

Post by w1lla » 25 Mar 2009 13:35

Code: Select all

<?php
echo '  <?xml version="1.0" encoding="utf-8" ?> 
<manialink>
  <timeout>0</timeout> 
  <type>default</type> 
<frame>
<frame posn="-64 48 1">
  <quad posn="0 0 1" sizen="128 10" halign="left" valign="top" image="http://tmnfvenray.nl/lottery/images/header.png" /> 
  <quad posn="0 -10 1" sizen="128 10" halign="left" valign="top" image="http://tmnfvenray.nl/lottery/images/menu.png" /> 
  <quad posn="5 -13 2" sizen="17 4" halign="left" valign="top" addplayerid="1" image="http://tmnfvenray.nl/lottery/buttons/donate1.png" imagefocus="http://tmnfvenray.nl/lottery/buttons/donate2.png" manialink="mlottery:buy" /> 
  <quad posn="23 -13 2" sizen="17 4" halign="left" valign="top" image="http://tmnfvenray.nl/lottery/buttons/contact1.png" imagefocus="http://tmnfvenray.nl/lottery/buttons/contact2.png" manialink="mlottery:Contact" /> 
  <quad posn="0 -20 1" sizen="128 70" halign="left" valign="top" image="http://tmnfvenray.nl/lottery/images/bg.png" /> 
  <quad posn="0 -90 1" sizen="128 6" halign="left" valign="top" image="http://tmnfvenray.nl/lottery/images/footer.png" /> 
  </frame>
  </frame>
  </manialink>';

Code: Select all

<?php
include('config.php');
echo <<<EOT
<?xml version="1.0" encoding="utf-8"?>
<manialink>
 <timeout>0</timeout>
 <type>default</type>
 <frame>
  <quad  sizen="122 80" posn="-61 41 0" halign="left" valign="top" style="Bgs1InRace" substyle="BgWindow2"/>
  <quad  sizen="120 5"  posn="-60 40 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgTitle2"/>
  <label sizen="118 3"  posn="-58 37 2" halign="left" valign="center2" style="TextTitle2" text="RaffleWinner"/>
  <quad style="Icons128x128_1" substyle="BackFocusable" posn="-59 -38 1" sizen="10 10" manialink="mlottery"/>
EOT;
$query = "INSERT INTO `raffles` (`id`, `login`, `month`) VALUES ('', '".$_GET['playerlogin']."','".date('m')."')";
if(mysql_query($query)) {
echo '  <label sizen="80 20"  posn="0 0 0" halign="center" style="TextStaticMedium" text="You have bought a ticket for the ManiaLottery"/>';
} else {
echo '  <label sizen="80 20"  posn="0 0 0" halign="center" style="TextStaticMedium" text="Error..."/>';
}
echo <<<EOT

 </frame>
</manialink>
EOT;
?>
These might help you..... these work so be my guest.....

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: Manialinks Forever

Post by jamie_macdonald » 25 Mar 2009 20:21

ok thx alot willa this explains some of the stuff i was asking for (especially if its a working example).

So you can echo the entire manialink code, and aslo the // in the url will work fine too (i presumed it maybe be a problem commenting out, well least was worth eliminating as a problem). and also the answer is yes @ needing to use the php prefix/suffix ... once i have worked this out i will edit my first post with the answers i was looking for others referral.

Thx alot i will try some of these additions later ... as for the include i notice all url are in that .. is that co-incidence i gather?

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: Manialinks Forever

Post by w1lla » 25 Mar 2009 20:32

well yes the url includes need to be referred to otherwise the php functions will not occur.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

User avatar
BigAction
pedestrian
pedestrian
Posts: 14
Joined: 07 Oct 2009 22:58
Owned TM-games: TMU,TMNF,TMDS
Contact:

Re: Manialinks Forever

Post by BigAction » 10 Oct 2009 20:12

[manialink=www.fileden.com/files/2009/4/25/2417211/index.xml]Forever World[/manialink]

This surrounded by maniacodes

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests