The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB5 Integration into my website
When a new user registers on my website an entry is added to the users table in the mysql database, if the same user wants to use the forum he has to re-register again. Is there a way so that when they register in my website a user entry is also created in the VB5 mysql database table and they can use the forum with the same username as the website without registering on the forum?
Thanks, |
#2
|
||||
|
||||
Yes. You'd want to call the vB5 API and have it generate a new user record when your user registers.
|
#3
|
|||
|
|||
Is there a sample template I can use to get started with for my website integration? Is it php code?
|
#4
|
|||
|
|||
It's not just a plug-in-play thing. Try searching as there are already some threads regarding implementing the VB5 login / registration system(s) into your web system.
Kindly, Evan Abagail |
#5
|
|||
|
|||
So I found this on the forum, which I modified a bit for VB5.
define('VB_AREA', 'External'); define('SKIP_SESSIONCREATE', 1); define('SKIP_USERINFO', 1); define('CWD', 'forum'); require_once(CWD . '/core/includes/init.php'); $newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); $newuser->set('username', '$user'); $newuser->set('email', '$email'); $newuser->set('password', '$pass'); $newuser->set('usergroupid', 2); $user,$email,$pass are my variables on my website for when a new user signs up, what do I need to modify to make it vb5 compatible? as this was for vb3/vb4.. ? |
#6
|
||||
|
||||
Quote:
I'm doing something similar for somebody as a POC, so I'll be posting sample code. Otherwise, you'll have to look into how to actually call the API (either internally or externally, depending on your need). |
#7
|
|||
|
|||
Will you be posting the code soon? I'd really like to get this integration done on my website, users are asking if they need to register again to vbulletin after they register on my site. I'm telling them its being worked on. If you can't post the code can you provide documentation or links to get me started?
|
#8
|
||||
|
||||
Quote:
Since saying I'd look at it, I've had a funeral on the other side of the country, the flu for almost a week, and a non-stop visit from family from the other side of the country. Free time hasn't been a luxury I've had. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|