SMF and MediaWiki Bridge

Started by rsw686, February 08, 2008, 08:28:51 PM

Previous topic - Next topic

rsw686

Quote from: Bust_Ed on June 10, 2008, 07:48:09 AM
It seems, that i've found some kind of bug... Most of my users are belong to post count based group, which i renamed in Russian language. They can't login, but error given is that they have bad password. I think, there should be another warning, like "Your group is not allowed to login".

The goal of my integration was to not modify the mediawiki files. I don't think that type of warning is possible without modifications to the source. I was going to let them login and restrict their editing, but that brought up a whole new complex issue with dealing with media wiki permissions and mapping them correctly.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Bust_Ed

That's OK, so just note somewhere in readme, that autlogin feature doesn't work with MW 1.6.

SO, at the moment, i need:
anonymous disabled read
members allowed read
special group + admins allowed write

Is that possible?


rsw686

Quote from: NIBOGO on June 11, 2008, 06:28:26 PM
Awesome bridge , but i also need something for the theme

Thanks ;)

You'll have to modify an existing theme or create your own. I used the Kind of Blue theme, added my header to the top, and changed the colors. It wasn't much different then editing the SMF theme.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

locjan

i use classic theme in my forum so i think no problem right to modified it
locjan.com - Free Korean Dramas OST shwoomp.com - Art of shwoomp

Bust_Ed

rsw686, what about my question?

rsw686

Quote from: Bust_Ed on June 10, 2008, 09:55:57 AM
That's OK, so just note somewhere in readme, that autlogin feature doesn't work with MW 1.6.

SO, at the moment, i need:
anonymous disabled read
members allowed read
special group + admins allowed write

Is that possible?

Yeah I'm fairly sure that would be possible. It would take some changing with the mediawiki permissions. With my bridge you can assign admins and specific smf groups sysop privileges on media wiki. You would just need to configure * for guests to no read, logged in for read only, and sysop for read / write.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Bust_Ed

OK, i'll try to figure it out. Thanks for your support.

kiakanpa

Great bridge - I can get it to work, but in my wiki template I use ssi to pull forum information to the left bar as you can see at http://off-the-grid.kiasworld.co.uk/ [nofollow]

When i enable this bridge the ssi stops working - but you are logged into the wiki - any ideas?

rsw686

Quote from: kiakanpa on July 01, 2008, 04:32:56 AM
Great bridge - I can get it to work, but in my wiki template I use ssi to pull forum information to the left bar as you can see at http://off-the-grid.kiasworld.co.uk/

When i enable this bridge the ssi stops working - but you are logged into the wiki - any ideas?

Not sure on that. I have never used the SSI functions. Why not make your left bar with PHP? You can use

<?php if($this->data['loggedin']==0) { ?>

to determine if the user is logged into the wiki. I use this to customize the menu on my wiki.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

kiakanpa

Thanks rsw686, but the left bar is made with php - It might seem a bit of a strange way at first - but the header, main menu, and left bar of the site are all includes that are used over the whole site (including smf forum, modx cms, mediawiki, and lifetype blog) - I have done this to make a consitant look/feel across the whole site while only having to maintain one template (i am currently working toward this - i will get there in the end  >:()

Now, this included template is fine for all the other parts - but as the wiki was authenticating with this module (before my 'upgrade') - there seems to be an incompatiblity between the two - it is probably going to be something difficult to find like a shared variable name or something.

Has anyone else got this module to work with smf ssi also on the wiki page? anyone fancy trying it to see if its just me :P?

Paracelsus

Quote from: kiakanpa on July 01, 2008, 08:03:50 AM
Has anyone else got this module to work with smf ssi also on the wiki page? anyone fancy trying it to see if its just me :P?

I tried, but had a similar problem. After reading some things about sessions in PHP, my conclusion is that it's impossible to use SSI with this bridge, since it creates 2 different sessions in the same page.

Although you can always use HTML above and below in the mediawiki index page to make it similar to SMF template ;)

kiakanpa

hmmm... i might have a look at creating (yet another) bridge. I think it is possible to use mediawikis autoauth with smf's ssi - i'll have a look.

rsw686

I see what you are trying to do. I was thinking apache SSI functions not the SMF SSI PHP functions. Yeah the problem is the two sessions. You could just poll the database directly and build your data. I tried getting MediaWiki to work with the SMF session and nothing would work right. It took a few hours just to get the auto authentication to work as I had to start up the SMF session and set the redirect URL.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Chris369

Need a bit of help with this.

My wiki is installed at wiki.psnfriends.net
Forum is in root of psnfriends.net

So I think I need these variables

wgsmfpath = "..";
wgcookiedomain = ".psnfriends.net"

But I can't see where I change these variables? And have I even got them right? Is there any others I need to change?

Thanks for any help  :)

Chris369


salithus

Quote from: rsw686 on June 15, 2008, 09:33:37 AM
Quote from: Bust_Ed on June 10, 2008, 09:55:57 AM
That's OK, so just note somewhere in readme, that autlogin feature doesn't work with MW 1.6.

SO, at the moment, i need:
anonymous disabled read
members allowed read
special group + admins allowed write

Is that possible?

Yeah I'm fairly sure that would be possible. It would take some changing with the mediawiki permissions. With my bridge you can assign admins and specific smf groups sysop privileges on media wiki. You would just need to configure * for guests to no read, logged in for read only, and sysop for read / write.

I need to do something like this too.

$wgGroupPermissions['*']['edit'] = false; // MediaWiki Setting
$wgGroupPermissions['*']['read'] = false; // MediaWiki Setting
$wgSMFGroupName = array('GroupA', 'GroupB', 'GroupC', 'GroupD', 'GroupE', 'GroupF');


That's what I have right now.  I need to make it so that GroupA - GroupE can write and GroupF can only read, but am not sure where to start!  Thanks!

Chris369

Quote from: Chris369 on July 08, 2008, 12:25:54 PM
Need a bit of help with this.

My wiki is installed at wiki.psnfriends.net
Forum is in root of psnfriends.net

So I think I need these variables

wgsmfpath = "..";
wgcookiedomain = ".psnfriends.net"

But I can't see where I change these variables? And have I even got them right? Is there any others I need to change?

Thanks for any help  :)

Someone must be able to help me with this? :(

kiakanpa

Ok - I have solved my problem without having to write another bridge. If anyone else wishes to use smf's SSI functions with this bridge all you need to do is remove the forums settings.php require from the top of the file & manually enter your smf details. Hope this helps others.

Paracelsus

Quote from: kiakanpa on July 16, 2008, 04:38:30 AM
Ok - I have solved my problem without having to write another bridge. If anyone else wishes to use smf's SSI functions with this bridge all you need to do is remove the forums settings.php require from the top of the file & manually enter your smf details. Hope this helps others.

Does that influence security for any reason or not at all?

Advertisement: