Page 1 of 2

[BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Tue Sep 04, 2007 8:42 am
by armsch9
MOD Title: Wiki integration for Mediawiki 1.9.x and higher
MOD Description: This MOD is a modification of the phpBB/User integration v2.6.1 mod
produced under the GNU General Public License Version 2 by Nicholas Dunnaway. This MOD gives shared login for mediawiki with phpBB, allowing joint registration and account maintenance from the phpBB administrator control panel. Only members from the phpBB group called 'wiki' will be able to edit the wiki. If you want global access you can set 'wgPHPBB_UseWikiGroup' to true in the LocalSettings.php file. If you do this please let me know, because if most people want this I will make it the default in future versions.

Design limitations: The mod currently does not have shared login. Users need to log in to the forum to post there, and separately into the wiki to edit pages there. This will be resolved in future versions. User names must not contain special characters such as underscores. Since phpBB allows this users are reminded in the wiki login that they must not have these characters in their name. It is recommended that you allow username changes in your forum, else current users will not be able to access the wiki.

If you will be trying to modify the wiki to look like the forum as I have, be aware that the css tables for Internet Explorer can do strange things. I currently have an unresolved issue where my login table looks squewed from Internet Explorer. This has nothing to do with my MOD but it is something you should be weary of if you want full integration with your forum.

MOD Version: 0.1.1

MOD Download: MOD Download

Demo Board: http://bottleweb.org Please delete test pages immediately.
Demo Username: phpBBtestbot
Demo Password: test

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Tue Sep 04, 2007 5:44 pm
by Wicher
Looks like a nice mod to give a try.
But the downloadlink does not go to the download, instead it takes me to my own submitted mods.\
You should put a download on your own server and a link to it here.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Wed Sep 05, 2007 8:22 am
by armsch9
Thanks, I hosted the link myself it should work now. I'll work on the shared login thing and if I get some interest i'll do one for phpBB3 as well.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Wed Sep 05, 2007 5:44 pm
by wildatheart
Does a period (.) count as one of the limited special characters or is it allowed in the login name?

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Wed Sep 05, 2007 6:21 pm
by k_kirk
going to bottleweb gives me :


Warning: main(../extension.inc) [function.main]: failed to open stream: No such file or directory in /home/www/bottleweb.org/index.php on line 25

Warning: main() [function.include]: Failed opening '../extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/bottleweb.org/index.php on line 25

Warning: main(../common.) [function.main]: failed to open stream: No such file or directory in /home/www/bottleweb.org/index.php on line 26

Warning: main() [function.include]: Failed opening '../common.' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/bottleweb.org/index.php on line 26

Fatal error: Call to undefined function: session_pagestart() in /home/www/bottleweb.org/index.php on line 31

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Thu Sep 06, 2007 2:57 am
by armsch9
Yeah my bad I had edited the wrong index file and went to bed without checking the original one (which I thought I hadn't edited) :oops: . Anyway it's back now sorry.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Thu Sep 06, 2007 2:59 am
by armsch9
wildatheart wrote:Does a period (.) count as one of the limited special characters or is it allowed in the login name?
no periods are fine. As far as I can tell the only character allowed by phpBB but not mediawiki is the underscore. According to the release notes of mediawiki 1.10 underscores are allowed, so I don't really know why this is the case. If you use this mod I recommend you add *_* to disallowed usernames, preventing people from registering with an invalid username.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Sat Sep 08, 2007 7:49 am
by beggers
Looks good. I think I'll try this if I can get Wiki installed.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Sun Sep 09, 2007 7:23 am
by armsch9
Good luck! It's quite easy to install i'm sure you won't have any problems. Although I found the coding to be a lot more difficult to understand than phpBB. I didn't really appreciate the clean and simple programming style (and comments) of phpBB until I tried modifying mediawiki.

If you use my mod I'd appreciate comments on how it worked for you.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Wed Sep 12, 2007 7:24 pm
by mrweaver
hi armsch9.

I having trouble getting this installed. I have the folder for your mod in a folder called "wiki" which is a subdirectory within my phpbb directory.

I have created a group "wiki" in phpbb. Where should I find the wiki in the phpbb? Does it simply appear by arranging the file structure, or is there more to installation? I have moved away from being a PHP newbie to beginner, but no further so, sorry if I am asking something that should be obvious.

Thanks

mrweaver

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Thu Sep 13, 2007 11:16 am
by armsch9
ok, I haven't assumed anything about the template you are using, so I didn't create links. You will need to create a link to yourforum.com/wiki. You would probably do this in your templates/yourtemplate/overall_header.tpl file, which you can basically think of as a html file for the buttons at the top.

You can then log in to the wiki using your phpbb username. I hope this helps. This is only a draft of the wiki, so if you are daunted by these modifications the current version of this mod might be a bit of a headache, I basically put it out there to see whether people will use it. It seems like there's a bit of interest for it, so I'll start working on it again after uni exams!

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Thu Sep 13, 2007 12:45 pm
by mrweaver
Got the link to the wiki, but when I go to log in to the wiki, I got this message

Code: Select all

Unable to view external table
MySQL Error Number: 1146
MyuSQL Error Message: Table 'wikidb.phpbb_users' doesn't exist
So, I looked in the database and confirmed there is no such table in wikidb, which presumably was created by MediaWiki when I installed that.

What are the parameters for the creation of that table in the database?

Btw, this looks like a great mod for phpbb. I am using the forum structure for departments and teams where I work, so each group has its own discussion space. But one team wants a wiki to build a document.

As I understand it, there is only one wiki for the phpbb installation. Is there a way to set it up so that each phpbb group can have its own wiki?

Thanks for your help, and best of luck on your exams

mrweaver

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Thu Sep 13, 2007 3:25 pm
by armsch9
What is the name of your phpbb tables? In your mySQL database you should have a list oh phpbb tables as well as wiki tables. The phpbb tables should look something like phpbb_NAME, whereas the wiki tables should look like wiki_NAME. The problem is most likely that the tables created when you installed phpbb don't match the defaults assumed by the addition made to the localsettings.php file:

Code: Select all

// This requires a user be logged into the wiki to make changes.
$wgGroupPermissions['*']['edit'] = false; 

// Specify who may create new accounts.
$wgGroupPermissions['*']['createaccount'] = false; 

// PHPBB User Database Plugin. (Requires MySQL Database)
require_once './extensions/Auth_phpbb.php';

$wgPHPBB_WikiGroupName  = 'wiki';               // Name of your PHPBB group
                                                // users need to be a member
                                                // of to use the wiki. (i.e. wiki)

$wgPHPBB_UseWikiGroup   = true;                 // This tells the Plugin to require
                                                // a user to be a member of the above
                                                // phpBB group. (ie. wiki) Setting
                                                // this to false will let any phpBB
                                                // user edit the wiki.

$wgPHPBB_UseExtDatabase = false;                // This tells the plugin that the phpBB tables
                                                // are in a different database then the wiki.
                                                // The default settings is false.

/*-[NOTE: You only need the next four settings if you set $wgPHPBB_UseExtDatabase to true.]-*/
//$wgPHPBB_MySQL_Host     = 'host';               // phpBB MySQL Host Name.
//$wgPHPBB_MySQL_Username = 'username';           // phpBB MySQL Username.
//$wgPHPBB_MySQL_Password = 'password';           // phpBB MySQL Password.
//$wgPHPBB_MySQL_Database = 'database_name';      // phpBB MySQL Database Name.

$wgPHPBB_UserTB         = 'phpbb_users';        // Name of your PHPBB user table. (i.e. phpbb_users)
$wgPHPBB_GroupsTB       = 'phpbb_groups';       // Name of your PHPBB groups table. (i.e. phpbb_groups)
$wgPHPBB_User_GroupTB   = 'phpbb_user_group';   // Name of your PHPBB user_group table. (i.e. phpbb_user_group)
$wgAuth                 = new Auth_PHPBB();     // Auth_PHPBB Plugin.
just change the PHPBB_ to whatever your databases are called and you should be ok. Let me know if this works for you.

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Thu Sep 13, 2007 5:49 pm
by mrweaver
I checked the table prefixes for my phpbb, and instead of "PHPBB_" they are "phpbb_", so I changed them. What results on a login attempt is:

Code: Select all

Notice: Undefined index: wgphpbb_UseExtDatabase in C:\Program Files\Apache Group\Apache2\htdocs\phpBB2\wiki\phpwikimod\wiki\extensions\Auth_phpBB\Auth_phpbb.php on line 181
There was a problem when connecting to the phpBB database.
Check your Host, Username, and Password settings.

MySQL Error Number: 0
MySQL Error Message: 
In your comments near the "_UseExtDatabase" you wrote:
// This tells the plugin that the phpBB tables
// are in a different database than the wiki.
// The default settings is false.
My wiki and phpbb databases are separate, but both are in the same MYSQL installation. So, should I change the value of "wgphpbb_UseExtDatabase" to true?

Re: [BETA] Wiki integration for Mediawiki 1.9.x and higher

Posted: Fri Sep 14, 2007 11:50 am
by armsch9
Try using the same database or setting wgphpbb_UseExtDatabase to true.