Cant hide edit link for user not logged in

Drop in here to discuss whatever you want.
Post Reply
User avatar
nguyenkennie
Rank 0
Rank 0
Posts: 2
Joined: May 30th, 2008, 2:19 am

Cant hide edit link for user not logged in

Post 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
User avatar
nguyenkennie
Rank 0
Rank 0
Posts: 2
Joined: May 30th, 2008, 2:19 am

Re: Cant hide edit link for user not logged in

Post by nguyenkennie »

I able to hide by doing this


$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
User avatar
howard001
Rank 0
Rank 0
Posts: 1
Joined: September 19th, 2009, 8:56 am
Location: US
Contact:

Re: Cant hide edit link for user not logged in

Post 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
User avatar
pakeeza1990
Rank 0
Rank 0
Posts: 3
Joined: January 15th, 2011, 1:12 am
Location: islamabad , Pakistan
Contact:

Re: Cant hide edit link for user not logged in

Post 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 ...
Post Reply