Hi all,
I'm aware that Special:CommunityHiring was built directly by WMF staff, but I was wondering if there was anyone else involved/aware of how it was built that could give me a rough spec on it? I'm considering building an equivalent but much simpler/shorter version for my own purposes and understand there's no documentation available.
Thanks,
Steven Walling
Steven Walling wrote:
I'm aware that Special:CommunityHiring was built directly by WMF staff, but I was wondering if there was anyone else involved/aware of how it was built that could give me a rough spec on it? I'm considering building an equivalent but much simpler/shorter version for my own purposes and understand there's no documentation available.
It's a pretty simple extension. It's using HTMLForm,[1] which seems pretty straightforward if you take a look at the code.[2] For your purposes, you probably don't even need one of the four files (internationalization).
As you can see, there's not _no_ documentation, but it's pretty sparse. The code will be your guide and you have a clean, recent example written by someone competent with the "CommunityHiring" extension. You can always expand the documentation on MediaWiki.org after you finish your project. ;-)
As always, there's #mediawiki on freenode and the mediawiki-l mailing list if you get stuck or have other questions.
One quick thing to note: it looks like the extension stores all of its user-input data into a blob in the database (check ch_data in tables.sql). This is somewhat nicer if you don't know how many input values you're going to have and don't feel like writing a generic database backend, but the data blob method can make selecting and parsing the data much more annoying later. You might want to normalize the data in the database.
MZMcBride
[1] http://www.mediawiki.org/wiki/HTMLForm [2] http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CommunityHiring/
Thanks MZ. That plus the answers I got in IRC seem to be enough to work on.
On Mon, Nov 22, 2010 at 11:07 AM, MZMcBride z@mzmcbride.com wrote:
Steven Walling wrote:
I'm aware that Special:CommunityHiring was built directly by WMF staff,
but
I was wondering if there was anyone else involved/aware of how it was
built
that could give me a rough spec on it? I'm considering building an equivalent but much simpler/shorter version for my own purposes and understand there's no documentation available.
It's a pretty simple extension. It's using HTMLForm,[1] which seems pretty straightforward if you take a look at the code.[2] For your purposes, you probably don't even need one of the four files (internationalization).
As you can see, there's not _no_ documentation, but it's pretty sparse. The code will be your guide and you have a clean, recent example written by someone competent with the "CommunityHiring" extension. You can always expand the documentation on MediaWiki.org after you finish your project. ;-)
As always, there's #mediawiki on freenode and the mediawiki-l mailing list if you get stuck or have other questions.
One quick thing to note: it looks like the extension stores all of its user-input data into a blob in the database (check ch_data in tables.sql). This is somewhat nicer if you don't know how many input values you're going to have and don't feel like writing a generic database backend, but the data blob method can make selecting and parsing the data much more annoying later. You might want to normalize the data in the database.
MZMcBride
[1] http://www.mediawiki.org/wiki/HTMLForm [2] http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CommunityHiring/
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Steven,
I wrote this entirely by myself (though with some cleanup help from other people), on the morning before my flight to Wikimania. Enabling it was the last thing I did before I walked downstairs to BART. Accordingly, while the code is clean, it's not documented at all.
If you have any problems with it, I'd be more than happy to answer your questions (and possibly even write documentation for it!)
Hope this helps,
Andrew
On Tue, Nov 23, 2010 at 5:46 AM, Steven Walling steven.walling@gmail.comwrote:
Hi all,
I'm aware that Special:CommunityHiring was built directly by WMF staff, but I was wondering if there was anyone else involved/aware of how it was built that could give me a rough spec on it? I'm considering building an equivalent but much simpler/shorter version for my own purposes and understand there's no documentation available.
Thanks,
Steven Walling _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org