The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add User PHP Script
Hello eveyrone,
I'm trying add users programmatically to my forum. I need a simple example on how to do this using PHP or .NET, but can't seem to find anything for version 4.2. Anyone have a script that does this? Everything can be hand coded.. just want to call a page and have a new login created, and optionally have a person added to a specific permission. Thank you in advance, Alex |
#2
|
|||
|
|||
If you're including vbulletin's global.php (or you don't mind including it), then you can use the user datamanager. If you look at admincp/user.php around line 979 (the section that starts with if ($_POST['do'] == 'update')), then you can see how it's done when you add a user via the admincp.
If you don't want to use the vbulletin code you need to figure out what to write to the database. I think you might just have to insert a row in the user table, get the userid of the inserted row, then add rows to the userfield and usertextfield tables. But to make sure you're doing everything you need to do you'd have to study the user datamanager (in inlcudes/class_dm_user.php). I suppose you could also use a test forum and dump the database, add a user then dump it again and see what's changed. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|