Cant hide edit link for user not logged in

Drop in here to discuss whatever you want.

Cant hide edit link for user not logged in

Postby nguyenkennie » May 30th, 2008, 2:36 am

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

Postby nguyenkennie » May 30th, 2008, 1:02 pm

I able to hide by doing this


$wgGroupPermissions['*']['edit'] = false; in localsetting
#ca-viewsource { display:none!important; } in main.css
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

Postby howard001 » September 19th, 2009, 9:09 am

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
howard001
Rank 0
Rank 0
 
Posts: 1
Joined: September 19th, 2009, 8:56 am
Location: US

Re: Cant hide edit link for user not logged in

Postby pakeeza1990 » January 15th, 2011, 1:24 am

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

Re: Cant hide edit link for user not logged in

Postby LangAmil » October 30th, 2012, 1:44 am

nguyenkennie wrote:I able to hide by doing this


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



This is right and actually you cannot do anything unless you log in.
User avatar
LangAmil
Rank 0
Rank 0
 
Posts: 2
Joined: October 30th, 2012, 1:08 am

Re: Cant hide edit link for user not logged in

Postby LangAmil » October 30th, 2012, 1:49 am

nguyenkennie wrote:I able to hide by doing this


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



This is the correct one, and actually you cant hide that if you're not logged in yet in the forum.
User avatar
LangAmil
Rank 0
Rank 0
 
Posts: 2
Joined: October 30th, 2012, 1:08 am


Return to Chit Chat

Who is online

Users browsing this forum: No registered users and 1 guest

cron