The Wakaba and Kareha support thread, part 2 (1000)

917 Name: Anonymous : 2010-08-18 08:56 ID:Heaven [Del]

>>916
Well, no, none of these 4chan-ish features are difficult, as the previous couple patches were intended to demonstrate.

Seems to me this would necessarily involve a bit of a hack to get process_file not to generate a thumbnail, I think you'd have to add another variable:

sub process_file($$$$)
{
my ($file,$uploadname,$time,$spoiler)=@_;

Then when it's figuring out whether to make a thumbnail (the if(!$width) stuff), if $spoiler is set, don't make one. Then add a checkbox to the form (of course), look at the value in post_stuff, etc. etc.

It's a little more complex than some other hacks, but still only a couple lines.

This thread has been closed. You cannot post in this thread any longer.