The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Integrating vBulletin with another application
I'm working on integrating the vBulletin forums into a C++ client application. The forums will be accessed through a built-in browser. What we would like to do is to be able to integrate some of the user's actions in the client application with the user's information in the forums.
We would like to be able to integrate login and logout, new account registration and editing the user's profile. Is there a method for doing this? For example, when the user creates a new account through our client, we would like to be able to send a request to the forums server that would create the forums account with the information the user provided. The same thing would happen when the user logs in....we would verify their password, and then send a request to the forums server to log them in. Is it possible to do something like this? We were hoping to be able to send the requests from our main server, but I assume that the client needs to send the requests, as the forum cookies and session information will be stored on the individual computers. Is there a listing of URL query strings for logging in and out, creating new accounts and editing existing accounts? I hope this makes sense, and I appreciate any advice you guys can provide. |
#2
|
|||
|
|||
Well session info is stored in your database, and while users do get cookies they are not required in most cases to use the board, but some fetures do rely on them (thread/forum activity markers for example).
I asume you know how forms work, and if so you should be able to pass anything from your client application to vBulletins php files. Do you know php btw? Two files to look at are login.php and register.php and their associated function files, if you need help finding exactly what you are looking just reply again |
#3
|
|||
|
|||
I'm a Java programmer, not too big on my PHP knowledge. I'll take a look through those two files though, as a place to start.
One question that sticks in my head though....let me run through a quick set of steps: User logs in to client application Client contacts main server with login info Server validates username/password Can the main server then hit the forums server with a login request for the user? My knowledge of sessions and cookies isn't as good as it should be, but I'm thinking that the client would have to hit the forums through it's embedded browser in order to get the session information set up properly. I could be wrong though (it's happened once or twice before). I'm assuming we'll be able to do the user registration and profile editing from the server, but that the logging in and out will have to come from the client. Thanks! I'm sure I'll have more questions tomorrow.... |
#4
|
|||
|
|||
Well sessions are stored in the database in the session table, amoung other things there are three important parts of a session you may have to correct for:
PHP Code:
|
#5
|
|||
|
|||
Talked with our client people, and they're going to handle the logging in and out through their browser. That means the server will need to handle the registration and profile/password editing.
Would it be easier to just go straight to the DB to change profiles and passwords? That's what I'm thinking. I'm not sure about creating a new user though....can I just pass a URL that I've created to the forums server and have it do all the creating? Anyone know the format of that URL? Thanks again.... |
#6
|
||||
|
||||
It's not so much a URL as a set of POST'ed data (when performed from a web page) which is processed thru the register.php script and an account is created by Queries to the SQL database ...
Your C++ app should be able to be extended to connect to a SQL server and create teh accounts no problem (unless C++ is more limited than I'm led to believe, not being a C++ guru) |
#7
|
|||
|
|||
Our server is Java-based, we'll be doing the registering and such from there. (I'm new to the POST/GET/WHATEVER stuff) Is it possible to send the POST from our server so that the registration will go through all the checks and stuff that are built into the register.php file? Or do we just have to go straight to the DB? I'm wondering if that would create any problems with the passwords or the password salt fields or anything once the user actually attempts to log into the forum....
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|