TM-FORUM

The TrackMania universal forum ^_^
It is currently Sun Sep 21, 2014 3:05 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 06, 2009 5:26 pm 
Offline
cyclist
cyclist

Joined: Mon Dec 29, 2008 1:25 pm
Posts: 49
Owned TM-games: TMO,TMUF
Manialink(s): manialib maniapub maniateam
Edit: November 15th, 2010
ManiaLib 1.0 beta was release, check post #14
/Edit


Hello everyone,

My mission at Nadeo was to develop the ManiaTeam game mode. I therefore developped a set of small but pratical libraries to help creating and maintaining Manialinks. In the end, we decided with the team that the project should be given back to the community as an open source project. There was born ManiaLib, a lighweight and simple developpement framework, written in PHP, for the creation of Manialinks. Even if it comes with basic modules, it isn't an all inclusive solution. It is a set of "building bricks" for PHP developpers.

I invite you all Manialink creators to use this framework. Your precious feedback will help the project to improve.

It is hosted on Google Code, where you can get the source code and some documentation:
Quote:

I've already written tutorials about the core APIs so that you get rapidly confortable with the basics of ManiaLib. These are the available APIs:

    GUI : classes for creating Manialink graphical elements
    DatabaseEngine : database abstraction layer
    RequestEngine : handling of GET variables and referers, creation of links and redirections
    SessionEngine : manipulation des variables de session
    LangEngine : internationalization
    MultipageList : page numbering helper

Some basic modules are also provided to help developpers making other modules:

    Admin: secure authentication to make admin panels
    Posts: generic content management
    Auto Connect: forced user identification

The ideal working condition is to use an IDE (Integrated Dev Environment). I personnaly use PHPEclipse plugin for Eclipse, which provides code assist, code completion etc. For those of you who use plain text editors, I made a "cheat sheet": a wallpaper with a reminder of all the core classes with their public methods and properties.
Quote:

There are two way to get the source code. You can either download the latest release from the project's website - this is the simplier - or you can checkout the latest revision from the SVN repository - if you now SVN, this is the ideal, checkout from trunk/manialib-example.

Quote:
You can see the demo Manialink here : ManiaLib


Don't hesitate to post any feedback in this thread.

Max :lovetm


Last edited by gou1 on Mon Nov 15, 2010 6:59 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 06, 2009 5:59 pm 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Wed Feb 25, 2009 7:43 pm
Posts: 286
Location: Brabant, Netherlands
Owned TM-games: TMU(F), TMN(F), TM2
Nice one! :1010

_________________
Dutch ManiaPlanet Moderator
Founder and developer of the MLEPP Project
Image
Image


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 06, 2009 8:00 pm 
Offline
speedy pilot
speedy pilot

Joined: Sat Mar 10, 2007 12:33 pm
Posts: 375
Location: finland
manialinks are difficult but this looks more..................


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 06, 2009 8:06 pm 
Offline
speedy pilot
speedy pilot
User avatar

Joined: Sun Aug 27, 2006 9:12 pm
Posts: 387
Location: GER
Owned TM-games: TMN,TMNF,TMUF
Manialink(s): creative
that looks promising, well done :lovetm

_________________
Image


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 06, 2009 8:18 pm 
Offline
cyclist
cyclist

Joined: Mon Dec 29, 2008 1:25 pm
Posts: 49
Owned TM-games: TMO,TMUF
Manialink(s): manialib maniapub maniateam
jouko100 wrote:
manialinks are difficult but this looks more..................


Obviously this is not a tool for Manialinks beginners. It is meant for developpers who already know Manialinks and PHP and who want to save time and effort on development.


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 06, 2009 8:51 pm 
Offline
speedy pilot
speedy pilot
User avatar

Joined: Fri Apr 18, 2008 3:35 am
Posts: 339
Location: Lancashire, England
Owned TM-games: TMNF - TMUF
Manialink(s): Generator
gou1 wrote:
jouko100 wrote:
manialinks are difficult but this looks more..................


Obviously this is not a tool for Manialinks beginners. It is meant for developpers who already know Manialinks and PHP and who want to save time and effort on development.


