Page 1 of 2

ManiaLib 1.0 beta

Posted: 15 Nov 2010, 19:49
by gouxim
Hi,

Today we are releasing ManiaLib 1.0 beta !

Why a beta? While the code is stable, the documentation is still light, therefore the package is better made for experienced developers.

You just need to download the package, unzip it, and follow the instructions of the Readme.

To get the latest version: http://manialib.com

To see the API reference: http://api.manialib.com

To see the demo manialink: ManiaLib

Have fun, and don't hesitate to give us your feedback !

Re: ManiaLib 1.0 beta

Posted: 15 Nov 2010, 22:35
by Knutselmaaster
Thank you!
I have been told that now it is possible to sell tags directly on a ManiaLink, that is really a big advantage for my tagshop.
Instead of using a messaging system and asking the customer to pay me first, before they receive the tag they will be able to choose one and buy it right away. :D

Re: ManiaLib 1.0 beta

Posted: 16 Nov 2010, 03:09
by fastforza
Fantastic guys! Will take a look at this as soon as possible! 8-)

Re: ManiaLib 1.0 beta

Posted: 03 Mar 2011, 18:57
by adrimania
Hey guys,

I'm coding a little manialink (first with WampServer :mrgreen: ), and I can't find how to use addplayerid ?

I watched http://api.manialib.com/ManiaLib/GUIToo ... ddPlayerId and http://api.manialib.com/__filesource/fs ... .html#a297 but still can't find :cry:

OOP is very abstract for me, so i apologize for my question which i'm sure is very simple :)

Thanks.

Re: ManiaLib 1.0 beta

Posted: 09 Mar 2011, 17:51
by gouxim
Hey,

You can use it like that:

Code: Select all

$ui = new Label();
$ui->setText('Some label with a link');
$ui->setManialink('http://mymanialink.com/page');
$ui->addPlayerId();
$ui->save();
Hope it helps

Re: ManiaLib 1.0 beta

Posted: 11 Mar 2011, 19:19
by adrimania
Yeah, thanks, I had forgotten to look at the cheat-sheet :D

Re: ManiaLib 1.0 beta

Posted: 11 Mar 2011, 19:57
by gouxim
If it's not already the case, you should consider using an IDE. I strongly suggest Eclipse PDT which is IMO the best free php IDE (well, even the best PHP IDE...). http://www.eclipse.org/pdt/

One of the most useful feature is the autocompletion.

Let's say you write:

Code: Select all

$ui = new Label();
$ui->
If your cursor is just after the ">", you can press CTRL-SPACE and you'll have all the availble methods for the Label class. Pretty damn usefull, especially when working with a full OO architecture.

And it also has real-time PHP parsing that helps you keep track of stupid errors like a forgotten ";"...

Re: ManiaLib 1.0 beta

Posted: 11 Mar 2011, 20:22
by Knutselmaaster
Aseco gave me the link to that program, it is a very nice and complete program, but a bit overwhelming too for a semi noob like me.
I still don't understand most of the functionality.

Re: ManiaLib 1.0 beta

Posted: 11 Mar 2011, 20:41
by gouxim
I agree with you. But believe me, you will be glad that you did in a while.

It's like going from Paint to Photoshop :D

Re: ManiaLib 1.0 beta

Posted: 11 Mar 2011, 20:43
by tcq
Eclipse is really awesome, gives you stuff like auto formating, usage of test units, a nice debugger and i guess the same counts if you use it with php (used it a lot for java).
And asmentioned, the autocomplete is one of the best things for fast programming.