How do I: prevent editting of personal articles

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
Davinia
Rank 1
Rank 1
Posts: 5
Joined: May 14th, 2009, 12:16 pm

How do I: prevent editting of personal articles

Post by Davinia »

Hi,

I'm setting up a new wiki, with one of your marvellous skins, and I have a question.

On this site I would like to have a marketlike tradingplace (a mini ebay for very specific items). I set it up so that people place an item via a template, fill in the specifics and people can react via the respective Talk-pages.
Is there any way I can prevent editting by everyone, but the article-starter (and sysop) and still have the talk-pages available for everyone?

It would be a very big help for me if you know the answer to this question.

Thanx
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I: prevent editting of personal articles

Post by Paul »

There is an extension called SimpleSecurity, check it at http://www.mediawiki.org/wiki/Extension:SimpleSecurity

This might be the one that you are looking for...
User avatar
Davinia
Rank 1
Rank 1
Posts: 5
Joined: May 14th, 2009, 12:16 pm

Re: How do I: prevent editting of personal articles

Post by Davinia »

I've tried adding the extention, but I'm getting the following malfunction:
Fatal error: Cannot redeclare wfsimplesecuritydbhook() (previously declared in /home/davi/domains/davinia.nl/public_html/project/extensions/SimpleSecurity/SimpleSecurity.php:416) in /home/davi/domains/davinia.nl/public_html/project/extensions/SimpleSecurity/SimpleSecurity.php on line 436
what did I do wrong?
I've also asked this question in the accompanying talk-page of the extention.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I: prevent editting of personal articles

Post by Paul »

Have you gotten the latest version? It works great on my wiki...
User avatar
Davinia
Rank 1
Rank 1
Posts: 5
Joined: May 14th, 2009, 12:16 pm

Re: How do I: prevent editting of personal articles

Post by Davinia »

Yep, latest version

addition to localsettings.php

Code: Select all

$wgSecurityUseDBHook = true; # this directive MUST be used before the extension include
require('extensions/SimpleSecurity/SimpleSecurity.php');


$wgSecurityUseDBHook = true; # Add this to enable the experimental DB hook for stronger security
include("$IP/extensions/SimpleSecurity/SimpleSecurity.php");


$wgPageRestrictions['Category:Showcase']['edit'] = array('sysop', 'management');
As it clearly says #this directive MUST be used before the extension include

i've got the include AND the require in the localsettings. This is said to be wrong on the talkpage, but no one says which one should stay.


And please explain, if you read:
Installation & Very important note of http://www.mediawiki.org/wiki/Extension:SimpleSecurity

How can you not add both?
You simply cannot add one thing before another and not have both
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I: prevent editting of personal articles

Post by Paul »

This is what I have in my LocalSettings.php:

Code: Select all

$wgSecurityUseDBHook = true;
require_once("$IP/extensions/SimpleSecurity/SimpleSecurity.php");
$wgSecurityRenderInfo = true;
I didn't add or change anything else, and it works good.
User avatar
Davinia
Rank 1
Rank 1
Posts: 5
Joined: May 14th, 2009, 12:16 pm

Re: How do I: prevent editting of personal articles

Post by Davinia »

What I added is exactly how it says on the installation notes. That is why I did it that way....

anyways, I'll try what you did.

What does the:

Code: Select all

$wgSecurityRenderInfo = true;
bit do? That is not in the installation notes
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I: prevent editting of personal articles

Post by Paul »

I believe that is one of the settings, check the extension for details.
Post Reply