Page 1 of 1

Cant hide edit link for user not logged in

Posted: May 30th, 2008, 2:36 am
by nguyenkennie
Hi

I am appreciate if someone can help me with this issue
I have tried everything but it not working.



I want to hide the edit tab(link) for user that not logged in
I went thru all the helps, google and non of them seems working the way i wanted

#ca-edit { display: none; } not working
$wgDefaultUserOptions ['editsection'] = 0; not working
$wgDefaultUserOptions ['editsection'] = false; not working
$wgGroupPermissions['*']['edit'] = false; show view source link instead of edit link and wont allow to edit
----------------
<?php if(!$this->data['loggedin']) { ?>
<style>
.editsection { display: none; }
</style>
<?php } ?>
----------------



thanks

Re: Cant hide edit link for user not logged in

Posted: May 30th, 2008, 1:02 pm
by nguyenkennie
I able to hide by doing this


$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css

Re: Cant hide edit link for user not logged in

Posted: September 19th, 2009, 9:09 am
by howard001
We can hide link fom not logged in users.
Just do like this
$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css

Re: Cant hide edit link for user not logged in

Posted: January 15th, 2011, 1:24 am
by pakeeza1990
you can hide very very easily from the unlogging persons by just doing that
$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
and i hope that you will understand it easily ...