This project is not covered by Drupal’s security advisory policy.
This module is a simple Second Life framework, allowing objects inside Second Life, written in LSL script, to interact with applications on your Drupal web site, and do neat things.
To discuss this module, and other aspects of Drupal and Second Life integration, you can subscribe to this group.
This module requires Drupal 5.x, and PHP 5.1.x.
To install this module, Upload or copy the the entire secondlife directory and all its contents to your modules directory.
To enable this module go to Administer -> Site Building -> Modules, and enable second life.
Developing for Second Life
A good tutorial on LSL can be found in this Dr Dobbs Journal article using the Linden Scripting Language.
The Second Life framework Drupal module interfaces with Second Life using the llHTTPRequest() function.
See details here for llHTTPRequest.
In order to write a Drupal application that interfaces with Second Life, you need to create a new module. See the sltest module in the samples directory for an example.
The app is the application name, and is also the module name. The cmd is a command that your module/app must handle. The args vary from one cmd to the other.
The $sl object contains the Second Life info you need to know, such as region, location in the grid, user name, user key, ...etc. The $args is an array that is passed from the LSL script to you.
The following setting options are available:
A configuration setting is available to turn on timer tracking of all request/response pairs from the time it hits the second life framework, until the response is about to be sent back. This allows the client side to determine which queries are slow. This info is also logged in the debugging output.
You can define a path to a file to have debugging information written to for each request/response. The path has to be writable by your web server.
A test client emulator script is provided, called slclient.php. It allows you to do some of the development without the need to be running the Second Life client. It is designed to run from the command line, and takes two arguments: the server name, and the handler.
$ php slclient.php localhost /secondlife
It can be easily adapted to run from the web.
To use it, modify the app and cmd array near the bottom to the application you are developing. The app will be your module name, and /secondlife should remain the same.
- Limit IP address range to accept requests from to Linden Labs servers.
- Map Second Life users to Drupal users.
The author can also be contacted for paid customizations of this and other modules.
- Maintenance status: Unknown
- Development status: Unknown
- Module categories: Developer, Third-party Integration
- Reported installs: 2 sites currently report using this module. View usage statistics.
- Downloads: 2,733
- Last modified: December 1, 2014
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.