Hello,
I'd like to modify the edition buttons (the buttons you have above the edition frame when you modify a page), to remove the date from the signature button, and keep only the name. It works manually when removing one of the '~' from the signature added (the button adds --~~~~), so I'm trying to find where the javascript for the buttons comes from.
André Meunier wrote:
Hello,
I'd like to modify the edition buttons (the buttons you have above the edition frame when you modify a page), to remove the date from the signature button, and keep only the name. It works manually when removing one of the '~' from the signature added (the button adds --~~~~), so I'm trying to find where the javascript for the buttons comes from.
includes/EditPage.php function getEditToolbar()
Thank you.
Now I'm looking for the place where the --~~~~ is transformed in the name and date, to change the layout (add a space between the "-" and the name, ..). It doesn't look to be in that same page.
André
Le 30/09/2010 01:20, Platonides a écrit :
André Meunier wrote:
Hello,
I'd like to modify the edition buttons (the buttons you have above the edition frame when you modify a page), to remove the date from the signature button, and keep only the name. It works manually when removing one of the '~' from the signature added (the button adds --~~~~), so I'm trying to find where the javascript for the buttons comes from.
includes/EditPage.php function getEditToolbar()
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
El 05/10/10 11:05, André Meunier escribió:
Thank you.
Now I'm looking for the place where the --~~~~ is transformed in the name and date, to change the layout (add a space between the "-" and the name, ..). It doesn't look to be in that same page.
André
The actual transformation happens in Parser::pstPass2() but for adding a space between - and the name you want to change in getEditToolbar() 'open' => '--~~~~', to 'open' => '-- ~~~~', Those -- are just a toolbar thing.
Platonides wrote:
I'd like to modify the edition buttons (the buttons you have above the edition frame when you modify a page), I'm trying to find where the javascript for the buttons comes from.
includes/EditPage.php function getEditToolbar()
Is there an upgrade save way to override this function?
nakohdo wrote:
Platonides wrote:
I'd like to modify the edition buttons (the buttons you have above the edition frame when you modify a page), I'm trying to find where the javascript for the buttons comes from.
includes/EditPage.php function getEditToolbar()
Is there an upgrade save way to override this function?
EditPageBeforeEditToolbar hook (I find easier to modify it at $toolarray, though).
Platonides wrote:
Is there an upgrade-safe way to override this function?
EditPageBeforeEditToolbar hook (I find easier to modify it at $toolarray, though).
Thanks! The hook looks indeed a bit too much for such a small modification.
mediawiki-l@lists.wikimedia.org