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

[Mediawiki-l] WAMP and Uploads

2009-08-16 Thread Rob Isakson
Hey Everyone, I've been looking around all day and all the solutions I have tried did not work. My issue is a fairly common one. After uploading a file I get: Internal Error Could not rename file C:\wamp\tmp\php16F.tmp to public/c/c7/test.png media wiki creates the folders c and c7 inside of

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