SMF MediaWiki integration released

Started by SleePy, December 05, 2011, 11:40:48 PM

Previous topic - Next topic

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

RustyBarnacle

Does this work for the current version of mw. 1.20.4?  Or before I begin should I be looking at starting with an older version to guarantee it works with the latest tweaks posted in here?

emanuele

I would suggest to use the latest and if you encounter any issue, you report it.
It has worked from WM 1.16 up to 1.20.3 with just a couple of minor tweaks (that BTW are not yet included in the "official" distribution, so you have to dig the topic to find them ;)), so I'm confident it will work with 1.20.4 with the same tweaks described in this topic.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

RustyBarnacle

Thats what I figured and we're in the process of doing.  So far it's just wiki building and we'll integrate when it's done.  Thanks!

AnakinSpain

Why I have this error?

"Cannot retrieve contributors at this time"

I modified SMFPath according my instalation...

emanuele

What version of SMF e MW? (In particular the latter.)

Never seen this error before...

Is the forum working properly?
Try checking your database and repair all the tables.
Do you have mods?
Are SMF and MW on the same database?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

AnakinSpain

What version of SMF e MW?: SMF 2.0.4   Media wiki: 1.20.4
Is the forum working properly?: Yes, you can see in www.clubsunroller.com/foro
Try checking your database and repair all the tables: No
Do you have mods?: Yes (
1.     Birthday On Register   
2.   Aeva Media    1.4w     
3.   Pretty URLs    1.0     
4.   Add Social Media Icons To Profiles    1.1.0     
5.   Social Login    2.2     
6.   YouTube BBCode    2.6     
7.   Karma Buttons    1.1     
8.   Disable Image Toggle    1.1     
9.   SimplePortal    2.3.5     
10.   Downloads System    2.0     
11.   Tapatalk SMF 2.0 RC5/Final Plugin    3.6.0 
12.   KeyCAPTCHA for SMF    2.5     [
13.   Ad Managment
Are SMF and MW on the same database?: YES

I have to say that I convert from phpbb and I have other membergroups.

I only modify localsettings in order to change mi forum path to "foro"

emanuele

Quote from: AnakinSpain on April 29, 2013, 04:44:02 AM
Try checking your database and repair all the tables: No
"No" you didn't do it?
"No" you don't want to do it?
"No" you don't know how to do it?
"No" it didn't work?
Just to be sure. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

AnakinSpain

#128
Quote from: emanuele on April 29, 2013, 05:42:36 AM
Quote from: AnakinSpain on April 29, 2013, 04:44:02 AM
Try checking your database and repair all the tables: No
"No" you didn't do it?
"No" you don't want to do it?
"No" you don't know how to do it?
"No" it didn't work?
Just to be sure. ;)

Sorry, I do from MySQL panel and I get in a lot of tables this error: "The storage engine for the table doesn't support r.." doing rapair table.

Then I reinstall selecting MyISAM as type of document instead of inmo. But it is the same error.
"Cannot retrieve contributors at this time"

AnakinSpain



emanuele

What exactly did you do to use the auth file?
In other words, what exactly did you write in LocalSettings.php?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

AnakinSpain

Well now when I open my wiki: www.clubsunroller.com/wiki I didnt get anything just a code of gitub!!

emanuele

That's why I asked you to post what exactly you did...but apparently it's not that easy to get answers... :P

https://raw.github.com/SimpleMachines/smf-mw-auth/master/Auth_SMF.php

Save this file on your desktop (ctrl+s in most of the browsers) and upload it via ftp to your MW extensions directory.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

AnakinSpain

Hehehe,sorry.

Well, now It runs.

I did click in register It loads register page of SMF ->> It is OK, but How I login into wiki?

What I want is create a group in SMF, for example "Wiki redacters", and what I want is that:

- All users can read wiki
- Only admin and users of group "Wiki redacters" can create pages and content in wiki

emanuele

Most of the answers are in the comment at the beginning of the auth file, starting from here:
https://github.com/SimpleMachines/smf-mw-auth/blob/master/Auth_SMF.php#L25


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

AnakinSpain

Well, after modify files, I get an error: Warning: session destroy(): trying to destroy unitialized session in /path_to_wiki/extensions/auth_smf.php on line 311
Then I truncate table of user and then integration works very well.

Now I have to modify permisions.

I have create a group in SMF "Colaborador" wich I want to have permissions to create, and edit pages.


AnakinSpain

All of that is new for me,  I have been all the afternoon trying to make it, but  I did not.

I have in SMF some groups, but I only are interested in two:
- Administrators: group id = 1
- Redactores wiki: group id = 5

I have in localsettings that:

# If you experience the issue where you appear to be logged in
# eventhough you are logged out then disable the page cache.
$wgEnableParserCache = false;
$wgCachePages = false;

# SMF Authentication
# To get started you only need to configure wgSMFPath.
# The rest of the settings are optional for advanced features.

# Relative path to the forum directory from the wiki
# Do not put a trailing /
# Example: /public_html/forum and /public_html/wiki -> ../forum
$wgSMFPath = "../foro";

# Use SMF's login system to automatically log you in/out of the wiki
# This works best if you are using SMF database sessions (default).
# Make sure "Use database driven sessions" is checked in the
# SMF Admin -> Server Settings -> Feature Configuration section
# NOTE: Make sure to configure the $wgCookieDomain below
$wgSMFLogin = true;
$wgCookieDomain = 'SMFCookie11';

# Members in these SMF groups will not be allowed to sign into wiki.
# This is useful for denying access to wiki and a easy anti-spam
# method.  The group ID, which can be found in the url (;group=XXX)
# when viewing the group from the administrator control panel.
#$wgSMFDenyGroupID = array(4);

# Grant members of this SMF group(s) access to the wiki
# NOTE: The wgSMFDenyGroupID group supersedes this.
#wgSMFGroupID = array(2);

# Grant members of this SMF group(s) wiki sysop privileges
# NOTE: These members must be able to login to the wiki
#$wgSMFAdminGroupID = array(1);

# SMF to wiki group translation.  This allows us to assign wiki groups
# to those in certain SMF groups.
$wgSMFSpecialGroups = array(
  // SMF Group ID => Wiki group name,
5 => 'autoconfirmed',
       1 => 'administrator',
       5 => 'editor',
);

# THIS MUST BE ADDED.  This prevents direct access to the Auth file.
define('SMF_IN_WIKI', true);

# Load up the extension
require_once "$IP/extensions/Auth_SMF.php";
$wgAuth = new Auth_SMF();


$wgGroupPermissions['*']['edit'] = false; // MediaWiki Setting


I want that only group adminstrators and "redactores wiki" can create and edit pages.
Other users only read.

But I can not do that...

emanuele

Okay...I'm very sorry... :-[

I left that post around for a second (5 days ago) and in a minute the browser's window was filled with tabs and I completely forgot that this post was already written and waiting (and to be honest I thought I posted it)... :-[
Well, in the end it doesn't give much valuable informations... ::)

The bridge seems configured properly, now you should set the MW permissions, but that's something I have no experience with...you should ask on some mediawiki support forum/mailinglist/wikipage...
I may try to check, though I'm not sure when...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Draffi

Definatly...the SMF Bridge for MW (v1.21.1) are not working.

(fresh installed on both, XAMPP)

Have an error:
Warning: session_destroy(): Trying to destroy uninitialized session...

Advertisement: