Page 1 of 1

Embedding In PhPBB

PostPosted: Sat Nov 17, 2007 1:48 pm
by EuropaSteve
I asked this question here on the old forum. I'd like to Embed DataFace into phpbb2 or 3. I all ready have Gallery software embedded with a common user database and login.
I have plenty of uses for it, and I'm sure others would as well.
I gave it a shot awhile ago, but my php is weak.....

Steve

PostPosted: Sat Nov 17, 2007 2:12 pm
by shannah
This shouldn't be too difficult. If you set up a dataface application to use the phpbb_users table as its users table you'd be on your way.

PostPosted: Mon Nov 19, 2007 12:07 pm
by EuropaSteve
I Tried:
Not sure how to un-hash the passwords.
Code: Select all
; File:    conf.ini
; Description:
; ------------
; This file contains configuration information for the dataface framework.
; Configuration options include such things as database connection information
; tables to be displayed in the menu, and behavioral and display characteristics
; of the dataface application (like whether to display the menu).
;




[_database]
host = "localhost"
user = "root"
password = "xxx"
name = "Home"

[_tables]
phpbb_users = "phpbb_users"
phpbb_user_group = "phpbb_user_group"


[_auth]
users_table = phpbb_users
username_column = username
password_column = user_password

PostPosted: Mon Nov 19, 2007 1:52 pm
by shannah
You need to create a fields.ini file for the phpbb_users table with the following:

Code: Select all
[user_password]
    encryption=md5


This tells dataface to use md5 encryption on the passwords which is what phpbb uses.

At this point you'll have a situation where people can use the same usernames/passwords to log into Dataface and PHPBB. However they won't recognize each others' cookies so you'll have to log in for each separately. In order to recognize the cookies, you'd need to create a custom Auth module... I'll see if you download the CAS module (it's on sourceforge in the same place as the dataface downloads) it might give you some clues on how to write an Auth module.

I have had it on my todo list for a while to write a tutorial on how to do this for some time, but things have been busy and it is low priority... Hopefully sometime soon.

-Steve