I meant to do this months ago but just got around to it today. I put a page for ProtectSection.php up on mediawiki.org
http://www.mediawiki.org/wiki/Extension:ProtectSection
it links to the svn version and has the code for my modified version on the page. Originally written by ThomasV... I just tweaked it.
For those who don't already know, ProtectSection.php allows you to block editing of text between <protect></protect> tags from editing by anyone who is not a sysop or a bureaucrat (these group permissions can be modified in the code). My modification suppresses the section edit link for subsections inside protect tags - it may not work properly with caching, but I don't have squid running for my wikis so I can't test that. ===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
Hi, This seems to work for people who are not logged in but is there a way to protect my sections/articles from other logged in users ?
Thanks, Amit
-------------------------------------------------------------- Amitrajit Chatterjee University Library Systems California State University East Bay 25800 Carlos Bee Blvd, Hayward, CA 94542. Phone: 510-885-2990 -----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Hu Sent: Tuesday, April 17, 2007 9:53 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] ProtectSection.php extension
I meant to do this months ago but just got around to it today. I put a page for ProtectSection.php up on mediawiki.org
http://www.mediawiki.org/wiki/Extension:ProtectSection
it links to the svn version and has the code for my modified version on the page. Originally written by ThomasV... I just tweaked it.
For those who don't already know, ProtectSection.php allows you to block editing of text between <protect></protect> tags from editing by anyone who is not a sysop or a bureaucrat (these group permissions can be modified in the code). My modification suppresses the section edit link for subsections inside protect tags - it may not work properly with caching, but I don't have squid running for my wikis so I can't test that. ===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org