Hey,
I was wondering when Matsuba came to be and what influences it had. In addition, I love the JavaScript (http://sovietrussia.org/js/matsuba.js?v=1), and was wondering what influences THAT had.
Just curious.
Hrm.
Dunno if you remember the old wiichan, but back when it started off it ran on Wakaba. However its lack of multi-board management annoyed me so I tried out trevorchan – back then, it lacked about 90% of the misfeatures it later acquired. (I made the initial patches for posting non-image files on the /m/ board, actually.[citation needed]) However it was terribly coded, insecure, and horribly difficult to modify... so I started my own script.
It's still lacking in a lot of ways, mostly because it did the same dumb thing just about every other board has done, and copied the utter lack of database structure that Futaba used, and stuffed everything into one table, so doing anything with a board requires either convoluted SQL or SELECT * FROM posts, but such is life. (Well, technically, Matsuba originally just used Trevorchan's existing database structure, although it barely resembles it at this point since it's gone through so many ALTER TABLE statements.)
Most of the Javascript is either from Wakaba/Kareha or original. The concept of the post hiding is from 2ch although the implementation is a bit different. (and unfinished – nmy intent has been to add a couple buttons to the top of the page somewhere like 2ch does, but I can't decide on how to do it.)
Eventually when the code doesn't suck I'll package it, but it's still got way too much crud in it for me to deem worthy of public release. (db.py, I'm looking at you...)
Now go write that page on the wiki :P
♥♥♥♥♥♥♥♥
We love you man!
♥♥♥♥♥♥♥♥
Eeew Trevorchan.... Thank God it's been modified so many times.
Heh, public release might help hasten the development, or just showing a select few the code.
Or simply doing some self.get_off_arse() and clear out the little stupid TODOs and FIXMEs.
It's not like there's much development to be done, though. You can post, delete, it's got tripcodes, text formatting, there's a ban system, and even multiple board styles and modes.
Can you at least have a public changelog? That would be cool!
Update
ID:dahuM!
Added a preview button. (Just on the text boards for now.) The javascript to shove the button and form onto the post is a bit unwieldy for what should be such a simple task, but hey, that's javascript for ya. The server handler, on the other hand, was stupidly easy:
# -*- python -*-
elif 'preview' in form:
message = handle_message(board, form.int('preview'), 0, form.field4, form.markup)
io.write_http_header(length=len(message))
sys.stdout.write(message)
No, that form.markup field isn't meaningful... yet.
sweet, thanks!
Oh, when someone sages a thread, the link does not appear as sage, it appears as http://sovietrussia.org/dis/#sage, is this intentional?
Yep! I got annoyed by accidentally clicking irrelevant mailto:sage links, so if something doesn't look like a link or e-mail, it sticks a # in front of it.
Shit, it's been forever since I've been here.