Mailing List Archive

Security level changing link appearance
I'm testing MediaWiki for use as a knowledge for victim assistance
professionals, but which will also be available for viewing by the
general public. Due to the specialist nature of the knowledge base,
I'm enabling the following security strings in LocalSettings.php to
limit editors to those who sign on, and reserving new account
creation to myself (I should mention that I am most definitely not a
programmer):

# Specify who can edit
$wgWhitelistEdit = true;
# Specify who may create new accounts:
$wgWhitelistAccount = array ( 'user' => 0, 'sysop' => 1, 'developer'
=> 1 );

I've noticed that when $wgWhitelistAccount=array is enabled,
hyperlinks on the site lose their underlining. The text still
appears in blue (or red for new pages), but the hypertext underlining
only becomes visible to users after they log in. This change takes
place in all browsers I've tested (IE, Netscape, Firefox, Opera).

Is there a way to correct this? If so, please explain simply; I'll
do my best to follow instructions, but as I said, I'm not a
programmer.

Thanks!

Randy McCall
-------------------------------------
Victim Assistance Online
info@vaonline.org
http://www.vaonline.org/
-------------------------------------
Re: Security level changing link appearance [ In reply to ]
On Oct 8, 2004, at 6:39 AM, Randy McCall wrote:
> I've noticed that when $wgWhitelistAccount=array is enabled,
> hyperlinks on the site lose their underlining. The text still
> appears in blue (or red for new pages), but the hypertext underlining
> only becomes visible to users after they log in. This change takes
> place in all browsers I've tested (IE, Netscape, Firefox, Opera).

This doesn't seem to be related to $wgWhitelistAccount or
$wgWhitelistEdit; the styles show with underline off (except on hover)
when not logged in whether it's set or not.

The default user settings for a newly created account have it on, but
for some reason the MonoBook skin code special-cases the not-logged-in
state and doesn't output the style rule. This looks like a bug and will
probably be removed; you can do it manually for now. Edit
SkinPHPTal.php and find this bit:

if($wgUser->getID() != 0) {
if ( 1 == $wgUser->getOption( "underline" ) ) {
$s .= "a { text-decoration: underline; }\n";
} else {
$s .= "a { text-decoration: none; }\n";
}
}

Change it to:
if ( 1 == $wgUser->getOption( "underline" ) ) {
$s .= "a { text-decoration: underline; }\n";
} else {
$s .= "a { text-decoration: none; }\n";
}

-- brion vibber (brion @ pobox.com)
Re: Security level changing link appearance [ In reply to ]
On 8 Oct 2004 at 11:12, Brion Vibber wrote:
> The default user settings for a newly created account have it on, but
> for some reason the MonoBook skin code special-cases the not-logged-in
> state and doesn't output the style rule. This looks like a bug and will
> probably be removed; you can do it manually for now. Edit
> SkinPHPTal.php and find this bit...

Worked like a charm, thanks!

Randy McCall
-------------------------------------
Victim Assistance Online
info@vaonline.org
http://www.vaonline.org/
-------------------------------------