Embedding In PhPBB

A place for users and developers of the Xataface to discuss and receive support.

Embedding In PhPBB

Postby EuropaSteve » Sat Nov 17, 2007 1:48 pm

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
EuropaSteve
 
Posts: 5
Joined: Sat Nov 17, 2007 1:03 pm

Postby shannah » Sat Nov 17, 2007 2:12 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby EuropaSteve » Mon Nov 19, 2007 12:07 pm

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
EuropaSteve
 
Posts: 5
Joined: Sat Nov 17, 2007 1:03 pm

Postby shannah » Mon Nov 19, 2007 1:52 pm

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved