The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB Login on Non-Vb page hack
I have a forum and a website that goes along with the foruym. What I'm trying to do is include a login field on the non vb website. It's a form integrated into the page which will allow a member to login and gain access to certain pages on the non-vb site.
I don't want a pop up dialoge, I want the login to be integrated into the page itself. For example, you would go to the site and encounter a page that also has a username and password box along with the content. You enter your vb member username and password, and it enables you to view other secured pages on the site. I have a form set up, but I need someway to access vb usernames and passwords as authentication for the rest of the site, without relying on a popup dialouge. The security should be built into the page itself and the form should be able to call upon a script that will process the username and password and allow access to other parts of the site. Does anyone know where I can find something like this? |
#2
|
|||
|
|||
If your forum is on the same domain as your main website, you can check that the cookie "bbuserid" is set, if it is, that means that the user with the cookie's value is logged in.
I did this today on our site - Pages within the main site can check that the bbuserid cookie is set (i'm actually using ASP for this :disappointed: ): If bbuserid is NOT set: Display the login form embedded in the page, which submits the relevant information from the html form to member.php, to initiate a login. If bbuserid IS set: You know the user has been authenticated by vBulletin, and you can display the protected content. Have a look at this thread for more details about the form i used. Hope this helps! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|