Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 11-04-2006, 06:42 AM
shanavazea shanavazea is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Using our own user database

Hi,
We have installed vbulletin on our web site. We already have a registration form for our customers and a database containing there details and password. We would like to use that as the user database for allowing access to the bulletin, so that all our registered users can gain access to the bulletin. Can we do that?
Or can I insert a row in to the vbulletin user table when I accept registration details for my website? How can I do that?
Pls help me if anybody has any idea regarding this.

Thanks
Shanavaz.
Reply With Quote
  #2  
Old 11-05-2006, 04:48 AM
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Location: Toronto, Ontario
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are a couple ways you can do this.

First is to hack the way one of the softwares (be it your existing form or vBulletin itself) to use the other user base for user-related things. vBulletin is complex so I wouldn't recommend hacking the way it handles users, but if your existing app only stores users and passwords and thats about it, then perhaps you can make it use the vBulletin user base. If this were the case you could simply create a script to copy users into vBulletin, then edit the other app to start using the vB user base.

The second way is to keep the two user bases synced. So when a new user signs up in one app, then automatically create a record in the other app. Downside to this is that you also have to create code in both applications that will update the other data whenever there is an update. For example, user changes a password in vB you need to update the password in the other app as well.

Unfortunately there's no easy way to integrate the vB user base with other applications. Something like LDAP is what many vB customers want very badly. So when you ask 'how', it's not really that simple. You will need to know how to code, or hire a coder to do the job for you.
Reply With Quote
  #3  
Old 11-05-2006, 11:08 AM
shanavazea shanavazea is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks for the reply. I am new to PHP, but I am an ASP programmer. I think I can insert a row into the vbulletin user database whenever a new user is registered in our website. But when I checked the vbulletin user table and php code, I found that the password is encrypted and there are some values to be inserted which I dont know. So can anybody give me the PHP or ASP code which can be used to insert a new row into vbulletin user database with encryption, any functions to be called and other stuff.

Thanks
Shanavaz.
Reply With Quote
  #4  
Old 11-08-2006, 11:49 AM
shanavazea shanavazea is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi friends,

Can any body please give me a code where I can insert a single row into the vbulletin user table? What I want is if I call this script it should insert a given username and details into the user table so that I can login to the forum using that username & password. Please help me. Its urgent. I dont know php programming, thats why. pls.....

Thanks very much
Shanavaz.
Reply With Quote
  #5  
Old 11-08-2006, 12:54 PM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should give you a hint
https://vborg.vbsupport.ru/showthread.php?t=82836

Good luck!
Reply With Quote
  #6  
Old 11-09-2006, 04:11 AM
shanavazea shanavazea is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I got the following code from that thread.

Quote:
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', 'phpNukeUser');
$newuser->set('email', 'foo@bar.com');
$newuser->set('password', 'verysecret');
$newuser->set('usergroupid', 2);
But this code will work alone? How would I create the datamanager class? Which all files should I include? Pls help because I am new to php programming.

Thanks
Shanavaz.
Reply With Quote
  #7  
Old 11-14-2006, 10:18 AM
fhs2006 fhs2006 is offline
 
Join Date: Apr 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i post it here again,

as mentioned before in this thread https://vborg.vbsupport.ru/showthread.php?p=1116953 i found a guy implementing LDAP authentication to vbulletin. he is doing custom stuff, too.

-fhs
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 11:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04305 seconds
  • Memory Usage 2,210KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete