[Mediawiki-l] "View source" on 1.6.x?

Rotem Liss mail at rotemliss.com
Mon Jun 12 16:27:10 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tels wrote:
> Hello,
> 
> on my own wiki anonymous users are dissallowed to edit pages. However, I 
> want them to be able to view the source of any page.
> 
> The FAQ says this:
> 
>  Question: I want anonymous users to be able to view the wiki source on
>   any page, without giving editing access. Is this possible?
> 
> But doesn't give any answer to that question. I now googled and looked at 
> LocalSettings.php, but I can't see how I achive that effect.
> 
> Since it works on wikipedia.org, it must be possible. Does anybody know 
> how?

In Wikipedia, the pages are protected by the "protect" tab. In your
wiki, you take the permission "edit" from anonymous users. Unluckily,
the source is not shown when showing the error message about "you have
to log in to edit". You can base on the something obsolete patch in
http://bugzilla.wikimedia.org/show_bug.cgi?id=1859 to redevelop the code
(unluckily, it wasn't commited before it became obsolete).

- --
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site www.rotemliss.com

#define KeyFingerPrint 4AFD 8579 A449 4267 BED9 38E5 6EF8 5B1F EBDE 7AC0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEjZXdbvhbH+veesARAsR3AKDHHJhMoE8gd5XHRSa62kv+w4usQACdEJJ6
KBj8XSYJSh2YysW9beIJ0/Q=
=bJeA
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list