|
|
Joined: Oct 2003
Posts: 5
Lurker
|
|
Lurker
Joined: Oct 2003
Posts: 5 |
How do I integrate Ubb.threads with common site registration ?
There is going to be the only registration place for chat,voting,comments posting etc.
And I'd love to integrate Ubb.threads into this system.
Is there any standard way maybe?
|
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
|
Addict
Joined: Dec 2000
Posts: 1,471 |
No, there's no standard way. The simplest way would be to integrate all code from the adduser.php into your existing registration script. But this wouldn't be a real integration, because the userdata will be stored in seperate places.
|
|
|
|
|
Joined: Oct 2003
Posts: 5
Lurker
|
|
Lurker
Joined: Oct 2003
Posts: 5 |
In fact I was going to modify all code that deals with DB user information.
Is it gathered in few files maybe ?
|
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
|
Addict
Joined: Dec 2000
Posts: 1,471 |
The user information is accessed in nearly all scripts, because the user number(primary key) is used in all queries to the user table. A quick search gets hits in 104 files. Upgrading to newer versions will be a pain.
|
|
|
|
|
Joined: Oct 2003
Posts: 5
Lurker
|
|
Lurker
Joined: Oct 2003
Posts: 5 |
What about 1. Change table name where user info is stored to otherdatabase.my_user_table 2. Remove all registration things from forum itself
|
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
|
Addict
Joined: Dec 2000
Posts: 1,471 |
Using a table in another database isn't a good idea, cause you'll have to change the databases all the time and you'll need the user id to retrieve the user info. You could use seperate user tables, but make sure that every user has the same user id in all of them.
|
|
|
|
|
Joined: Oct 2003
Posts: 1
Lurker
|
|
Lurker
Joined: Oct 2003
Posts: 1 |
Well, I extracted the registration part from user->authenticate() and do_login() functions. I'm going to use them in other scripts. Are there any other places to do with authorization ?
As I got it, the mechanism is simple: 1. user has w3t_id and w3t_mysess -> get data by session and id 2. use has w3t_id and w3t_key -> create new session for the user 3. All other cases (or failed to autehticate in 1,2) -> (re)login.
Where U_Session is used by the way ?
|
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
I believe U_Session is related to the cookie. If you are having something else work as the login for threads, you need to create the cookie as well. I remember seeing a thread around here somewhere that someone was doing some similar. If you look around you should be able to find it. I'm pretty sure it was fairly detailed.
|
|
|
|
|
Joined: Oct 2003
Posts: 5
Lurker
|
|
Lurker
Joined: Oct 2003
Posts: 5 |
I tried in vain to look for 'U_Session' in all posts at all forums. Few messages contained nothing useful...
|
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
|
Addict
Joined: Dec 2000
Posts: 1,471 |
U_Session is also used in logout.php and admin/loginas.php
|
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Glad you got the info you need. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,834
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 6013
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 14
|
|
|
|