L2J Connect for Drupal

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

L2J Connect for Drupal

Post by nonom » Sun Oct 09, 2011 4:42 am

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
Last edited by nonom on Sun Jan 22, 2012 3:24 am, edited 1 time in total.
Image
"There are three kinds of people in this world, those who can count and those who can't"

User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Re: L2J Connect for Drupal

Post by ThePhoenixBird » Thu Oct 13, 2011 12:31 am

L2j + Drupal = Community Tool

Sticky!

Raspoutine
Posts: 27
Joined: Sun Jan 30, 2011 3:18 pm

Re: L2J Connect for Drupal

Post by Raspoutine » Sun Jan 08, 2012 3:34 pm

Very nice work, i will give it a try as soon as possible!

jrafaelca
Posts: 4
Joined: Fri May 18, 2012 2:56 am

Re: L2J Connect for Drupal

Post by jrafaelca » Fri May 18, 2012 3:18 am

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

User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: L2J Connect for Drupal

Post by nonom » Fri May 18, 2012 5:52 pm

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.
Image
"There are three kinds of people in this world, those who can count and those who can't"

jrafaelca
Posts: 4
Joined: Fri May 18, 2012 2:56 am

Re: L2J Connect for Drupal

Post by jrafaelca » Mon May 21, 2012 6:45 pm

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?

powerful0guardian
Posts: 63
Joined: Tue Jun 26, 2012 11:16 am

Re: L2J Connect for Drupal

Post by powerful0guardian » Tue Jun 26, 2012 11:33 am

Uhm, may I ask.. Will it have more functions? Like: online status, castle status, next siege, seven signs, top pvp, top pk?

User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: L2J Connect for Drupal

Post by nonom » Tue Jun 26, 2012 3:41 pm

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.
Image
"There are three kinds of people in this world, those who can count and those who can't"

powerful0guardian
Posts: 63
Joined: Tue Jun 26, 2012 11:16 am

Re: L2J Connect for Drupal

Post by powerful0guardian » Wed Jun 27, 2012 1:53 pm

okey, thanks for answer

KyriakosGR
Posts: 1
Joined: Wed Nov 13, 2013 9:27 pm

Re: L2J Connect for Drupal

Post by KyriakosGR » Thu Nov 14, 2013 9:06 pm

Thanks man.

Post Reply