PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#26 2007-11-26 05:08:48

Jose.Torres
New member
Registered: 2007-11-26
Posts: 1

Re: Thoughts regarding the wiki

Hello!
I hope this is the proper place to post this problem.
I followed the instructions on this page: http://www.mediawiki.org/wiki/Extension … entication
Made a quick modification changing PunBBAuthentication.php to PunBBAuth.php.
But it doesn't seem to work at all.

The addToDatabase error seems to crop up when the user is an administrator or if the database is already populated with duplicate users. First, I flushed mediawikis user database to see if that would resolve it but it didn't for administrators. I then commented out the following section of code which seems really confusing:

        //if ( $user->getID() == 0 ) {
          //      $user->addToDatabase();
          <snip>
          // } else {
                /* Should cache some day, I guess smile */
                $user->loadFromDatabase();

Doesn't that mean if the user is an administrator then add them to the database? Otherwise, load the regular user from the database?

I run a website called 8bitcollective, based on punBB, and am currently trying to incorporate mediawiki's software as well. Any help or resources would greatly be appreciated by our community.
Thanks!

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.