So why do you recommend an IDE? (just curious thats all, if it's not for beginners..)
Has it got mega-complicated API or something?

Well done, btw! :thumbsup:

_________________
Customize your virtual world to the max! >> http://www.virtualcustoms.net
3D Models, 2D skins & horns on my Manialink >> Generator


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Tue Jul 07, 2009 11:39 am 
Offline
cyclist
cyclist

Joined: Mon Dec 29, 2008 1:25 pm
Posts: 49
Owned TM-games: TMO,TMUF
Manialink(s): manialib maniapub maniateam
Generator wrote:
So why do you recommend an IDE? (just curious thats all, if it's not for beginners..)
Has it got mega-complicated API or something?


Actually the APIs are really simple. When I say it is not for beginner, I mean that someone who never wrote a line of code may want to start with learning XML, then PHP. You still have to know what a class or an object are for instance, which may not be obvious at first.

About the IDE, I recommend it because it has the same goal as a framework : make you save a great deal of time and effort by providing useful tools. For example: PHP parser, which tells you in real time when you forgot a semi-colon or when you type the wrong variable name, code completion, code navigation (CTRL+click on a function or a class opens its declaration), debugging and much more. It is for sure more complicated to install and configure and learn, but the time you take to do that will be soon enough saved back.


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Wed Jul 08, 2009 1:54 am 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
Great work gou1!!!

I will take a look, if i can help call me, i have much experience with ingame manialinks creations.

Greetings.


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Sat Jul 25, 2009 1:01 pm 
Offline
happy cruiser
happy cruiser
User avatar

Joined: Thu Dec 04, 2008 7:06 pm
Posts: 154
Location: Xanthi,Greece
Owned TM-games: TMUF,TMNF,TMN
Manialink(s): funteam
Hi, very nice work :thumbsup:
Have you got any working examble to start "playing" with?

Thanks Ap0VTx

:thumbsup: :lovetm

_________________
Do you wanna be a journalist?
Contact me with PM!
Image


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 27, 2009 1:29 pm 
Offline
cyclist
cyclist

Joined: Mon Dec 29, 2008 1:25 pm
Posts: 49
Owned TM-games: TMO,TMUF
Manialink(s): manialib maniapub maniateam
apovtx wrote:
Have you got any working examble to start "playing" with?


The archive actually is an application example.


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Mon Jul 27, 2009 1:59 pm 
Offline
happy cruiser
happy cruiser
User avatar

Joined: Thu Dec 04, 2008 7:06 pm
Posts: 154
Location: Xanthi,Greece
Owned TM-games: TMUF,TMNF,TMN
Manialink(s): funteam
Yes thank you i finally understood how it works some hours after the post :oops:

I have already started to turn my team's manialink funteam with the script (offline yet!)

:thumbsup: :lovetm Apovtx



*EDIT*:Is there a way to change the "sizen" or the "posn" to "size" and "pos"? (I fount it finally) :D

_________________
Do you wanna be a journalist?
Contact me with PM!
Image


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Tue Jul 28, 2009 4:18 pm 
Offline
cyclist
cyclist

Joined: Mon Dec 29, 2008 1:25 pm
Posts: 49
Owned TM-games: TMO,TMUF
Manialink(s): manialib maniapub maniateam
apovtx wrote:
]Is there a way to change the "sizen" or the "posn" to "size" and "pos"? (I fount it finally) :D


There's no built-in feature to do that. I strongly recommend using posn and sizen since it's the newest positioning system.

Edit: nice article about that: http://funtrackers.bplaced.net/forum/sh ... 3#posarten

You could hack the code of the gui api, but I guess it would be a bit tricky to get all things working well.


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Manialink
PostPosted: Tue Jul 28, 2009 4:58 pm 
Offline
happy cruiser
happy cruiser
User avatar

Joined: Thu Dec 04, 2008 7:06 pm
Posts: 154
Location: Xanthi,Greece
Owned TM-games: TMUF,TMNF,TMN
Manialink(s): funteam
Thank you for your reply.

I found how to change but then a realize that all the gui api had to change as well so i turned it back to original. I know the "...n" system but the whole manialink is written in the other form so it would be more complicated to change it.

Anyway i will re-write the whole manialink with the manialib

Thanks
:thumbsup: :lovetm Apovtx

_________________
Do you wanna be a journalist?
Contact me with PM!
Image


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Mania
PostPosted: Mon Nov 15, 2010 6:58 pm 
Offline
cyclist
cyclist

Joined: Mon Dec 29, 2008 1:25 pm
Posts: 49
Owned TM-games: TMO,TMUF
Manialink(s): manialib maniapub maniateam
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 !


Top
 Profile  
 
 Post subject: Re: ManiaLib, a lightweight & simple PHP framework for Mania
PostPosted: Mon Nov 15, 2010 7:09 pm 
Offline
TM-Patrol
TM-Patrol

Joined: Thu Jul 10, 2008 10:48 pm
Posts: 1612
Location: London, UK
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Nice stuff! ...a bit over my head most of it but looks very handy :thumbsup:

Thx for sharing :)

_________________
Image
dr.team | Electronic Tournaments | www.disharmony.eu | maniaplanet


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group