![]() |
Possible to authenticate elsewhere on webpage?
Is it possible to use the vbulletin login elsewhere on a webpage for authentication? Say for instance I have a photo gallery that I want to have people login to see, is there a way I can stick the vbulletin username/password prompt on a login page for the gallery and have it check against the vbulletin database but not log into the forums?
|
bump for some help
|
Yes, you can use the vB login stuff on another area of the site, however since it's the same login, it will log them into the forums.
|
Ok, since that won't work. Is it possible to have vbulletin during the registration proccess insert the username/password into another table but without the encryption? Basically just dump the plain username/password. Or, is it possible to make a simple login/password box in php and have it reference the username/password table in the vbulletin database and authenticate against that?
|
one last bump..please anyone!
|
The plain password never gets sent from the client to the server. It is already hashed on the clientside.
To make what you want would seriously reduce vB's security level. |
Quote:
ok well what about my other option, make my own username/password cgi form, but is there a way to have it authenicate against the vb database? or is that what you were talking about? |
one last bump for the newer question
|
Yes, everythig is possible, but it would reduce the level of security.
|
Quote:
How would I go about doing this? I want to make my own user/password login php page, and have it authenticate against the vb database. I really don't know howto do that, can someone give me some help. |
Do a search on 'salt' here. There might also be a topic on this in the How-To forum.
|
Yes you can authenticate users with the datas stored in the vbulletin database. There are two concepts you have to understand.
Make the user log-in both your site area and the forum or just one module To do this you will need to study vBulletin sessions system, what algorithm is used to encrypt the password so that it matches the users password in the database. Say your users's id is bob and password is 2005. For example if vbulletin used md5() hash to encrypt the password the password 2005 would be stored as 2983jdkfsdm23847 in the database. So, when the user enteres his username, and password on the log-in form you made for your website area... make it check the database and if the values matches you sent the user to his destination else return a error. The actual code will look like: PHP Code:
If you are not into PHP, then I recommend study it first... because for someone new session could be a pain. And also understanding the classes and objects in vbulletin system if wish to work with the vbulletin session class. :) Here is a mod which will do that: https://vborg.vbsupport.ru/showthread.php?t=91129 |
All times are GMT. The time now is 08:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|