Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Feb 2015, 19:24
cnnx cnnx is offline
 
Join Date: Feb 2015
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,

Last edited by cnnx; 12 Feb 2015 at 00:42.
Reply With Quote
  #2  
Old 12 Feb 2015, 04:09
Dead Eddie's Avatar
Dead Eddie Dead Eddie is online now
 
Join Date: Apr 2004
Yes. You'd want to call the vB5 API and have it generate a new user record when your user registers.
Reply With Quote
  #3  
Old 12 Feb 2015, 13:21
cnnx cnnx is offline
 
Join Date: Feb 2015
Is there a sample template I can use to get started with for my website integration? Is it php code?
Reply With Quote
  #4  
Old 13 Feb 2015, 00:44
EvanAbagail EvanAbagail is offline
 
Join Date: Apr 2014
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
Reply With Quote
  #5  
Old 13 Feb 2015, 01:08
cnnx cnnx is offline
 
Join Date: Feb 2015
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.. ?
Reply With Quote
  #6  
Old 13 Feb 2015, 18:25
Dead Eddie's Avatar
Dead Eddie Dead Eddie is online now
 
Join Date: Apr 2004
Originally Posted by cnnx View Post
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.. ?
Vb5 doesn't use the data managers, so that's not going to work.

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).
Reply With Quote
  #7  
Old 20 Feb 2015, 17:15
cnnx cnnx is offline
 
Join Date: Feb 2015
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?
Reply With Quote
  #8  
Old 24 Feb 2015, 18:59
Dead Eddie's Avatar
Dead Eddie Dead Eddie is online now
 
Join Date: Apr 2004
Originally Posted by cnnx View Post
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?
This is something that I can possibly look at next week.

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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:34.

Layout Options | Width: Wide Color: