Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-17 Thread Matthias Korn
Ok, that's great to remove some of the default buttons. Neat little hack! Thanks, matsch Am Mon, 17 Aug 2009 00:35:36 +0200 schrieb Platonides platoni...@gmail.com: Matthias Korn schrieb: Try this instead: function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId)

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-17 Thread Claus Juhl Knudsen
Thank a bunch guys. I'll go with the solution Matthias outlined. Claus 2009/8/17 Matthias Korn mat...@rockinchina.com Ok, that's great to remove some of the default buttons. Neat little hack! Thanks, matsch Am Mon, 17 Aug 2009 00:35:36 +0200 schrieb Platonides platoni...@gmail.com:

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Matthias Korn
Hi Platonides, Am Sun, 16 Aug 2009 00:34:31 +0200 schrieb Platonides platoni...@gmail.com: [ Removing buttons from the editing toolbar, code at http://wiki.rockinchina.com/index.php?title=MediaWiki:Common.js ] It doesn't work because the removing code is run before the button are added. Ok,

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Michael Daly
Ekompute .info wrote: Alternatively, how about having a second copy of SkinTemplate.php in the relevant skin folder and then redirecting the reference to point to the correct SkinTemplate? I don't know what code changes you're referring to, however, you can probably take advantage of the

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Ekompute .info
Hi Mike, I amended the following parts: if( $this-iscontent ) { $subjpage = $this-mTitle-getSubjectPage(); $talkpage = $this-mTitle-getTalkPage(); $nskey = $this-mTitle-getNamespaceKey(); // $content_actions[$nskey] = $this-tabAction( // $subjpage, // $nskey, // !$this-mTitle-isTalkPage()

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Platonides
Matthias Korn schrieb: Try this instead: function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) { if ((imageId==mw-editbutton-image) || (imageId==mw-editbutton-media)) return; mwEditButtons[mwEditButtons.length] = {imageId: imageId, imageFile:

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Michael Daly
Ekompute .info wrote: Hi Mike, I amended the following parts: if( $this-iscontent ) { $subjpage = $this-mTitle-getSubjectPage(); $talkpage = $this-mTitle-getTalkPage(); [...] 'useful_links', $this-mTitle-getNamespace() == 112 !$prevent_active_tabs,'', true); } So it would appear that you

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Ekompute .info
Hi Mike, thank you very much for your comment, especially that part that says: If someone decides in the future to enforce this in the class by putting the keyword into the class definition, your code will no longer be able to inherit. If it ever happens, at least I am forewarned. PM Poon On Mon,

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-16 Thread Michael Daly
Ekompute .info wrote: If it ever happens, at least I am forewarned. It happened to me with a function in either the 12 to 13 or the 13 to 14 upgrade. I simply put into bugzilla a request to undo the restriction and it was reversed. In my case it was an obvious (to me) example of a

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-15 Thread jidanni
MK == Matthias Korn mat...@rockinchina.com writes: MK Actually, removing buttons 6,7 does not seem to work (file link and MK math are still there). But maybe it will get you started. Tell me if MK you sorted out how to remove those two though... ;-) Hmmm, see also Bug #19848 not all editing

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-15 Thread Ekompute .info
I think you can go directly to SkinTemplate.php in the include folder to delete it but then again, I understand that one should not meddle with any files in the include folder. PM Poon On Sun, Aug 16, 2009 at 1:14 AM, jida...@jidanni.org wrote: MK == Matthias Korn mat...@rockinchina.com

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-15 Thread Platonides
Matthias Korn wrote: I think he was referring to the buttons in the editing toolbar, which can not be hidden by CSS afaik. Here is what I did quite some time ago (so I don't remember how I did it and if anything else apart from this is neccessary):

Re: [Mediawiki-l] How do you remove edit buttons from the toolbar?

2009-08-13 Thread Robert Carter
You can use CSS. Eg put this line in MediaWiki:Common.css #ca-talk { display: none; } The talk button will be hidden. Rob On 13/08/2009, at 6:56 PM, Claus Juhl Knudsen wrote: Hi all, I've added a couple of buttons to the toolbar by adding some javascript to Mediawiki:Common.js, but is