Last modified: 2012-08-14 12:02:53 UTC
You know how there are -------------- public $editFormPageTop; // Before even the preview public $editFormTextTop; public $editFormTextAfterWarn; public $editFormTextAfterTools; public $editFormTextBottom; ----------- In EditPage.php Well it would be nice if SpecialUpload.php had something where the hook "UploadForm:initial" had a place or two it could add something that is inside the <form> and </form> rather than outside it as it currently is--it currently is at the top. Basically you'd have "public $uploadFormTextInsideForm;" at the top for however many there are Then in "function mainUploadForm", probably right before "$wgOut->addHtml", it'd be something like if ($editFormTextPlaceOne != "") { $wgOut->addHTML( $uploadFormTextInsideForm);} And that's pretty much it. I am marking this easy because I have given all the code here.
Ah I found this $uploadFormTextAfterSummary to put it in, but it's still a bad place and kind of messes the form up. Right before the last $wgOut->addHtml is better.
Created attachment 3176 [details] here is the change
Okay I finished it and it's in the attachment. I'm not a MediaWiki developer, so hopefully one will see it and add it. It is a tiny modification to 1.9.1
I think you are saying $uploadFormTextAfterSummary won't work, because it's in the same table cell as the upload description <textarea> and adding stuff there messes up the table. You should still be able to use it though. Just make sure you close the <td> and the <tr> before you add your content and leave them off the end of your added content. For example, in your extension you could do: $form->uploadFormTextAfterSummary .= " </td> </tr> <tr> <td align='right'><label for='wpUploadCategory'>Category:</label></td> <td align='left'> <input tabindex='4' type='text' name='wpUploadCategory' id='wpUploadCategory' size='40' value=\"\" />
CCing Michael Dale on this. Is this something that can be integrated to the new-upload branch and then merged to trunk?
hmm... I think its fine... but you have to send me a diff since my SpecialUpload.php is pretty different from the turnk you can generate a patch against new-upload branch ( /branches/new-upload/phase3 ) I will plop it in there.
*** This bug has been marked as a duplicate of bug 7161 ***