Previous Thread
Next Thread
Print Thread
Rate Thread
#260835 10/16/2003 3:11 PM
Joined: Oct 2003
Posts: 5
Lurker
Lurker
Offline
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?

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
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
Offline
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
Offline
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
Offline
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

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
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
Offline
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
Offline
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
Offline
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
Offline
Joined: Dec 2000
Posts: 1,471
U_Session is also used in logout.php and admin/loginas.php

Sponsored Links
Joined: Oct 2003
Posts: 5
Lurker
Lurker
Offline
Joined: Oct 2003
Posts: 5
Well, looks like I got that all from this topic along with
https://www.ubbdev.com/forum/showflat...5/o/all/fpart/1

Thanks for the help, guys!

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Glad you got the info you need.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 6013
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 14
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)