PDA

View Full Version : Passing User Data


ptmuldoon
10-30-2007, 12:54 PM
I'm not sure if I should ask here or on the drupal forums, but.........

Is it possible to pass the userdata to a non drupal page? I'd like to sync the login of the user into a non-drupal page.

I've been using e107 the past year, and learned it was pretty easy to pass the user data. Does the same exist for vdrupal?

Thanks

elmuerte
11-04-2007, 08:09 AM
what exactly are you trying to do?
you can easily write a drupal module to perform additional actions on certain events, and you can also write a module to provide data through an XMLRPC interface.

ptmuldoon
11-09-2007, 07:45 AM
I just want to pass the username and password to another, non-drupal page (game) to enable the user to be logged into both at the same time.

elmuerte
11-11-2007, 08:23 AM
for that you can write a drupal module that implements the hook hook_user (http://api.drupal.org/api/function/hook_user/5) and responds to the events "login" and "logout". (alternatively you can write a vBulletin plugin that does similar things).

ptmuldoon
11-12-2007, 03:55 PM
ok, thanks. I'm a little green at php, but I think I follow what to do.

Essentially, I think I need to add code to include the core.php file in my non-drupal pages. Than, I can use the function hook_user. And if the user is logged in (ie.. $op == 'login'), than I can create variables for the username and password to forward along.

That sound right?