Wakaba 2.1.0 (48)

1 Name: !WAHa.06x36 2005-02-26 12:58 ID:+S1qVTsT (Replies) [Del]


A new version with some minor improvements. I bumped the version number since it's not just a pure bugfix release, though. This one isn't a very essential upgrade, so no big rush to upgrade. Changes:

  • Slightly clearer error messages for template errors, for those who like to hack the templates.
  • Small fix for the example.htaccess.
  • Javascript code updates to behave better in XHTML mode.
  • FORCED_ANON implemented for Wakaba too, because recent events reminded me I never got around to that.
  • MAX_MEGABYTES option added, to limit the total size of the pictures on disk. Deletes old threads until the disk space limit is reached.
  • Slightly improved character set handling. Won't be noticed on anything but Shift_JIS boards, but I don't think any of those exist. Also, the world's most famous tripcode, #kami, now works (as long as you're running Perl 5.8 or up).

2 Name: Anonymous 2005-02-28 01:55 ID:Heaven [Del]

This release seems to have come in the shadows of Kareha 2.0.0.

Anyway, it is appreciated. I will update my boards later this day.

3 Name: Anonymous 2005-03-01 17:49 ID:yC3Bb+MA [Del]

Shouldn't there be some way to select language in config.pl?

4 Name: !WAHa.06x36 2005-03-01 18:40 ID:Heaven [Del]

That would maybe be a more elegant solution, but for now you have to change the strings_*.pl line in wakaba.pl.

5 Name: !yGAhoNiShI 2005-03-02 10:32 ID:nf6lp/Uc [Del]

what's #kami

6 Name: !WAHa.06x36 2005-03-02 11:13 ID:Heaven [Del]



7 Name: !3X1b8VAs/E 2005-03-02 16:51 ID:PRMDl7xM [Del]


8 Name: anon!pA1UE1eGto 2005-03-02 19:09 ID:Heaven [Del]


Question: why?

9 Name: !WAHa.06x36 2005-03-02 19:33 ID:Heaven [Del]

>>7 needs more #kami instead of #kami.


Back when 2ch was using 8-character tripcodes, somebody noticed #kami gave the tripcode AhoNiShI, which means something like "idiot west". Hilarity ensued.

10 Name: #kami 2005-03-03 17:30 ID:Heaven [Del]

I’m writing alphanumeric.

11 Name: !yGAhoNiShI 2005-03-03 17:31 ID:Heaven [Del]

Wah,# couldn’t be #.

12 Name: Anonymous 2005-03-11 19:02 ID:ucRX3slA [Del]

I just upgraded to 2.1.0 and posts are disappearing...

Maybe I've just done something stupid, but it looks like using MAX_MEGABYTES prevents any posts but the latest from showing in wakaba.html (they're there in the admin panel and /res/postnr.html)
Without MAX_MEGABYTES only the first post vanishes, after that things work as expected (I think) until I bump the hidden post, which makes the bottom post disappear. Madness.

13 Name: !WAHa.06x36 2005-03-11 20:58 ID:Cbov5q0/ [Del]

Hmm, that sounds pretty weird. Lots of boards run 2.1.0, but none have reported anything like that. What other options do you use?

14 Name: Anonymous 2005-03-11 21:34 ID:ucRX3slA [Del]

Other than the required sql/password settings all I've set is a title, favicon and a higher filesize limit. Oh, and I'm running without captcha's...

I think I jumped to conclusions due to retarded testing earlier, or maybe nuking the board sorta fixed something, but what I'm seeing now (with MAX_MEGABYTES on) is the bottom post in the management panel not showing up in the html board pages.

Maybe nobody noticed the pages listing one less post than they should on boards that are actually populated? The fist post I made didn't show up, that's something you do notice...

15 Name: !WAHa.06x36 2005-03-12 07:33 ID:Cbov5q0/ [Del]

Hmm. I'll look into it.

16 Name: !WAHa.06x36 2005-03-12 08:04 ID:Cbov5q0/ [Del]

Turns out you're right, the last post is always ignored when generating the main pages. Fixed in this version:


I also added the USE_XHTML option to disable application/xhtml+xml mode if you don't like it. Changes to wakaba.pl, wakautils.pl and config_defaults.pl.

17 Name: Mr VacBob!JqK7T7zan. 2005-03-12 21:58 ID:Z50WBrol [Del]

I get this trying to follow the instructions to set up oekaki:
Bareword "CSS_FILE" not allowed while "strict subs" in use at oekaki_style.pl line 332, <FILE> line 5.
Compilation failed in require at wakaba.pl line 19, <FILE> line 5.
BEGIN failed--compilation aborted at wakaba.pl line 19, <FILE> line 5.

I fixed it by forcing the CSS to css/futaba.css, but that kind of sucks.

18 Post deleted by user.

19 Name: !WAHa.06x36 2005-03-13 08:48 ID:Cbov5q0/ [Del]

Oops. Actually the code that broke there isn't even used - it's some old left-over code from when I did some rewriting, that I forgot to remove. You can just remove that whole function and it'll work just fine. Alternatively, get the fixed version:


Changes only to oekaki_style.pl and config_defaults.pl (for the version number).

20 Name: !WAHa.06x36 2005-03-14 16:54 ID:Cbov5q0/ [Del]

Shii found some bugs in the oekaki_style, and I found some more in the futaba_style (nothing very important, though). I also re-wrote some of the oekaki code to be less stupid and bothersome (it no longer needs to post through the webserver).


Changes to wakaba.pl, wakautils.pl, futaba_style.pl, config_defaults.pl, and a lot of the oekaki files.

21 Post deleted by user.

22 Name: !WAHa.06x36 2005-03-14 19:18 ID:Cbov5q0/ [Del]

Oops, didn't get it quite right. Fixed fixed:


Changes to wakautils.pl, finish.pl, oekaki_style.pl and config_defaults.pl.

23 Name: Anonymous 2005-03-14 21:28 ID:Heaven [Del]

So what do you think will be the next "OMG go upgrade" feature in Wakaba? Is one planned?

24 Name: Anonymous 2005-03-14 21:54 ID:Heaven [Del]


I vote IP revealing feature for mods.

25 Name: !WAHa.06x36 2005-03-15 10:24 ID:Cbov5q0/ [Del]

Ideas for future features, for whenever I feel like writing some code:

  • Catalogue mode, like on futaba's /b/.
  • Automatic hello kittying for mods.
  • IP revealing.

Anything else?

26 Name: Anonymous 2005-03-15 18:53 ID:Heaven [Del]

> Anything else?
  • Marked for deletion (old)


  • Turning off Wakamark when AA in Link field


27 Name: Anonymous 2005-03-16 00:59 ID:Heaven [Del]

IP revealing? You mean being able to display someone's IP by going into the Admin panel? What for?

28 Name: Anonymous 2005-03-16 02:11 ID:Heaven [Del]

Is there a way to add a single file type to the allowed list?

29 Name: Anonymous 2005-03-16 13:56 ID:Kck6EEFz [Del]

> Automatic hello kittying for mods.


30 Name: !WAHa.06x36 2005-03-16 15:26 ID:Cbov5q0/ [Del]


Hmm? Just add it as usual to FILETYPES in the config file? Or did you mean something else?


BlackMage has taken to replacing certain images with Hello Kitty instead of deleting them. It amuses me so I thought I could add an interface to do it.

31 Name: Anonymous 2005-03-16 19:17 ID:Heaven [Del]

> BlackMage has taken to replacing certain images with Hello Kitty instead of deleting them. It amuses me so I thought I could add an interface to do it.

Awesome option.

32 Name: Anonymous 2005-03-16 19:18 ID:Heaven [Del]


On Futaba and I also believe 2channel, I believe this to be used as a severe warning for asshats and trolls. It's not yet a ban, but a very harsh reduction of privacy and revealing of all the posts by the usually anonymous abuser to the public as coming from one person, etc.

