![]() |
Using vb database for login on separate domain
Hi. I've been looking around but can't seem to find an easy answer. All I want to do is be able to is authenticate a user and password against the vbulletin user (4.1.4) database on a domain that is separate from the forums (hence not shared cookies) and go from there.
Don't need anything fancy. I just want to be able to have them authenticate that they are a forum user on the forum domain. I'm sorry if I missed an article, but could someone point something like this out or demonstrate how it might be done? Thanks in advance. --------------- Added [DATE]1310747479[/DATE] at [TIME]1310747479[/TIME] --------------- I found this, but it does not work. Code:
<form action="index.php?p=login" method="post" enctype="multipart/form-data"> |
are you trying to only show a pages content if they are a logged in user?
Use PHP Here is an example PHP Code:
the domains would have to be on the same server though. |
Hi thanks for replying. I tried what you suggested, making the changes to the forum path and it didn't work. I think anything I work on has a ghost in it.
Actually, what I was hoping for was a way to validate against the vbulletin user database. Create a login form on a different domain (on the same machine) then validate it with the database using the username and password, and going from there. Maybe I have something set wrong? Thanks again for replying. |
Hi,
I made a few changes but didn't test it. Give it a try... PHP Code:
Hope that helps. Tim www.SuppYo.com |
Thank you very very much. I've seen code just like that in a lot of places and most of them have that middle parens off so it doesn't work but this one works. Thanks again!
|
|
All times are GMT. The time now is 02:02 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:
|