php forum
php mysql forum
php mysql smarty
 
Topic Options
#316264 - 11/07/07 08:49 AM Integrating UBB seamlessly with Drupal
Obie Offline
Lurker

Registered: 05/15/03
Posts: 7
This is more of a Drupal question but someone here may have the answer for us.

We have been using UBB Threads for years and love it. Our web site is being converted to Drupal but we want desperately to keep UBB Threads. How do we integrate it into Drupal, keeping it password protected for our members *without* implementing a second log in process within UBB itself.

In other words. We want people who are members to seamlessly have access to UBB without having to log in a second time to the BBS.

Top
#316265 - 11/07/07 09:47 AM Re: Integrating UBB seamlessly with Drupal [Re: Obie]
blaaskaak Offline
Member

Registered: 02/25/07
Posts: 283
Loc: The Netherlands
My answer that I posted on ubbcentral still stands, the work done should be done from within the drupal code.

That is keeping the userdatabases into sync, and writing the cookies that ubb.threads reads for auto login.

While we could actually help with the code/how to's to do the ubb part, I for one have no experience with drupal.

Can you code yourself?


Edited by blaaskaak (11/07/07 09:48 AM)
_________________________

Top
#316266 - 11/07/07 02:43 PM Re: Integrating UBB seamlessly with Drupal [Re: blaaskaak]
Obie Offline
Lurker

Registered: 05/15/03
Posts: 7
Yes, we can code. Just wondering if anyone had done this before and what we need to be aware of specifically.

Top
#316267 - 11/07/07 02:55 PM Re: Integrating UBB seamlessly with Drupal [Re: Obie]
blaaskaak Offline
Member

Registered: 02/25/07
Posts: 283
Loc: The Netherlands
Okay, this makes it easier to talk about it.

There should be something in the drupal code that copies a user registration to ubb.threads. You can have a look in /scripts/adduser.inc.php what code is needed to add a user to ubb.threads.

Now you would also want to create a logon cookie for the user, so that they don't have to log in. /admin/loginas.php could be of help on that field.
_________________________

Top
#316270 - 11/08/07 12:21 PM Re: Integrating UBB seamlessly with Drupal [Re: blaaskaak]
sirdude Online   content
Enthusiast

Registered: 11/08/03
Posts: 432
Loc: SoCal
i've done a similar 'mod / hack' for 2 sites. 2 different approaches.

approach 1: the site uses a htaccess list, which is maintained by a 3rd party program. that 3rd party program essentially updates that list based upon credit card subscriptions.

then the ubbthreads side simply checks when a user tries to access ubbthreads.php and sees if they exist in the DB (threads db) yet. if they don't then a new threads user is created, added the the 'User' group and they then access threads.

approach 2: similar to what a portal-master, threads-slave would be setup as. as the portal verifies new user signups, does all the email verification etc and adds the user, it then sends a message to threads to 'add a new user' in a URL (get). ubbthreads checks to see if that user exists, then adds the user to the appropriate group.

threads then goes further to note the portal cookies for username and takes care to setup the corresponding ubbt cookies to allow the users to transparently log in..

sooo, it can be done... just how you want to slice / dice smile
_________________________

Unfair, Unbalanced, Unmedicated.

Top
#316892 - 04/28/08 04:29 PM Re: Integrating UBB seamlessly with Drupal [Re: sirdude]
Obie Offline
Lurker

Registered: 05/15/03
Posts: 7
Some followup Questions:

1) How do we provision new UBB.threads accounts correctly since Drupal will be driving, not creating users via the UBB admin area?

2) What is the syntax for the magic cookie that Drupal should set when a Drupal login event happens successfully?

3) Is there a way to sync UserIDs and Passwords between Drupal and UBB? The front door will be mandatory Drupal and users will not be able to log into UBB. So could we possibly blank out the ability to log in via UBB?

4) Syntax for adjusting that cookie when a Drupal logout event occurs so UBB.threads no longer thinks the user is properly authenticated.

Top
#316975 - 05/15/08 12:03 PM Re: Integrating UBB seamlessly with Drupal [Re: Obie]
Obie Offline
Lurker

Registered: 05/15/03
Posts: 7
We still would like some answers to our questions posted above. Can anyone help?

Top


Top Posters Last 30 Days
AllenAyres 56
Gizmo 23
sirdude 21
Zarzal 10
blaaskaak 8
Grymmie 4
Basil Fawlty 3
Who's Online
3 Registered (Basil Fawlty, GEN, sirdude), 48 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
PM Quota Checker
by Basil Fawlty
07/26/08 07:22 PM
[7.3+] CustomTag - Photobucket Slideshow
by AllenAyres
07/26/08 03:31 PM
Team UBBDev Rides Again!
by AllenAyres
07/26/08 03:28 PM
iPhone 3G
by AllenAyres
07/24/08 05:19 PM
[7.3.x] ubb.links
by AllenAyres
07/24/08 05:18 PM
[7.x] [Beta] Purge Welcome Messages
by Gizmo
07/23/08 06:58 PM
User Authentication Class
by Gizmo
07/21/08 07:07 PM
New Mods
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
Newest Members
DarkMaster, nixadmin, Stanley, NazzaN, mmem700
13311 Registered Users

 

 

 
fusionbb message board php hacks