The Wakaba and Kareha support thread, part 3 (535)

1 Name: !WAHa.06x36 : 2011-01-07 09:57 ID:eLRTX7Vk [Del]

This thread is for all your simple questions about installing and running Wakaba or Kareha, that just require quick answers. Please don't create new threads for issues like that, post them in here instead.

Before posting, check that the question has not already been answered in this thread, or in the previous two threads:

Also check the documentation:

There is also a setup guide by Anon:

Questions about "500 Internal Server Errors" go in this thread:

201 Post deleted by user.

202 Name: Anonymous : 2012-06-06 21:34 ID:D6bcexAn [Del]

So, I've recently created an imageboard, but found out that with my host, I don't have permission to do exec(). Needless to say, this causes problems, because I cannot use the convert command to create thumbnails.

Is there any alternative to imagemagick, or other libraries that use exec() for displaying thumbnails? I like my host otherwise, and would rather not switch if at all possible.


203 Name: Anonymous : 2012-06-07 14:07 ID:Heaven [Del]

GD, maybe?

204 Name: Anonymous : 2012-06-08 03:21 ID:Heaven [Del]

This sounds weird. CGI works by executing a process on the server, so the problem isn't there. It's more likely that exec() is disabled for PHP, which doesn't affect CGI scripts at all, and that the server is simply missing binaries for imagemagick.

205 Name: Anonymous : 2012-06-09 11:05 ID:gx/VPazV [Del]


I had a a few quick questions regarding the subback page - not sure if I should have started a new thread for this.

I am wanting to do one of two things:

  1. Adding the last poster to the subback page.

I'm very new to perl, well to programming in general... I think this has to do with "use constant", although I'm not too sure. I've been toying with it, and have had no luck yet.

2. Pagnating the subback page with "older" and "newer".

Any help would be greatly appreciated.

206 Name: Anonymous : 2012-06-16 12:42 ID:in4bohgd [Del]

So, my Kareha textboard started giving an error. I haven't made any changes in it in a while so I don't know what it would be. It's okay from the front page, and you can post from the front page, yet if you try to open a whole page the error occurs and it crashes. It says it's looking for a <br> tag, and not finding it.
View the whole thing by loading a thread:

Please help me find a fix. Thank you.

207 Name: Mr. Bradeli!tRiPfAGSxc!!dIKAX/uG : 2012-06-16 13:47 ID:naZJxTsv [Del]

Have you changed your template at all?

208 Name: Anonymous : 2012-06-18 14:44 ID:KugcstXw [Del]

By "template" do you mean the .html files in the "includes" folder?
Yes. And you can see it on the board. I had the footer.html changed a while back but I reverted it back to the original.

209 Name: Anonymous : 2012-06-28 17:55 ID:+SH0/+e/ [Del]

I need the Kreha last 50 post option but for wakaba. How can I do this?

210 Name: Anonymous : 2012-06-29 16:37 ID:+SH0/+e/ [Del]

In order to do the last 50 posts thing in wakaba, I'd need to generate in res 2 files for every thread: 1, the thread as normal and 2, the thread with just the last fifty posts and a link to get back to the original full thread in the "omitted" area. I'd also need to place a link in line with the reply link that points to the <thread number>_l50.html called "Last 50." I know what needs to be done, I just can't code it. If anyone could help: I'd appreciate it.

211 Name: Anonymous : 2012-07-17 14:46 ID:naZJxTsv [Del]

How exactly would one go about printing the contents of a constant array in I noticed that Wakaba seems to use a template system of its own, and there's no real documentation...

212 Name: Anonymous : 2012-07-17 14:49 ID:naZJxTsv [Del]

...Never mind just figured out what was going wrong. I just needed to escape the > with a \

213 Name: Anonymous : 2012-07-18 22:54 ID:naZJxTsv [Del]

Does anyone know if its possible to move a thread from one board to another in Wakaba? I'm assuming all I have to do is move the data from one comments table to another, but I'm worried that there might be some crazy date/sorting related stuff that will fuck it all up for me.

Anyone a little more matter on the topic hanging around here?

214 Name: !WAHa.06x36 : 2012-07-19 14:08 ID:Heaven [Del]


Moving the rows to the other table, and moving any images in src/ and thumb/, and then rebuilding caches should work. You'd probably want a program to do it for you though.

215 Name: Anonymous : 2012-07-19 15:31 ID:naZJxTsv [Del]

Is there anything you recommend? I thought I might be able to try it out in the SQL interface, and then add a function to once I'm sure it works 100%. I just wanted to make sure the thread wouldn't magically render in the wrong order, or post numbers wouldn't collide. Would it be a good idea to change all of those values to make sure nothing gets in the way of each other?

216 Name: Anonymous : 2012-07-19 18:06 ID:naZJxTsv [Del]

Any chance you could let me know if I'm on the right track with this:

INSERT INTO board1_comments SELECT * FROM board2_comments WHERE parent='1957' ORDER BY num;

I haven't dealt with MySQL directly before, so I'm more or less trying to piece things together.

217 Name: Anonymous : 2012-07-19 18:33 ID:naZJxTsv [Del]

It seems like there's an unintended side effect to simply "moving" the thread over. The post numbers on the new board get bumped up (what would happen if they were lower on the source board? More problems I'd imagine). I guess the only way to avoid this is manually editing each field or changing everything problematically...

218 Name: Anonymous : 2012-07-30 21:44 ID:naZJxTsv [Del]

I can't seem to figure out where posts in my ($parent,@replies)=@{$$thread{posts}}; comes from in sub build_cache_page($$@)

Can anyone help me solve this?

219 Name: Anonymous : 2012-07-31 07:06 ID:Heaven [Del]

Can anyone walk me through this? I'm a bit lost as to what this is doing exactly.

push @threads,{posts=>[@thread]};
@thread=($row); # start new thread
push @thread,$row;
push @threads,{posts=>[@thread]};

220 Name: Anonymous : 2012-08-01 07:06 ID:amrFfE2+ [Del]

Has anyone here successfully configured Kareha with Nginx so that he can paste his config?

221 Name: Anonymous : 2012-08-01 09:37 ID:Heaven [Del]

Last I checked there's really nothing you need to do with nginx specifically other than getting Perl running if you haven't already.

222 Name: Anonymous : 2012-08-02 07:10 ID:amrFfE2+ [Del]

>>221 I have, but links like don't work. They throw 404s.

223 Name: Anonymous : 2012-08-03 05:09 ID:Heaven [Del]

Kareha uses the PATH_INFO server variable which apparently doesn't work correctly in nginx (see

My suggestion would be to change PATH_INFO to QUERY_STRING and modify templates so that links become instead of

224 Name: Anonymous : 2012-08-03 07:40 ID:Heaven [Del]

Huh... I wonder why I never had that issue.

I think I had some crazy url rewrites(because of some previous reverse proxying that I did) that may have magically fixed the problem.

Are there any other ways to get this working without having to make the URLs less aesthetic?

225 Name: Anonymous : 2012-08-06 08:34 ID:naZJxTsv [Del]

Any chance the issue's been fixed recently?

226 Name: Anonymous : 2012-08-17 09:13 ID:RE6S15vZ [Del]

Currently, Wakaba's ban feature only prevents the users from posting. Is there a way to ban them from viewing the board as well?

227 Name: Anonymous : 2012-08-17 16:05 ID:Heaven [Del]

That has to be done server-side, e.g., using Apache's mod_rewrite or access control directives.

228 Name: iSage!ISage.aan6 : 2012-08-22 12:16 ID:Qla6QxZX [Del]

Okay, here's two recently discovered in wakaba vulnerabilities:
1) deny of service: every time user deletes post with "file only" flag wakaba updates db and rebuilds cache, even if there's no file already. so it's possible to "delete" post unlimited number of times, and each will cause complete cache rebuild and DoS as a result
2) wakaba doesn't check "admin" flag when deleting thread with "archive" flag set. so anyone can forge request and put own threat to archive. Post CP, delete to archive, write abuse. profit.

229 Name: Anonymous : 2012-08-22 13:09 ID:Heaven [Del]

Archiving will only work if there are folders for the archive, and if they have the correct permissions. Simple solution, don't have an archive.

The potential for DoS is more important.

230 Name: iSage!ISage.aan6 : 2012-08-22 13:38 ID:Qla6QxZX [Del]

>>229 well, another simple solution is to add

$archive = 0 unless($admin);

in delete_stuff after

$password="" if ($admin); 

231 Name: Anonymous : 2012-08-24 09:15 ID:naZJxTsv [Del]

Good thing NOBODY has the archive folders set up properly. I lost my first 50 posts on my Wakaba imageboard when experimenting with the Archive button ;_;

232 Name: iSage!ISage.aan6 : 2012-08-24 12:35 ID:Qla6QxZX [Del]

>>231 have arch on some boards. (ex have arch on almost all boards.

Good thing that, although wakaba distribution includes arch directory, there's nothing in manual about setting permissions for it. So it's safe to assume, i think, that by default you don't have an archive.

Second problem (DoS) also kinda easy to fix. I can post a patch against latest if anyone interested.

233 Name: Mr. Manager!!wIZhSe8U : 2012-08-25 12:50 ID:naZJxTsv [Del]

I just wrote up a small fix for my board. I just made a variable called $hasimage, and I set it to 1 if if($$row{image}) is true. Then when its time to rebuild caches, I just put a make_error() inside of if(($fileonly)&&($hasimage==0)).

After I did all of that I realized I could probably just do a make_error() as an else statement appended to if($$row{image}), but both will work just fine I think.

234 Name: Mr. Manager!!wIZhSe8U : 2012-08-25 13:20 ID:Heaven [Del]

I'd post a patch, but my is... pretty different at this point compared to the standard one.

235 Name: iSage!ISage.aan6 : 2012-08-27 12:01 ID:Qla6QxZX [Del]

Well, that's not a proper way, as you should just redirect user back if there's nothing to update.

Proper way is: return 1; at the end of delete_post, return 0; as an else statement for if($$row{image})
Also, change UPDATE sql statement to set image=null
(i have no idea, why it's not updating image field now)

Next, change code in delete_stuff to something like this:

    my $updated=0; 
foreach $post (@posts)
    # update the cached HTML pages
build_cache() if ($updated);

236 Name: Anonymous : 2012-08-27 13:26 ID:51JpZt3m [Del]

I'm sorry, but how does one decide what's proper or not? If it works, it works.

237 Name: iSage!ISage.aan6 : 2012-08-30 15:09 ID:Qla6QxZX [Del]

Well, first of all, it changes how wakaba behaves. Second - showing an error (which is generated from template every time) is more resource consuming than redirecting to a static file. Also note, that Mr.Manager's code doesn't update db, so $$row{image} will always be true.

Anyways, it's entirely up to you which solution to use.

238 Name: Mr. Manager!!wIZhSe8U : 2012-08-31 07:25 ID:naZJxTsv [Del]

If it updated the db before it still should. I'll check it out once I get back from work.

239 Name: changing folder name : 2012-09-01 18:56 ID:NHeUFbQ4 [Del]

How do I change the folder's name from wakaba to something else without messing things up.

240 Name: Mr. Manager!!wIZhSe8U : 2012-09-01 23:20 ID:naZJxTsv [Del]

I think you can just change the folder name and the script will handle the rest...

241 Name: changing folder name : 2012-09-02 10:08 ID:NHeUFbQ4 [Del]

Thanks for the answer but that doesn't work
Whenever I change the wakaba folder's name it keeps linking everything else to the wakaba folder.

242 Name: Anonymous : 2012-09-02 11:31 ID:Heaven [Del]

...did you try rebuilding the cache?

243 Name: changing folder name : 2012-09-03 14:18 ID:NHeUFbQ4 [Del]

Um I don't know exactly what you mean by that :S

244 Name: Anon-i-Mouse : 2012-09-05 04:20 ID:oh1u5Dct [Del]

Wakaba 3.0.9
Some basic questions for you guys.
• I've searched for a while as to where the place to change what style sheets are used. I assumed it was in but after searing through many a perl file I could not locate it. I thought what If I just take the existing styles out of .../css/ and of course replace them with my own and fix it in the but I don't want to get to install time and have a stupid question. I'd rather get my being stupid done with. Even a thread with the relevant information would be great.

• Would it be better to lower the CAPTCHA_LIFETIME => from 1440 seconds to say 60?

• Does setting TRIM_METHOD => 1 when using ARCHIVE_MODE => 1 make for a correct environment so that the script can archive properly instead of doing some funky unwanted stuff?

• What does NUKING a board do? My thoughts are a nuke, which would mean no more board. I'm clueless on this one since I never had to feel the need to click the button.

• That's about the only problems I'm having as I was successfully able to set up multiple wakaba boards in the past with little difficulty. I just need to get a little more creative and make it my own.

Thanks for having a great script. WAHa :)

245 Name: Anon-i-Mouse : 2012-09-05 08:52 ID:G84VzIts [Del]

Also I wouldn't need .../extras/oekaki, old_perl, translations, and load_balancing directories if I'm not using them right? Don't know if I need any of this miscellaneous.

246 Post deleted by user.

247 Name: Mr. Manager!!wIZhSe8U : 2012-09-05 11:43 ID:naZJxTsv [Del]


> I thought what If I just take the existing styles out of .../css/ and of course replace them with my own

That's actually all you need to do.

>What does NUKING a board do? My thoughts are a nuke, which would mean no more board. I'm clueless on this one since I never had to feel the need to click the button.

Pretty much. I mean, the board's still there, but all of the data is deleted.

> Does setting TRIM_METHOD => 1 when using ARCHIVE_MODE => 1 make for a correct environment so that the script can archive properly instead of doing some funky unwanted stuff?

You'll need to make the folders and set up the permissions manually.



248 Name: Anon-i-Mouse : 2012-09-05 14:15 ID:nrOkH5+S [Del]

Alright cool. Fun times then

Thanks Mr. Manager

I thought the folders in each install were already setup. As in:
I'm not on the computer right now but I believe it's the the "arch" folder that has 3 folders in it. Either way I thought the "arch" folder was reserved for archival needs.

I know you're host has to be cool with .pl scripts as well so that everything gets chmoded proper like when the html get crapped out from the whole archive process.

Another dumbass thought. I was pondering what you wrote about
You'll need to make the folders and set up the
permissions manually.
I figured I might want to look inside of at the bottom where all directories are listed, or in the archive script which I forgot what it's called. When I get home I'll look in those 2 spots and if it's not there I'll just lurk moar?

Again, many thanks Mr. Manager.

249 Name: Mr. Manager!!wIZhSe8U : 2012-09-05 18:33 ID:51JpZt3m [Del]

I was talking about arch. All you'll need to do now is make sure the permissions are okay, and you should be fine. In my experience, archiving seems to be a little testy on most setups, so I'd experiment with unimportant threads before using it for anything serious. I accidentally lost the first 50 posts of my board because wakaba and my server configuration didn't like arch wasn't owned by www-data.

250 Post deleted by user.

251 Post deleted by user.

252 Name: Anon-i-Mouse : 2012-09-06 00:11 ID:E/O6ntVp [Del]

I'm too stupid sometimes.
Is this for after a nuke?

253 Name: Anon-i-Mouse : 2012-09-06 00:20 ID:KN336D8i [Del]

Lawd. I remember reading somewhere that it'd be good to have the tables (admin and proxy) for all the boards be the same.

For admin tables I get it for banning on all boards. I know about the crypto secret in (all tripcodes the same). I'd just like some clarification from some pros on the proxy side.

254 Name: Mr. Manager!!wIZhSe8U : 2012-09-06 08:17 ID:naZJxTsv [Del]

I don't think you're going to need a dedicated server. Get a $15/year VPS from BuyVM if you want to experiment.

255 Name: Anon-i-Mouse : 2012-09-07 17:29 ID:GmyOZRJM [Del]

Well I'm OK on the web hosting now. I was just tripping out and didn't want to do the wrong thing.

So what about the proxy tables being the same?
Is for after a nuke? Does it resort to needing that.

256 Name: Mr. Manager!!wIZhSe8U : 2012-09-07 21:58 ID:naZJxTsv [Del]

Sure, and no. Your config is safe after a nuke.

257 Name: Anon-i-Mouse : 2012-09-07 22:33 ID:uRKI+U4S [Del]

Well thank you good sir.

258 Name: Anon-i-Mouse : 2012-09-08 10:40 ID:xI2/1Dw3 [Del]

I was wondering if this thread is dead:
I think it is but I was wondering if you have to have a seperate SQL DB for each notes install?

259 Name: iSage!ISage.aan6 : 2012-09-09 10:38 ID:Qla6QxZX [Del]

Nah, it updated just thumb, leaving image as it is

260 Name: Mr. Manager!!wIZhSe8U : 2012-09-09 14:18 ID:naZJxTsv [Del]

Interesting. Thanks for pointing it out. I would've never noticed.

261 Name: Anon-i-Mouse : 2012-09-09 16:39 ID:DYS+FUw2 [Del]

I'm still thinking that it's one SQL per notes install.

Thanks dudes,

262 Name: Anon-i-Mouse : 2012-09-10 16:44 ID:LzXMnxxO [Del]

To change the filetypes that are OK to use on a board. Would I go into

and go to

sub get_filetypes()

and just add some more

sub get_filetypes()
my %filetypes=FILETYPES;

Something like this?

I forgot. it's been about 2 years since I last attempted this.

263 Name: Anon-i-Mouse : 2012-09-11 09:44 ID:yXeontVf [Del]

I just noticed that whole ID thing. I'm on my phone and I guess at&t give their phone network some random IP thing. not too sure. Well I'm setting Wakaba up today, well hopefully.

I'll try and see what I can do and then I'll come back here to see what's good. I was perusing around the internet and was at wakabachan iiichan and some other ones and dome of them had the main board HTML as some funky stuff, other than the generic index.html and I was wondering if that was some normal thing or if you could just rename it in or some other .pl and then rebuild caches?

Oh yeah did you hear about godaddy getting pwned somehow? All there servers went to crap. Darn news.

264 Name: Anonymous : 2012-09-11 14:15 ID:Heaven [Del]

> Oh yeah did you hear about godaddy getting pwned somehow?

It's surprising how much I've heard about that... I wouldn't expect people who use GoDaddy to know how to read, let alone type.

265 Name: Mr. Manager!!wIZhSe8U : 2012-09-11 19:09 ID:naZJxTsv [Del]

Hey now, I have a single domain with them from a year and a half ago, before I knew any better.

266 Name: Anon-i-Mouse : 2012-09-11 20:11 ID:R8+Qg6ox [Del]

I guess I'll stick with it until I find something better. I might have to make another thread on hosts. since I don't think it's been posted to in quite a while. I for one don't have a ton of money and I'd like a host who isn't going to whine about the stuff I have on the site. Obviously nothing illegal. I do want to have a tgp but that's besides the point.

Anyways I believe we're getting off topic. I'll create a thread for new hosts because I hate being that necroposter Guy.

I think we also need a new thread for the Notes script. because I like it.

267 Name: Anonymous : 2012-09-11 20:18 ID:Heaven [Del]

> Don't start new threads for every question,

... just sayin'. the existing threads aren't full yet, why not keep using them?

268 Name: Anon-i-Mouse : 2012-09-11 20:39 ID:R8+Qg6ox [Del]

I'm not starting threads for every question. This is the first thread I started.

269 Name: Anon-i-Mouse : 2012-09-11 20:41 ID:R8+Qg6ox [Del]

it just doesn't seem like web hosts is this threads topic. the other thread I read and I'm looking for some different answers so I think it's a tad different. I'm not going to argue, I'd just like to get some help or suggestions is all and not waste my money.

270 Name: Anon-i-Mouse : 2012-09-11 20:44 ID:R8+Qg6ox [Del]

my bad. The notes one was just a suggestion. but the web host one is something I'd like to plan out in advance and have it ready to go.

271 Name: Anonymous : 2012-09-15 08:52 ID:8pOTwAcT [Del]

Why is Kareha so slow for large boards? e.g. /dqn/

272 Name: Mr. Manager!!wIZhSe8U : 2012-09-15 09:37 ID:naZJxTsv [Del]

I hear its slow all the time, but I just went to DQN and every thread I opened loaded with 1 second.

273 Name: Mr. Manager!!wIZhSe8U : 2012-09-15 10:21 ID:Heaven [Del]

Never mind. Posting is pretty slow.

274 Name: Anon-i-Mouse : 2012-09-27 11:51 ID:ESrKpWZ4 [Del]

Ok so I got one test board up so I can figure out what I'm doing wrong and not replicate it. But I have

and it's letting me know that it's timing out when it tries to get to

which is kind of a bummer. I'm allowed to post images, but i was trying to replace the css and rebuild the caches, which should fix the css and make it all good. At least I was thinking. I do have the https, the secure admin thing on in I'm thinking I may want to turn that off and try again.

275 Name: Anon-i-Mouse : 2012-09-27 12:04 ID:ESrKpWZ4 [Del]

Ok so I'm thinking I was just trying to be too cool. I took off the https secure thing and redid the board and it's semi cool for now. So yay.

276 Name: Anon-i-Mouse : 2012-09-29 14:38 ID:Okutknir [Del]

Oh my gosh, this is quite frustrating. I got one board set up by some kind of trial and error. I tryed to setup my other boards under the same MySQL

I have the same user & pass for the DB for each board, but with different tables for captcha and comments and the same for admin, and proxy. that the first board has and for some goofy reason it's coming back with an error, a 500 server error to be exact. I figured I'd check here and see if I did something really dumb as crap. You can check it out at

or any thing like that since I have them all hanging out. I hate FTP with android. Sooooooo dumb.

If Waha has any questions or want to see the config just send me an email gotabowl at gmail.

277 Name: Mr. Manager!!wIZhSe8U : 2012-09-29 23:14 ID:Heaven [Del]


>- wakaba 3.0.9 + utorrent + futallaby-


278 Name: Anon-i-Mouse : 2012-09-30 06:06 ID:xOO5xPZV [Del]

what's wrong with utorrent?

I figured it out, I just didn't put the right permissions.

279 Name: Anonymous : 2012-09-30 12:30 ID:naZJxTsv [Del]

A lot but that's completely beside the point.

280 Name: Anonymous : 2012-09-30 12:33 ID:naZJxTsv [Del]

I'm trying to get Wakaba to keep linebreaks in certain parts of the template, specifically things that are included, but I can't seem to figure out how to get the whitespace successfully preserved in include() to not get stripped away in compile_template().

Any ideas? I have half of it working, I just need to find a way to make everything else play along.

281 Name: Anonymous : 2012-10-02 00:50 ID:Heaven [Del]

Find sub include($) in, and change the whole block to something like this:

sub include($;$)
my ($filename,$nostrip)=@_;

open FILE,$filename or return '';
my $file=do { local $/; <FILE> };

$file=~s/\n\s*/ /sg;

return $file;

Then use something like include("file.html", 1) in the templates. The second argument will tell it to not strip whitespace.

282 Name: Anonymous : 2012-10-02 22:42 ID:naZJxTsv [Del]

I coulda sworn I already replied to >>281, but I don't see it here.

Anyways, I already got it not to strip whitespace in include(), but it's getting stripped later on in compile_template(). That's where my problem is.

283 Name: Leevi : 2012-10-16 14:38 ID:A52gIGAN [Del]

I'm using Kareha on a board I made, but for some reason every new thread's number is 1, even though it should auto-increment.
Now in Wakaba it would just be setting the MySQL table's thread number value to auto-increment, but since Kareha doesn't use SQL, how do I do this?

284 Name: !WAHa.06x36 : 2012-10-17 02:36 ID:Heaven [Del]


That's how it works.

285 Name: Anonymous : 2012-10-17 08:47 ID:Heaven [Del]

Any updates on this?

286 Name: Anonymous : 2012-10-17 14:16 ID:8Ba+rDOd [Del]

I was wondering how I can get different, or other file types to be able to be uploaded, rather than the default jpg, PNG, and GIF.

I've searched for a solution but I guess I'm obviously retarded

287 Name: Anonymous : 2012-10-17 16:02 ID:Heaven [Del]

There's an option in the config for this last time I checked...

288 Name: Anonymous : 2012-10-18 17:48 ID:8Ba+rDOd [Del]

Well like I said, I might be a tad retarded, I'll take a look for it again. Thanks for the reply though.

289 Name: Anonymous : 2012-10-18 18:02 ID:8Ba+rDOd [Del]


I am using Wakaba and I checked the again

#use constant ALLOW_UNKNOWN
#use constant MUNGE_UNKNOWN

These are what I came up with. This is my first time set up so I'm not that knowledgeable on where this would be located but when I look at the setting listed above it just seems like those are the files that aren't allowed. I'd rather not mess around with it because I know I'll mess it up. I waited a month last time because I put a & in the

use constant TITLE


290 Name: Anonymous : 2012-10-18 18:27 ID:8Ba+rDOd [Del]

Ok well I think I got it figured, my brain is full of hurt.
So my guess is that I uncomment the filestypes I'd like to use as long as there are images for them. I'd like to include .rtf, .txt, .docx

# Icons for filetypes - file extensions specified here will not be renamed, and will get icons
# (except for the built-in image formats). These example icons can be found in the extras/ directory.
#use constant FILETYPES => (

So all I have to do, I think is include the randoms after these ones and uncomment the ones I want? Like so?
# # Other files
# swf => 'icons/flash.png',
# torrent => 'icons/torrent.png',

    rtf => 'icons/rtf.png',
docx => 'icons/docx.png',
txt => 'icons/txt.png',
odt => 'icons/odt.png',

291 Name: Anonymous : 2012-10-19 01:01 ID:8Ba+rDOd [Del]


ok so where I'm testing this at is

and I got the filetypes to display on the rules.html but when I tried to post a txt file I got this:

Software error:

Possible IE XSS exploit in file at line 1118.

I went to line 1118 where it told me it's having a problem

# Check for IE MIME sniffing XSS exploit - thanks, MS, totally appreciating this

read $file,my $buffer,256;
seek $file,0,0;
die "Possible IE XSS exploit in file" if $buffer=~/<(?:body|head|html|img|plaintext|pre|script|table|title|a href|channel|scriptlet)/;

Looked through this a bit and decided I didn't know what it did but it was quite a bummer. Thought I had figured this out. So I went back to the and uncommented these hoping it'd make it work but nope

use constant ALLOW_UNKNOWN => 1;
use constant MUNGE_UNKNOWN => '.unknown';

So now my head is full of fudge again but I'll attempt to play around and figure it out which is why I made a test board.

292 Name: Anonymous : 2012-10-19 01:56 ID:8Ba+rDOd (Image: 86x86 png, 1 kb) [Del]

src/1350636992341.png: 86x86, 1 kb

Good gawrsh...

Ok jeeze didn't take too long to figure out.

I went into line 1613 and added this business

sub get_filetypes()

my %filetypes=FILETYPES;
return join ", ",map { uc } sort keys %filetypes;

But for some reason the images I made aren't showing up even though I defined where they live in the kind of odd

I guess I figured it mostly out so now I can try to figure the next portion out.

The test board is at

293 Name: Anonymous : 2012-10-19 09:20 ID:Heaven [Del]



I have no fucking idea what you're doing and neither do you.

294 Name: Anonymous : 2012-10-19 09:21 ID:naZJxTsv [Del]

Any advice on this? I'm starting to think it may be impossible because of the way the template system is coded, but I'm really hoping someone could tell me otherwise.

295 Post deleted by user.

296 Name: Anonymous : 2012-10-19 18:18 ID:Heaven [Del]

I believe compile_template takes an optional second argument which preserves whitespace. Simply change }.NORMAL_FOOT_INCLUDE); at the end of each template to }.NORMAL_FOOT_INCLUDE, 1);.

You'd probably be better off asking your question here:

297 Name: Anonymous : 2012-10-19 19:46 ID:8Ba+rDOd [Del]


Lol, I don't know how that'd be any bit more helpful than I am asking
questions here. Kind of figured I'd get that response.
I guess I'll have to go to and pay someone
to set up the extra stuff I want. Been thinking about it for a while,
I am learning Perl but I'm still on Learning Perl
but I don't think that's going to help anytime soon.
So I think that's my best bet.

Thanks for all the great helpful help Anon.
Guess I'll email Waha and if I get nothing from that
I'll shell out $500 I don't have to get someone who knows the answer to the questions I ask. I mean this is a discussion board for
the script, amiright? I'd think someone would come up
with something a tad better then telling me
I don't know what the fuck I'm doing, but shit
it's nice to know that only a couple of people on
here actually do. Not that I'll be switching to
Kusaba X, because I'd see that as traitorous
behavior plus it's just bloated.

Waha, Mr. Manager
Thanks for your help and Wags keep at it.

All I know is I'm not going to ask a question
here ever again, because I know I'll never get a legit
answer from people who want to look down
on me for ... hmmmm .... not understanding
years and years of coding experience.

My goodness, a discussion board for not help.

298 Name: Anonymous : 2012-10-20 00:15 ID:Heaven [Del]

I don't think I'm communicating my problem too well. I already know how to preserve ALL whitespace. What I'm attempting to do is preserve it only in certain areas, which is proving impossible.

299 Name: Anonymous : 2012-10-20 05:35 ID:Heaven [Del]

Ah, right. The only thing I can think of is to use something like <var include("foo.html")> in the templates instead of using include() the "normal" way. The only problem is that any template code inside of it won't be evaluated without a bit of extra effort, although <var compile_template(include("foo.html"), 1)-\>()> could possibly solve that. It's not pretty, however.

300 Name: Anonymous : 2012-10-20 05:53 ID:Heaven [Del]

Oh, and you'll have to use the modified include() function I posted earlier, and call it with the second argument.

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