Maybe I should also mention that Firebug is showing 3
occurrences of
this error:
Syntax error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n
In wikibits.js, ajax.js and ajaxwatch.js
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org [mailto:mediawiki-l-
bounces(a)lists.wikimedia.org] On Behalf Of Anthony Zepezauer
Sent: Monday, April 07, 2008 2:23 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] enable edit toolbar
Hm, I don't think it's custom - it came with the standard download,
and
it's referenced in LocalSettings.php:
## Default skin: you can change the default skin. Use the internal
symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue',
'monobook':
$wgDefaultSkin = 'nostalgia';
Still no toolbar if I change it to 'monobook' or 'standard' or
''.
> -----Original Message-----
> From: mediawiki-l-bounces(a)lists.wikimedia.org [mailto:mediawiki-l-
> bounces(a)lists.wikimedia.org] On Behalf Of VanBuren Darren, L.
> Sent: Monday, April 07, 2008 12:29 PM
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] enable edit toolbar
>
> Anthony Zepezauer wrote:
>
>> Hi all, please excuse what is probably a very simple question.
>>
I'm
> new
>
>> to both mediawiki and PHP. (I searched the e-mail archives for an
>> answer but didn't find one.)
>>
>> I've installed mediawiki but I'm not getting the toolbar with
>>
bold,
>> italic, etc. on edit pages (e.g. as shown
here:
>>
>>
http://www.mediawiki.org/w/index.php?title=Category:MediaWiki_Introduct
i
on&action=edit).
Firebug shows a JS error 'addButton is not defined'
I see that the JS function addButton lives in
skins/common/wikibits.js,
so I modified the getEditToolbar function in
includes/EditPage.php
like
so:
$toolbar = "<div id='toolbar'>\n";
$toolbar.="<script type='$wgJsMimeType'
src='/skins/common/wikibits.js' />"; <==== ADDED THIS LINE
$toolbar.="<script
type='$wgJsMimeType'>\n/*<![CDATA[*/\n";
This had no effect. Then I tried adding the entire addButton
function
at that same location, but got a parse error.
I suspect I'm going about this all wrong. Any help is greatly
appreciated.
Thanks,
Anthony Zepezauer
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Using Monobook and the latest Mediawiki should be just fine. Are you
using a custom skin?
--
Darren VanBuren
Admistrator of Onekopakaspace
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Nostalgia is a official MW Skin. There should not be a DOCTYPE
declaration in wikibits.js..
Something tells me that your download was messed up.
--
Darren VanBuren
Admistrator of Onekopakaspace