phpBB User Authentication for Roster 2.0 beta

phpBB integration forum

phpBB User Authentication for Roster 2.0 beta

Postby Munazz » Thu Oct 04, 2007 2:23 am

My modification allows you to use a different Login class to authenticate your users and your admins with the login information contained in the PHPBB database.

The changes you need to make are listed in the txt file. I have included the new login class you will need to add to your lib directory and I also have included a modified copy of the regular login class if you would like to update that as well.

You will also need to modify the SQL database and I have included the mySQL commands that you can use with your database to make those changes.

There are some small changes I found that needed to be made to other files to adapt the Roster Class completely. Those are listed in the txt file too.


If you prefer to use Group Numbers instead of Group Names, that will require a minor tweak of the authorization code in the phpbb_login file.
Attachments
phpbb_login_v2.0.zip
(11.13 KiB) Downloaded 511 times
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

phpBB User Authentication for Roster 2.0 beta

Postby Munazz » Fri Oct 05, 2007 12:54 am

The file-lines in the instruction file were for an older SVN than is currently released, but the instructions stay the same. You will just need to find the proper place in the files to do the replacements. Everywhere you do a replacement, just find the line(s) of code that needs to be removed and do the change. Most are within a couple lines of the line numbers I listed.
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

Re: phpBB User Authentication for Roster 2.0 beta

Postby LaYkE » Mon Oct 15, 2007 6:05 pm

you're a gent :)

I've been looking for something like this, does it work on group access or single user?

I'll deffo install this but i'll wait for Roster 2.0 final to be released.
Personally i'd love if roster integrated with phpbb more :)

Thanks Munazz
LaYkE
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Tue Aug 01, 2006 4:34 am

phpBB User Authentication for Roster 2.0 beta

Postby Melina » Wed Oct 17, 2007 2:41 am

Does this require the phpbb and roster database to be the same?
User avatar
Melina
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Fri Aug 03, 2007 6:49 am

Re: phpBB User Authentication for Roster 2.0 beta

Postby tuigii » Wed Oct 17, 2007 5:18 pm

Melina wrote:Does this require the phpbb and roster database to be the same?

They don't require it.
WoWRoster and phpBB can be in separated database.
And they can share the same database.
It's like having "Program Files" on a C drive or D drive... it's up to you.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: phpBB User Authentication for Roster 2.0 beta

Postby Munazz » Wed Oct 24, 2007 11:57 pm

Melina wrote:Does this require the phpbb and roster database to be the same?


No. The phpbb_login.php program grabs the database configuration information from your PHPbb config files, so they can be in seperate databases if you wish.
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

phpBB User Authentication for Roster 2.0 beta

Postby Munazz » Thu Oct 25, 2007 12:21 am

The authors modified the structure of the update.php page in one of the beta versions. If you are having an error given on the Update page with a call to a member function on a non-member object, then you need to place the following line of code

$roster_login = new RosterLogin();

in the pages/update.php file. Somewhere near the top will be fine. I did it right after they included 'update.lib.php' and created the $update object.
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

Re: phpBB User Authentication for Roster 2.0 beta

Postby Munazz » Fri Jun 06, 2008 9:21 pm

Hey, this is now an Add-On!

Go to the Addon Forum.
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

Re: phpBB User Authentication for Roster 2.0 beta

Postby Durvien » Mon Jun 16, 2008 12:32 am

got a problem installing this. I put in my path /oggyhouse.com/html/phpBB3/ and contacted the web hosting which said it was simply /phpBB3. Completely uninstalled, reinstalled but I keep getting this error:

Fatal error: Class 'sql_db' not found in /chroot/home/oggyhous/oggyhouse.com/html/roster/addons/phpBB_login/inc/login.php on line 114


Line 114 is:
if (! $this->database = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false) )

Do I need to set something to writeable or is there a way to change that to put my actual db in there since it can't seem to find it?
Attachments
Last edited by Durvien on Mon Jun 16, 2008 12:37 am, edited 1 time in total.
Image
User avatar
Durvien
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Wed Jun 11, 2008 8:29 am

Re: phpBB User Authentication for Roster 2.0 beta

Postby Munazz » Thu Jun 19, 2008 1:11 am

please see the new forum section for any bug reports or problems.

http://www.wowroster.net/Forums/viewforum/f=131.html

thanks
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA


Return to phpBB

Who is online

Users browsing this forum: No registered users and 0 guests