Page 1 of 1

L2J Connect for Drupal

Posted: Sun Oct 09, 2011 4:42 am
by nonom
I'm contributing a new module for Drupal 7. I hope it helps you starting a fresh website for your server. The posibilities are unlimited. Like Facebook Connect building web applications but L2J :D

This module allows users to login on a Drupal website through L2J Server using a L2J account.

In the first release, L2j Connect converts your Drupal Installation in a robust Account Manager, creating and editing accounts.

L2j Connect was aproved & tested today by the Drupal Community and now is under active development.

1. INSTALLATION GUIDE

1) Install Drupal 7.
2) Place the entirety of this directory in sites/all/modules/l2j_connect
3) Edit the settings.php adding the datasources (included in the step 2).
4) Navigate to administer > modules and enable L2j Connect.

2. LOGINSERVER AND GAMESERVER SETTINGS

Each database connection is specified as an array of settings similar to the following:

array(
'driver' => 'mysql',
'database' => 'databasename',
'username' => 'username',
'password' => 'password',
'host' => 'localhost',
'port' => 3306,
'prefix' => 'myprefix_',
'collation' => 'utf8_general_ci',
);

Edit your settings.php file, adding the 'gameserver' and 'loginserver'.

Your datasources now must to look like this:

Code: Select all

 $databases = array (  'default' =>   array (    'default' =>     array (      'database' => 'drupal_database',      'username' => 'username',      'password' => 'password',      'host' => 'localhost',      'port' => '',      'driver' => 'mysql',      'prefix' => '',    ),  ),'loginserver' =>  array (    'default' =>    array (      'database' => 'l2jls',      'username' => 'root',      'password' => '',      'host' => 'localhost',      'port' => '',      'driver' => 'mysql',      'prefix' => '',    )  ),'gameserver' =>  array (    'default' =>     array (      'database' => 'l2jgs',      'username' => 'root',      'password' => '',      'host' => 'localhost',      'port' => '',      'driver' => 'mysql',      'prefix' => '',    )  ),);
3. nonom... WHAT'S THIS?

Is not just an account manager. Is a connector and useful to integrate another third party applications with your Drupal isntallation. This module could work in conjuntion with other third party modules:

An example:

l2jserver --> l2j_connect --> drupal <-- phpBB (connector for phpBB2)

Other funny example:

l2jserver --> l2j_connect --> drupal <--> services <--> rest_server / plist <--> iOs App

The objetive finally is handle the l2jserver accounts through Drupal.

Download Drupal 7
http://drupal.org/project/drupal

Download L2J Connect:
http://drupal.org/project/l2j_connect

L2J Connect Issue Queue:
http://drupal.org/project/issues/1303350

Re: L2J Connect for Drupal

Posted: Thu Oct 13, 2011 12:31 am
by ThePhoenixBird
L2j + Drupal = Community Tool

Sticky!

Re: L2J Connect for Drupal

Posted: Sun Jan 08, 2012 3:34 pm
by Raspoutine
Very nice work, i will give it a try as soon as possible!

Re: L2J Connect for Drupal

Posted: Fri May 18, 2012 3:18 am
by jrafaelca
sorry friend your idea seems excellent to me .... but not because I do not work .. Can you help me ... translator of google

Image

Uploaded with ImageShack.us

Re: L2J Connect for Drupal

Posted: Fri May 18, 2012 5:52 pm
by nonom
jrafaelca, thanks for the feedback,

Please, don't use the unstable version. Use the stable instead, marked as green :mrgreen:

I'm doing several changes under unstable branch. So it's not ready for use, but open to contributions. By the way stable is working 100%.

Are you modifying the code? The error seems that the schemas are mixed, or probably not configured.

The settings.php file must be ready to 3 definitions: Drupal Site, Login and Gameserver. Using the stable7 be sure you have edited your settings file properly, and added the 'gameserver' and 'loginserver' details.

And thanks again, feel free to post here any clue, I hope help you.

Re: L2J Connect for Drupal

Posted: Mon May 21, 2012 6:45 pm
by jrafaelca
brother you could not put an example code of how to modify for example the name of a player clear before starting section in drupal .. a module or something ..

thanks for the reply I will try again ... and I tell you do not have any module that works with joomla 1.5 or 2.5?

Re: L2J Connect for Drupal

Posted: Tue Jun 26, 2012 11:33 am
by powerful0guardian
Uhm, may I ask.. Will it have more functions? Like: online status, castle status, next siege, seven signs, top pvp, top pk?

Re: L2J Connect for Drupal

Posted: Tue Jun 26, 2012 3:41 pm
by nonom
jrafaelca wrote:brother you could not put an example code of how to modify for example the name of a player clear before starting section in drupal .. a module or something ..
Yes, but not much ready for live.
jrafaelca wrote:thanks for the reply I will try again ... and I tell you do not have any module that works with joomla 1.5 or 2.5?
I haven't any Joomla stuff but check that: viewtopic.php?f=94&t=24070
powerful0guardian wrote:Uhm, may I ask.. Will it have more functions? Like: online status, castle status, next siege, seven signs, top pvp, top pk?
It's a Account manager. At the moment it's able to handle the account creation/editing.

Is not related but could be done like submodules.

Re: L2J Connect for Drupal

Posted: Wed Jun 27, 2012 1:53 pm
by powerful0guardian
okey, thanks for answer

Re: L2J Connect for Drupal

Posted: Thu Nov 14, 2013 9:06 pm
by KyriakosGR
Thanks man.