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_Introducti 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
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_Introducti 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@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?
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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Anthony Zepezauer wrote:
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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@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, thanks for the responses. It turns out one problem, at least, is that I had changed the URL using the recommended configuration shown here:
http://www.mediawiki.org/wiki/Manual:Short_URL
This was necessary for reasons too complicated to go into here, but it broke the relative paths to wikibits.js, and all the image files for the toolbar. As a quick fix I changed them to absolute paths. I also removed the DOCTYPE declaration from where it was getting inserted. Now it works for monobook, but still not for nostalgia. I'll check the monobook file against other versions and see if there are any errors in what I downloaded.
Thanks Anthony Zepezauer
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of VanBuren Darren, L. Sent: Monday, April 07, 2008 8:30 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] enable edit toolbar
Anthony Zepezauer wrote:
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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@lists.wikimedia.org [mailto:mediawiki-l- bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I'll check the monobook file against other versions and see if there are any errors
in
what I downloaded.
I meant I'll check the nostalgia file, of course.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of Anthony Zepezauer Sent: Tuesday, April 08, 2008 10:34 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] enable edit toolbar
Darren, thanks for the responses. It turns out one problem, at least, is that I had changed the URL using the recommended configuration
shown
here:
http://www.mediawiki.org/wiki/Manual:Short_URL
This was necessary for reasons too complicated to go into here, but it broke the relative paths to wikibits.js, and all the image files for the toolbar. As a quick fix I changed them to absolute paths. I also removed the DOCTYPE declaration from where it was getting inserted. Now it works for monobook, but still not for nostalgia. I'll check the monobook file against other versions and see if there are any errors
in
what I downloaded.
Thanks Anthony Zepezauer
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of VanBuren Darren, L. Sent: Monday, April 07, 2008 8:30 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] enable edit toolbar
Anthony Zepezauer wrote:
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@lists.wikimedia.org
[mailto:mediawiki-l-
bounces@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@lists.wikimedia.org [mailto:mediawiki-
l-
bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org