The recommendation was good. Parser.php can be changed to distinguish
between anonymous users and logged-in users for editsection.
As a sample hack in v1.3.7, Parser.php function initialiseFromUser can
be changed from
$this->mEditSection = $user->getOption( 'editsection' );
to
if ($user->getID()) {
$this->mEditSection = $user->getOption( 'editsection' );
} else {
$this->mEditSection = 0;
}
You might want to add a check for a configurable $wgDisableAnonEditSection.
-- Zigger
On Tue, 02 Nov 2004 14:40:01 +0100, Thomas Rother
<t.rother(a)netzwissen.de> wrote:
Hi,
I just asked this on IRC, but I got no real solution yet:
I want to disable the display of the EditSection links on mediawiki
pages which are shown to normal (= not authenticated) readers. The
sectional links should only be visible if a user is signed in.
I can not find such a variable setting in DefaultSettings.php (something
like "wgEditSection = false"), from where it could be put into the
LocalSettings.php. The recommendation from IRC was to hack the
Parser.php code, but: Then I would disable it for any and all users,
which goes far beyond my intension.
Any idea?
Thanks, Thommie
--