I am actively working to explore ways to improve the enCore MOO online learning environment. One idea I have had is to find a way to integrate Drupal and enCore.
Here's my idea:
What I am after is when users login to one program they are automatically logged in to the other one. So, for example, if I were to log in to my enCore MOO, there would be a menu bar button BLOG (or something like that) that I could click from within enCore, and it would open a new window that would be the Drupal environment.
Likewise, I could be in Drupal, and if I wanted to jump to the enCore MOO environment there would be a link--click and you're at your home.
Does anyone know if this kind of database collaboration is possible?
Lennie



hmmm
It'd be pretty easy to share the username/pw database, but if you don't want them to log in twice, then you're going to have to work with session-handler cookies and all that. Could get complex really fast.
Drupal and encore should both have ways of checking that a user is logged in. Usually the top of each script has some code (maybe an if statement) that checks to see if they're logged in. You might start by comparing how endore does this with how drupal does it.
I tried doing something like this with TAVI and phpbb and had 0 luck. I finally just made them login twice.
more hmmm
right. that's the experience i've heard from others.
another possibility is to build the moo client into drupal as a module. this raises other complications, but the advantage in this instance would be that, once logged into drupal, drupal would pass their login information through the client automatically when a user selects to use the moo.
Drupal/encore hmm...
I don't know about how a moo client inside drupal would work. I think you would still have to deal with the the dual login issue.
It seems possible to me that you may be able to create this dual login without the problem mentioned by blacklily. Why couldn't the initial registration and then the subsequent login commands do TWO things once you type in your information and click "Login." When you click that login button, encore or drupal performs a small program that enters you into the program. Why couldn't that program perform both logins with one command?
I think it would call on creating a shell database or primary database that the initial registration would be done within. From that shell database user accounts in both programs would be created with one command. I'm no programmer, but this approach seems possible without any fance integration of the two different database and programming languages. Charlie, would you know someone with drupal programming experience who might be able to voice an opinion on this theory? I quiz a few encore folks to see too.
Lennie Irvin
San Antonio College
using one user management system as primary
yes. what you are suggesting is always possible if dealing with 2 open source progams (can't remember if encore is open source).
but the reason I suggested the integration is that the drupal module for encore would then be reponsible for passing the login info rather than creating a program to do both. and drupal can be setup so that the block cols on the left and right dissappear when using a specific module. so when the moo was used, all that would appear from drupal would be a header across the top which could contain basic navigation elements, making it easy for the user to switch back and forth between encore and a drupal blog or forum or any other page in the site. so if you look at cyberdash.com, for example, once entering the moo, the user would only see that header with those horizontal nav links I have setup with encore filling underneath.
now I don't know how easy or hard it is to do this, but you could post to the forums on drupal.org and ask for feedback.