Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" ); $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;
This effectively locks down the wiki to anyone not logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list mediawiki-l@wikimedia.org Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are not logged in?
I know it can be done because I've done it before. Unfortunately I don't remember what I did. I checked the LocalSettings.php file and didn't find anything. I'm using version 1.8.2.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
I've configured my LocalSettings.php file to allow only registered users "edit" access. I've also disabled the ability for anonymous users to create an account. I think there are a few extras in there to help lock things down.
I should mention that I have a mediawiki site that doesn't show the "edit" links unless you log in. However, looking at the LocalSettings.php file doesn't show anything that would hide the "edit" links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" ); $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;
This effectively locks down the wiki to anyone not logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list mediawiki-l@wikimedia.org Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are not logged in?
I know it can be done because I've done it before. Unfortunately I don't remember what I did. I checked the LocalSettings.php file and didn't find anything. I'm using version 1.8.2.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
If you actually are wanting to change the way it looks rather than just limit access, you'll have to modify whatever skin you are using I would assume. This I don't have a clue about!
Good luck.
JT
--- Damien Hull dhull@digitaloverload.net wrote:
I've configured my LocalSettings.php file to allow only registered users "edit" access. I've also disabled the ability for anonymous users to create an account. I think there are a few extras in there to help lock things down.
I should mention that I have a mediawiki site that doesn't show the "edit" links unless you log in. However, looking at the LocalSettings.php file doesn't show anything that would hide the "edit" links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page",
"Special:Userlogin", "-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['createaccount'] =
false;
$wgGroupPermissions['*']['read'] =
false;
$wgGroupPermissions['*']['edit'] =
false;
$wgGroupPermissions['*']['createpage'] =
false;
$wgGroupPermissions['*']['createtalk'] =
false;
This effectively locks down the wiki to anyone not
logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list
Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are
not logged in?
I know it can be done because I've done it before.
Unfortunately I don't
remember what I did. I checked the
LocalSettings.php file and didn't
find anything. I'm using version 1.8.2.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail
beta.
http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
You may be create about modifying the skin. The "edit" link shows up when you log in though. I'll have to do some more searching. I should have documented what I did the first time.
JTAutry wrote:
If you actually are wanting to change the way it looks rather than just limit access, you'll have to modify whatever skin you are using I would assume. This I don't have a clue about!
Good luck.
JT
--- Damien Hull dhull@digitaloverload.net wrote:
I've configured my LocalSettings.php file to allow only registered users "edit" access. I've also disabled the ability for anonymous users to create an account. I think there are a few extras in there to help lock things down.
I should mention that I have a mediawiki site that doesn't show the "edit" links unless you log in. However, looking at the LocalSettings.php file doesn't show anything that would hide the "edit" links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page",
"Special:Userlogin", "-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['createaccount'] =
false;
$wgGroupPermissions['*']['read'] =
false;
$wgGroupPermissions['*']['edit'] =
false;
$wgGroupPermissions['*']['createpage'] =
false;
$wgGroupPermissions['*']['createtalk'] =
false;
This effectively locks down the wiki to anyone not
logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list
Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are
not logged in?
I know it can be done because I've done it before.
Unfortunately I don't
remember what I did. I checked the
LocalSettings.php file and didn't
find anything. I'm using version 1.8.2.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail
beta.
http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
We added conditional code in MonoBook.php that includes a "display:none" CSS style for the section edit links if the user is not logged in:
<?php if(!$this->data['loggedin']) { ?> <style> <!-- .editsection { display: none; } --> </style> <?php } ?>
This is for Mediawiki 1.5.8; YMMV.
-- Joshua
On 12/1/06 4:01 PM, "Damien Hull" dhull@digitaloverload.net wrote:
You may be create about modifying the skin. The "edit" link shows up when you log in though. I'll have to do some more searching. I should have documented what I did the first time.
JTAutry wrote:
If you actually are wanting to change the way it looks rather than just limit access, you'll have to modify whatever skin you are using I would assume. This I don't have a clue about!
Good luck.
JT
--- Damien Hull dhull@digitaloverload.net wrote:
I've configured my LocalSettings.php file to allow only registered users "edit" access. I've also disabled the ability for anonymous users to create an account. I think there are a few extras in there to help lock things down.
I should mention that I have a mediawiki site that doesn't show the "edit" links unless you log in. However, looking at the LocalSettings.php file doesn't show anything that would hide the "edit" links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page",
"Special:Userlogin", "-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['createaccount'] =
false;
$wgGroupPermissions['*']['read'] =
false;
$wgGroupPermissions['*']['edit'] =
false;
$wgGroupPermissions['*']['createpage'] =
false;
$wgGroupPermissions['*']['createtalk'] =
false;
This effectively locks down the wiki to anyone not
logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list
Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are
not logged in?
I know it can be done because I've done it before.
Unfortunately I don't
remember what I did. I checked the
LocalSettings.php file and didn't
find anything. I'm using version 1.8.2.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail
beta.
http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
It works!
I checked my other MediaWiki site and it's different. The "edit" link and the "edit tab" at the top of the page are both gone. When I login it show up. I also checked the "MonoBook.php" code to see if I did anything to that file and couldn't find anything.
I'll use your code because it works. I'm still wondering what I did to my other site to hide the "edit" link and "edit tab". I need to start writing things down.
Joshua Yeidel wrote:
We added conditional code in MonoBook.php that includes a "display:none" CSS style for the section edit links if the user is not logged in:
<?php if(!$this->data['loggedin']) { ?>
<style> <!-- .editsection { display: none; } --> </style><?php } ?>
This is for Mediawiki 1.5.8; YMMV.
-- Joshua
On 12/1/06 4:01 PM, "Damien Hull" dhull@digitaloverload.net wrote:
You may be create about modifying the skin. The "edit" link shows up when you log in though. I'll have to do some more searching. I should have documented what I did the first time.
JTAutry wrote:
If you actually are wanting to change the way it looks rather than just limit access, you'll have to modify whatever skin you are using I would assume. This I don't have a clue about!
Good luck.
JT
--- Damien Hull dhull@digitaloverload.net wrote:
I've configured my LocalSettings.php file to allow only registered users "edit" access. I've also disabled the ability for anonymous users to create an account. I think there are a few extras in there to help lock things down.
I should mention that I have a mediawiki site that doesn't show the "edit" links unless you log in. However, looking at the LocalSettings.php file doesn't show anything that would hide the "edit" links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page",
"Special:Userlogin", "-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['createaccount'] =
false;
$wgGroupPermissions['*']['read'] =
false;
$wgGroupPermissions['*']['edit'] =
false;
$wgGroupPermissions['*']['createpage'] =
false;
$wgGroupPermissions['*']['createtalk'] =
false;
This effectively locks down the wiki to anyone not
logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list
Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are
not logged in?
I know it can be done because I've done it before.
Unfortunately I don't
remember what I did. I checked the
LocalSettings.php file and didn't
find anything. I'm using version 1.8.2.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail
beta.
http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Consider using Subversion or another source control system to track changes. It's often helpful to have a computer show you the differences between today's version of Localsettings.php and last Tuesday's...
-- Joshua
On 12/2/06 3:09 PM, "Damien Hull" dhull@digitaloverload.net wrote:
It works!
I checked my other MediaWiki site and it's different. The "edit" link and the "edit tab" at the top of the page are both gone. When I login it show up. I also checked the "MonoBook.php" code to see if I did anything to that file and couldn't find anything.
I'll use your code because it works. I'm still wondering what I did to my other site to hide the "edit" link and "edit tab". I need to start writing things down.
Joshua Yeidel wrote:
We added conditional code in MonoBook.php that includes a "display:none" CSS style for the section edit links if the user is not logged in:
<?php if(!$this->data['loggedin']) { ?>
<style> <!-- .editsection { display: none; } --> </style><?php } ?>
This is for Mediawiki 1.5.8; YMMV.
-- Joshua
On 12/1/06 4:01 PM, "Damien Hull" dhull@digitaloverload.net wrote:
You may be create about modifying the skin. The "edit" link shows up when you log in though. I'll have to do some more searching. I should have documented what I did the first time.
JTAutry wrote:
If you actually are wanting to change the way it looks rather than just limit access, you'll have to modify whatever skin you are using I would assume. This I don't have a clue about!
Good luck.
JT
--- Damien Hull dhull@digitaloverload.net wrote:
I've configured my LocalSettings.php file to allow only registered users "edit" access. I've also disabled the ability for anonymous users to create an account. I think there are a few extras in there to help lock things down.
I should mention that I have a mediawiki site that doesn't show the "edit" links unless you log in. However, looking at the LocalSettings.php file doesn't show anything that would hide the "edit" links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page",
"Special:Userlogin", "-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['createaccount'] =
false;
$wgGroupPermissions['*']['read'] =
false;
$wgGroupPermissions['*']['edit'] =
false;
$wgGroupPermissions['*']['createpage'] =
false;
$wgGroupPermissions['*']['createtalk'] =
false;
This effectively locks down the wiki to anyone not
logged in. We have a very small userbase that rarely changes, so I don't mind having to manually create the accounts. Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ---- From: Damien Hull dhull@digitaloverload.net To: MediaWiki announcements and site admin list
Sent: Tuesday, November 28, 2006 10:55:55 PM Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are
not logged in?
I know it can be done because I've done it before.
Unfortunately I don't
remember what I did. I checked the
LocalSettings.php file and didn't
find anything. I'm using version 1.8.2.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
__ _______
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail
beta.
http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
__ _______ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org