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
Cant hide edit link for user not logged in
- nguyenkennie
- Rank 0
- Posts: 2
- Joined: May 30th, 2008, 2:19 am
- nguyenkennie
- Rank 0
- Posts: 2
- Joined: May 30th, 2008, 2:19 am
Re: Cant hide edit link for user not logged in
I able to hide by doing this
$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
Re: Cant hide edit link for user not logged in
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
Just do like this
$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
- pakeeza1990
- 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
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 ...
$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
and i hope that you will understand it easily ...