33 Name: Anonymous 2005-03-16 21:46 ID:Heaven [Del]

Oops. It's not entirely clear that FILETYPES does more than add icons. Although the lack of anything else should make it obvious...heh.

34 Name: _NoSkills!yYqlaT62VQ 2005-03-17 03:01 ID:miZNNskw [Del]

-I'd like a 'view all posts from this ip/subnet/username' option in the admin panel if that's possible. I know we talked about it and static pages, etc. but it's worth an asking, I suppose.
-Scaleable administration (ie, mod status and admin status with different permissions)
-Forcenick and/or force anon for one user
-Maybe word filters? Kinda silly but sometimes fun. If you do it, make sure to allow html injection in the filtered text, because what if someone wants to make it a picture?

I'm sure I'll come up with other stuff, which you can also feel free to ignore.

35 Name: !WAHa.06x36 2005-03-17 11:25 ID:/QLbyIBb [Del]


I've been thinking it would be useful to be able to add small bits of Perl code that are run for each post. These could then implement nick filters, word filters, or whatever mischief you feel like doing.

Also, there is already two levels of admin, after a fashion - the normal admin password, and the nuke password. I haven't yet seen any use for subdividing it further, though.

36 Name: Anonymous 2005-03-21 09:10 ID:Heaven [Del]

Label which gif files are animated? They usually contain the string "NETSCAPE2.0" near the start, if that helps.

37 Name: !WAHa.06x36 2005-03-21 10:37 ID:/QLbyIBb [Del]

Hmm, would need a new column in the database, and I am trying to avoid that. Unless I'd use some TRICKERY, which isn't too tempting either.

38 Name: !WAHa.06x36 2005-03-21 10:37 ID:/QLbyIBb [Del]

Also, would ruin the "animated" joke.

Ok, fine, it's dead anyway.

39 Name: Anonymous 2005-03-23 14:53 ID:Heaven [Del]

how about allowing people to upload bmp images and automatically converting them to png?

40 Name: !WAHa.06x36 2005-03-23 17:00 ID:KzYNjiwy [Del]

This would certainly be possible, but it would teach them nothing. Give a man a fish...

41 Name: Anonymous 2005-03-23 21:35 ID:XlZ7vSoV [Del]

how about non-animated GIF to PNG? also fixes >>36's beef

42 Name: Anonymous 2005-03-23 23:53 ID:Heaven [Del]

You could put a big message with "Bitmaps are for buffoons" before redirecting to the thread after posting, or set it as forced text in the message body, like "User was banned for this post".

43 Name: !WAHa.06x36 2005-03-24 09:04 ID:WOsgUaRZ [Del]


I'm not sure about converting GIF to PNG, though. There might be a small decrease in size, but generally I think it's a better idea to keep files untouched as far as possible, for the purpose of conserving checksums and the like.

44 Name: Anonymous 2005-03-26 00:39 ID:447NDIAu [Del]

Does the latest version move all the x.html files to another directory? The base directory can get cluttered if you have a high thread limit.

45 Name: !WAHa.06x36 2005-03-26 09:04 ID:45FfzWkv [Del]


No. Maybe that should be an option, though.

46 Name: Anonymous 2005-03-29 07:37 ID:447NDIAu [Del]

wakaba.pl, line 1278, 2.1.4:

I got a bareword not allowed error for USE_XHTML. I stuck a qw() around it. Is that horribly insecure?

The updating procedure was: copy random files (everything in the base, and /extras) into the directory, restore config.pl, rebuild caches, and hope nothing breaks. It appears to work.

47 Name: !WAHa.06x36 2005-03-29 09:31 ID:Cbov5q0/ [Del]

Did you copy the new config_defaults.pl in there?

48 Name: Anonymous 2005-03-29 17:14 ID:Heaven [Del]

Gee, don't I feel stupid. Thanks for the help.

Name: Link:
Leave these fields empty (spam trap):
More options...