The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
AJAX Login from Page outside Forums
I'm building a web application that shares the userdata with VBulletin.
What I'm trying to do is create an AJAX login form in this application, that sends the login request to VBulletin so that VB can do all its stuff. Should I just package this up as normal, shoot all the data over? But I'm not sure how to interpret the responses from the server, since its going to be whole pages. Basically does the VB login support an AJAX mode yet, so that I can can get some easy to use data in response? As for now I'm going to get a page in response that will dictate if the login worked or didnt, then have to parse that in JS, and see if I have to prompt for login again? Or should I just set cookies/sessionhashes myself and not rely on the VB module? Did this make sense to anyone |
#2
|
|||
|
|||
try this code it uses jquery ajax simply it send post request to the login screen. it works well for all browsers but it doesn't work for firefox
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> $.post('http://forum-URL/login.php?do=login', {"vb_login_username": "admin", "vb_login_password" :"123456", "s":"", "securitytoken":"guest", "do":"login", "vb_login_md5password":"e10adc3949ba59abbe56e057f20f883e", "vb_login_md5password_utf":"e10adc3949ba59abbe56e057f20f883e" }, function(data,textStatus) { alert(textStatus); }); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|