Hi,
I would like to show the *section edit* links ([Edit]) for all users, even those who are not logged in. Is that possible?
Thank you for your help!
Laurent
Wikimini wrote:
Hi,
I would like to show the *section edit* links ([Edit]) for all users, even those who are not logged in. Is that possible?
Thank you for your help!
Laurent
Sure. That's the default.
Either they can't edit that page, or it is disabled via editsection preference in $wgDefaultUserOptions.
Sorry my request was not clear enough. I want to show these links even for users that can't edit the wiki (in my case anonymous users). Is that possible?
2010/12/5 Platonides Platonides@gmail.com
Wikimini wrote:
Hi,
I would like to show the *section edit* links ([Edit]) for all users,
even
those who are not logged in. Is that possible?
Thank you for your help!
Laurent
Sure. That's the default.
Either they can't edit that page, or it is disabled via editsection preference in $wgDefaultUserOptions.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Wikimini wrote:
Sorry my request was not clear enough. I want to show these links even for users that can't edit the wiki (in my case anonymous users). Is that possible?
You would need to modify the code. Why do you want to do such thing?
Because I think these links would help make more visible the possibility to edit the page to newcomers and readers, especially those who did not visit the main page first. In the same way I replaced for example the "View source" tab by "Edit", even for unregistered users. Thus I would like these edit links to be shown at every section and to everyone. If a non registered user click on such a link then he should be taken to the page that shows the view source (either the whole page or a section, this is not really important). If someone could help me achieve that with a clean code I would be really grateful!
2010/12/6 Platonides Platonides@gmail.com
Wikimini wrote:
Sorry my request was not clear enough. I want to show these links even
for
users that can't edit the wiki (in my case anonymous users). Is that possible?
You would need to modify the code. Why do you want to do such thing?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Ok I finally commented out the following lines in * includes\parser\Parser.php* :
if( $showEditLink && !$this->mTitle->quickUserCan( 'edit' ) ) { $showEditLink = 0; } If there is a better solution I would be glad to hear it
Laurent
2010/12/6 Wikimini webmaster@wikimini.org
Because I think these links would help make more visible the possibility to edit the page to newcomers and readers, especially those who did not visit the main page first. In the same way I replaced for example the "View source" tab by "Edit", even for unregistered users. Thus I would like these edit links to be shown at every section and to everyone. If a non registered user click on such a link then he should be taken to the page that shows the view source (either the whole page or a section, this is not really important). If someone could help me achieve that with a clean code I would be really grateful!
2010/12/6 Platonides Platonides@gmail.com
Wikimini wrote:
Sorry my request was not clear enough. I want to show these links even
for
users that can't edit the wiki (in my case anonymous users). Is that possible?
You would need to modify the code. Why do you want to do such thing?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Laurent,
I think you're making a mistake by displaying "Edit" this way, when users cannot edit.
1. You are telling users they can edit a page, and then after they click the link, denying permission. I think this isn't a good user interface design, and it may frustrate your users.
2. You are modifying MediaWiki core code. Your changes will disappear (get overwritten) whenever you update MediaWiki in the future. This makes the wiki harder for you to maintain. If you must add these section links, you can use JavaScript to place new "A" tags on the page, without modifying any core code (put it in Mediawiki:Common.css or similar).
Just my opinion... :-) DanB
mediawiki-l@lists.wikimedia.org