Extension talk:ProtectSection
From MediaWiki.org
[edit] Problem: <protect></unprotect> tags are visible in text
The code seems to work, but the <protect> and </unprotect> tags are visible in the text, which severely limits the extension's usefulness. Anybody know how to tweak it so that the tags aren't visible?
-
- Ther's no </unprotect>. If you are using it, the tags will just be shown as text. -- Duesentrieb ⇌ 13:15, 29 April 2007 (UTC)
-
-
- I mistyped in the original message - the <protect> and </protect> tags are visible in the text. -- Dctoedt 15:49, 29 April 2007 (UTC)
-
-
-
-
- I had the same problem and this does the job for me <!-- <protect> --> - as long as nobody deletes part of the comment tags. Deleting --> from <!-- </protect> --> can probably comment out the rest of the page...haven't tried though.
- Another alternative is to make a class and make a span with white text. But these are all workarounds...maybe a developer can easily filter you the tags before rendering?
- The code for that already exists in the tweaked version on the page. But the issue is that the html entities are what is in the text, not the < and > that you see. The code needs to be copied from the edit view, not from a simple copy or else the stripping of the tags won't work. Dantman
- I just changed the pre to source in the page, so you can copy the code fine now from the page because source escapes those HTML entities so you can copy the correct source. Dantman 14:19, 12 July 2007 (UTC)
- The code for that already exists in the tweaked version on the page. But the issue is that the html entities are what is in the text, not the < and > that you see. The code needs to be copied from the edit view, not from a simple copy or else the stripping of the tags won't work. Dantman
-
-
[edit] Problem with mediawiki 1.12
It seems that message file cause error on mediawiki 1.12 (see this thread). Could author of this extension make the update for us ? -- phkoech 26 april 2008
- It worked for me. Dagoth Ur, Mad God 02:25, 10 August 2008 (UTC)
[edit] Does ProtectSection need the security disclaimer?
Does this extension need the security disclaimer at the top of the page? It seems unlikely that any of the issues described on Security issues with authorization extensions apply?
Tnabtaf 21:22, 16 May 2008 (UTC)

