PDA

View Full Version : Creating new vB users


Reevo
06-16-2005, 12:21 PM
Okay, back to creating new vB users from an external app.

My initial tests proved successful, but these were carried out in a standalone script that simply created a new user. After attempting to integrate this functionality into the site I'm working on, which is all OO based, I started getting a load of errors from the vB include files, which seem to be related to the fact that I'm trying to call vB functions from a non-vB class:

Fatal error: Call to a member function query_first() on a non-object in /testvb/includes/functions_databuild.htm on line 1267

Fatal error: Call to a member function unlock_tables() on a non-object in /testvb/includes/functions.htm on line 4168

Does anyone have a working example of using the user DM in a non-vB class?

Cheers!

Paul.

Andreas
06-16-2005, 12:26 PM
The Datamanagers need a vB_Registry and vB_Database object.
Many functions expect the vB_registry object to be available as $vbulletin, some also expect the vB_Database object to be avialable as $db.