How to integrate SMF with Wiki?

Started by Jochus, November 12, 2005, 10:59:29 AM

Previous topic - Next topic

TarantinoArchives

why does it call the SMF database to look for the watchlist, which is in the wiki DB? that is bizarre.

i dont really want to use one DB for both because i already use my SMF DB together with Joomla, i think adding the wiki on top of it would be a bit much, what do you guys say?
any ideas to help me out?


here's how my localsettings looks like (passwords censored):


/ wiki - smf combo
// This requires a user be logged into the wiki to make changes.

// Specify who may create new accounts: 0 means no, 1 means yes
$wgGroupPermissions['*']['createaccount'] = false; // MediaWiki 1.5 Settings

// SMF User Database Plugin. (Requires MySQL Database)
require_once './extensions/Auth_smf.php';

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

$wgSMF_UseWikiGroup   = false;                 // 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 SMF
                                                // user edit the wiki.

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

$wgSMF_MySQL_Host     = 'localhost';               // phpBB MySQL Host Name.
$wgSMF_MySQL_Username = 'username';           // phpBB MySQL Username.
$wgSMF_MySQL_Password = 'password';           // phpBB MySQL Password.
$wgSMF_MySQL_Database = 'usr_web2_1';      // phpBB MySQL Database Name.

$wgSMF_UserTB         = 'yabbse_members';        // Name of your SMF user table. (i.e. phpbb_users)
$wgSMF_GroupsTB       = 'yabbse_membergroups';       // Name of your SMF groups table. (i.e. phpbb_groups)
$wgAuth                 = new Auth_SMF();     // Auth_SMF Plugin.


sirwoogie

#21
Sorry, I'm not experiencing this. It may be calling  my SMF first and then falling back to the wiki database, but I haven't traced it. My wiki database watchlist table updates correctly.

Edit: I should be a bit more specific. I have two databases under the same MYSQL instance.

TarantinoArchives

well i use this thing now on 2 live sites but i merged databases to circumvent the above described problem. using one DB for both smf and wiki, it works great

TarantinoArchives

some people seem to can't log in.
i updated to MW 1.6.2 recently. can somebody look into this?

mirkrim

Same problem here.  I'm using SMF 1.1 RC2 and MediaWiki 1.6.3, and I keep getting "wrong password" messages.

TarantinoArchives

Quote from: mirkrim on April 15, 2006, 01:00:54 AM
Same problem here.  I'm using SMF 1.1 RC2 and MediaWiki 1.6.3, and I keep getting "wrong password" messages.

hm. well actually here it works mostly.
check if these people have passwords or usernames that the wiki doesn#t "like" such as with underscores, spaces, special characters etc

mirkrim

Quote from: TarantinoArchives on April 15, 2006, 07:13:00 AM
hm. well actually here it works mostly.
check if these people have passwords or usernames that the wiki doesn#t "like" such as with underscores, spaces, special characters etc

I've already considered that.  I made an SMF account called "test", with password "test", configured Localsettings.php and uploaded the extension, but Mediawiki keeps saying my password is incorrect.  In addition, I can't login with my sysop account - it also says password incorrect.

I am 100% sure that localsettings.php is configured properly, and the wiki works perfectly when it's independent of the forum.  But whenever I implement the bridge, it doesn't accept any passwords.

TarantinoArchives

have you set the extension to use a smf user group?

mirkrim

Yes, it's set to the SMF user group named "Wiki".  The test account is a member of this group.

Cerberus

#29
Using SMF 1.1 RC2 and MediaWiki 1.6.3 :)

I'm getting login errors, so  it seems that none of the above mentioned solutions work with MW 1.6.3, am I right? :(
Best Regards, Cerberus
YaBB Gold -> YaBB 1.1 -> YaBB SE (YaPP -> PfaBB) -> SMF
Pocket PC Russia

Cerberus

