Hi,
I want to add extra functionality to the standard editpage, namely a popup Google search function for lyrics. In 1.3.10 I did this by adding extra <input> tags and javascript to one of the system messages, but this doesn't work in the new 1.4.0 (and rightfully so!).
How do I go about adding a textbox, a button and some popup javascript to every editpage?
Thanks!
Greetings,
Patrick
I wrote:
How do I go about adding a textbox, a button and some popup javascript to every editpage?
Looks like I have to change includes/EditPage.php to achieve that; here's what I did:
---------------------------------------------------------------- </textarea> <!-- Rap Dictionary specific extension start --> <br /> Find lyrics: <input tabindex="3" id="findLyrics" name="findLyrics" type="text" size="60" /> <input tabindex="3" id="findLyricsGo" name="findLyricsGo" type="button" value="Find" onclick="window.open('http://www.google.com/search?q=site%3Aohhla.com+' + escape(this.form.findLyrics.value), 'findLyrics')" /> <em>" . htmlspecialchars( wfMsg( 'newwindow' ) ) . "</em> <!-- Rap Dictionary specific extension end --> <br />{$editsummary} ----------------------------------------------------------------
Bummer, there goes my compatibility with upgrades... :-(
Greetings,
Patrick
mediawiki-l@lists.wikimedia.org