I made a page that doesnt require to edit its section so I want to remove those links in the wiki page. Where can i find that part? I really tried to look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :)
Easiest way is to protect it. The edit link then disappears when non-sysops visit it.
jaro wrote:
I made a page that doesnt require to edit its section so I want to remove those links in the wiki page. Where can i find that part? I really tried to look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :) _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Oops - my mistake - didn't read the "Section" bit.
You have to insert "__NOEDITSECTION__" anywhere on that page for all the edit links to disappear.
Vinayak
jaro wrote:
I made a page that doesnt require to edit its section so I want to remove those links in the wiki page. Where can i find that part? I really tried to look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :) _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Ok thank you very much :) that helped.
But i'l ask more.. Do you know where I can see the code for that. What php file would that be? The other users might forget inserting "__NOEDITSECTION__" and i want to eliminate that probablitiy.
On 11/10/05, Vinayak Nagaraj v.nagaraj@econwiki.lse.ac.uk wrote:
Oops - my mistake - didn't read the "Section" bit.
You have to insert "__NOEDITSECTION__" anywhere on that page for all the edit links to disappear.
Vinayak
jaro wrote:
I made a page that doesnt require to edit its section so I want to
remove
those links in the wiki page. Where can i find that part? I really tried
to
look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :) _______________________________________________ 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
--
+ ( + ,;*"*;, + *;Y,*; __)(__ Live.. Love.. and Enjoy Life..
The code responsible for that is part of the Parser class. You could also use sitewide CSS to hide section edit links, if desired.
Rob Church
On 10/11/05, jaro november.diary@gmail.com wrote:
Ok thank you very much :) that helped.
But i'l ask more.. Do you know where I can see the code for that. What php file would that be? The other users might forget inserting "__NOEDITSECTION__" and i want to eliminate that probablitiy.
On 11/10/05, Vinayak Nagaraj v.nagaraj@econwiki.lse.ac.uk wrote:
Oops - my mistake - didn't read the "Section" bit.
You have to insert "__NOEDITSECTION__" anywhere on that page for all the edit links to disappear.
Vinayak
jaro wrote:
I made a page that doesnt require to edit its section so I want to
remove
those links in the wiki page. Where can i find that part? I really tried
to
look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :) _______________________________________________ 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
--
- ( +
,;*"*;, + *;Y,*; __)(__ Live.. Love.. and Enjoy Life.. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Thanks :)
On 11/10/05, Rob Church robchur@gmail.com wrote:
The code responsible for that is part of the Parser class. You could also use sitewide CSS to hide section edit links, if desired.
Rob Church
On 10/11/05, jaro november.diary@gmail.com wrote:
Ok thank you very much :) that helped.
But i'l ask more.. Do you know where I can see the code for that. What
php
file would that be? The other users might forget inserting "__NOEDITSECTION__" and i want to eliminate that probablitiy.
On 11/10/05, Vinayak Nagaraj v.nagaraj@econwiki.lse.ac.uk wrote:
Oops - my mistake - didn't read the "Section" bit.
You have to insert "__NOEDITSECTION__" anywhere on that page for all
the
edit links to disappear.
Vinayak
jaro wrote:
I made a page that doesnt require to edit its section so I want to
remove
those links in the wiki page. Where can i find that part? I really
tried
to
look at it but I gave up.
Im using Mediawiki 1.5.2
Thanks for any help :) _______________________________________________ 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
--
- ( +
,;*"*;, + *;Y,*; __)(__ Live.. Love.. and Enjoy Life.. _______________________________________________ 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
--
+ ( + ,;*"*;, + *;Y,*; __)(__ Live.. Love.. and Enjoy Life..
On 10/11/05, jaro november.diary@gmail.com wrote:
Ok thank you very much :) that helped.
But i'l ask more.. Do you know where I can see the code for that. What php file would that be? The other users might forget inserting "__NOEDITSECTION__" and i want to eliminate that probablitiy.
Well, they can be disabled for all pages by individual users in their preferences, and you can set the default value for logged out and new users in LocalSettings.php, as explained in this part of DefaultSettings.php (remember never to edit DefaultSettings directly; it is for system defaults, and will be overwritten on upgrade):
/** * Settings added to this array will override the language globals for the user * preferences used by anonymous visitors and newly created accounts. (See names * and sample values in languages/Language.php) * For instance, to disable section editing links: * $wgDefaultUserOptions ['editsection'] = 0; * */ $wgDefaultUserOptions = array();
As for "what file would that be", what is it you want to change - disable section editting for all pages? Disable based on some hard-coded list or regex, or by namespace? Create an easier way to disable it (rather than just teaching your users the existing way, which isn't exactly difficult once you know it)?
Anyway, the code that determines *whether to show* the edit links (by looking in the user prefs, and checking for the "__NOEDITSECTION__" magic word) appears to be in includes/Parser.php, function formatHeadings().
-- Rowan Collins BSc [IMSoP]
mediawiki-l@lists.wikimedia.org