#30
Installed MW 1.5.8 and the Auth_SMF from http://uber.leetphp.com and I can't login :(
I've checked all the settings, I've also set up the $wgSMF_UseExtDatabase but I can't get it to work properly...

it gives me a wrong password error :o


Solved :D
Best Regards, Cerberus
YaBB Gold -> YaBB 1.1 -> YaBB SE (YaPP -> PfaBB) -> SMF
Pocket PC Russia

TarantinoArchives

Quote from: Cerberus on April 22, 2006, 04:15:10 PM
Using SMF 1.1 RC2 and MediaWiki 1.6.3 :)

I'm getting login errors, so  it seems that none of the above mentioned solutions work with MW 1.6.3, am I right? :(

works fine here

Cerberus

I've already solved the problem, but nevertheless thanks for the input :)
Best Regards, Cerberus
YaBB Gold -> YaBB 1.1 -> YaBB SE (YaPP -> PfaBB) -> SMF
Pocket PC Russia

mirkrim

#33
What did you do to solve the problem?

Nevermind, I've been using the version from uber.leet.  I switched to TMF's and now it works great.

Digitalroot

Hello all,

I released a new version of the Auth_SMF plug-in. v1.1 has support for SMF 1.1 and 1.0. I also made the same MySQL connection changes that were made to the Auth_phpBB plug-in. This should fix a bug that a handful of ppl were dealing with.

hxxp:uber.leetphp.com/index.php?categoryid=16&p13_sectionid=1&p13_fileid=7 [nonactive]


Phoenixoverlord

First of all: thanks to Digitalroot's file I was able to combine SMF with mediawiki (the members that is).

I wanted to integrate mediawiki in my tinyportal/SMF combo as described here: http://www.tinyportal.net/smf/index.php?topic=3133.msg26267#msg26267 This worked wonderwell for coppermine and it does run in an iframe. However, this isn't the case for mediwiki.

Where I was able to integrate dokuwiki (which I had tried first) in the iframe, mediawiki will actually just replace the entire screen. The code I used is the same as for the other wikis discussed above, but no matter what I do, it keeps refreshing the page and taking it all up. :-/ Any hints or ideas?

But how can I make it so that someone who logs into SMF is automatically logged into the wiki too and logged out when they log out of SMF/TP? I've looked at the smf_auth.php file, but I truly don't get what to change there...

Dannii

I'm working on integrating MediaWiki's theme with TP now. I'll let you all know when I'm finished.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Phoenixoverlord

Okay I figured out how to stop it from jumping to a new page instead of loading in TP. :)

http://meta.wikimedia.org/wiki/MediaWiki_FAQ#I_want_my_wiki_to_appear_in_a_frame_as_part_of_my_site.2C_but_it_keeps_popping_out_of_the_frame

QuoteI want my wiki to appear in a frame as part of my site, but it keeps popping out of the frame

MediaWiki contains protection against abusive use of frame sets. Unfortunately this will trap your intentional frames as well -- to remove this, edit stylesheets/wikibits.js and remove these lines:

(Please note that if the wikibits.js file isn't in stylesheets/wikibits.js it may be skins/common/wikibits.js)

// Un-trap us from framesets
if( window.top != window ) window.top.location = window.location;


        This may not work with MediaWiki: 1.5.8. I tried this with 1.5.8. The path was /skins/common/wikibits.js. But it still keeps popping out. Must be something else somwhere else involved as well?

The latter did indeed work for me. I commented that section out and then cleared the cache et voilà! Now it works. I'll wait for your integration then to see how the login can be handled by SMF. :) Thanks!

Dannii

Actually I'm considering changing to Dokuwiki, as Mediawiki has the worst code I've ever seen.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

devnet

Has the hash of passwords changed since 1.1?  This new release from Digital Root doesn't seem to work with 1.1.1...each time I try to login, I get:


Login error:
Incorrect password entered. Please try again.


it seems as though the password cannot be read.  I've tested this out with three test user accounts and none can get in.


Advertisement: