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: http://wakaba.c3.cx/docs/docs.html

There is also a setup guide by Anon: http://wiki.iiichan.net/index.php?title=Wakaba_and_Kareha_Setup_Guide

Questions about "500 Internal Server Errors" go in this thread: http://wakaba.c3.cx/sup/kareha.pl/1109033191/

2 Name: Anonymous : 2011-01-07 10:15 ID:Heaven [Del]

The header of the board still points to the support thread part 2. Just thought I'd tell you.

3 Name: Anonymous : 2011-01-07 14:38 ID:M22ovTpD [Del]

Here's a simple one, can you add boards? Is it done through the config file or the Management Panel? Thanks.

4 Name: Anonymous : 2011-01-08 01:09 ID:Heaven [Del]

You copy your Kareha directory somewhere else. There's no option of sub-forums or anything like that. You can only have different instances of Kareha in different folders.

5 Name: Anonymous : 2011-01-08 01:24 ID:ivkZbDfv [Del]

Why are there secret options in the first place? Wouldn't it be easier to release them and be done with it instead of being secretive?

6 Name: Anonymous : 2011-01-08 09:55 ID:Heaven [Del]

>>5
What secret options are you talking about? If you're referring to the SecretFeatures page on the documentation wiki, that's just undocumented features which are included.

7 Name: Anonymous : 2011-01-08 10:45 ID:Heaven [Del]

>>6
Exactly those. Why not document them?

8 Name: !WAHa.06x36 : 2011-01-08 12:19 ID:eLRTX7Vk [Del]

>>7

Because they are jokes and not meant to be used.

9 Name: Anonymous : 2011-01-08 12:26 ID:Heaven [Del]

>>8
If we have "useless" functions like that, why not go for stupid things like stickies too?

10 Name: Anonymous : 2011-01-08 23:47 ID:Heaven [Del]

>>9
because the joke features are amusing, while stickies just turn boards into shit.

11 Name: Anonymous : 2011-01-11 09:03 ID:kgaG5Vpe [Del]

from previous thread

987 Name: Anonymous
Wakaba
i turned on function stops Wakaba from renaming image files, but the cyrillic characters look really weird, like укр.jpg.
Can you help me make wakaba show cyrillic names correctly?

989 Name: akane!!xU6Yb/f1
>>987 use UTF-8?

990 Name: Anonymous
>>989
i do use!
i set use encoding 'utf-8' in the beginning of Strings_en, but it does not help

991 Name: Anonymous
>>990
Check your server's configuration. The files have to be served as UTF-8, and that is outside of Wakaba's realm. Specifically, the Content-Type header needs to have a charset=utf-8.

--------------------------------

I added line <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> to futaba_style.pl but nothing changed. Am I doing smthing wrong?

12 Name: Anonymous : 2011-01-11 21:35 ID:Heaven [Del]

>>11
use utf-8 in the file names.

13 Name: Anonymous : 2011-01-14 08:59 ID:kgaG5Vpe [Del]

>>12

what do you mean?

14 Name: Anonymous : 2011-01-14 20:33 ID:Heaven [Del]

>>13
name your files in utf-8 instead of whatever weird encoding you're using.

15 Name: Anonymous : 2011-01-17 04:07 ID:kgaG5Vpe [Del]

>>14
how can I do that, and what even more important - how can I make my users do that?
in my >>11 i've said what i've done, but that did not help.
What am I doing wrong?

16 Name: Anonymous : 2011-01-17 16:16 ID:Heaven [Del]

>>15
on most sane operating systems, utf-8 is the default for filenames, and it's easy to change the encoding.
but i'm guessing you're on windows, and i'm not sure how to do it on windows.
you could figure out what encoding your operating system is using and modify wakaba to convert from that to utf-8, but that would break it for anyone who is using any other encoding (including utf-8). you could do some hacks to try to guess the right encoding, but even then it will get some filenames wrong, at the cost of greatly increased code complexity. really, the best option is to just have it rename the files. that's why the default is the way it is.

17 Name: strat : 2011-01-18 09:50 ID:U/U9j7ez [Del]

I've got wakaba up and running and it works for every function EXCEPT uploading images

If you don't select a file everything works fine and thread save and everything

If you try to select a file and submit it hangs indefinitely (Using chrome I see in the bottom left "Uploading: 8%" and it stays there forever)

Any suggestions?

Is there something I can edit in the config file? or is it server issue?

18 Name: strat : 2011-01-18 10:52 ID:U/U9j7ez [Del]

PS: I'm using lighttpd server, not apache

19 Name: strat : 2011-01-18 12:13 ID:U/U9j7ez [Del]

PPS: Apperently there's a max size somewhere other than the config file, I can upload very very small images, but if the image is over 1kb or something it hangs.

This is probably server-side, but I'm not very familiar with that, under lighttpd does anyone know where this problem might be originating from?

20 Name: Anonymous : 2011-01-30 00:59 ID:YjP2tqq8 [Del]

#use constant MAX_LINES_SHOWN => 15; # Max lines of a comment shown on the main page (0 = no limit)

If one sets MAX_LINES_SHOWN to 0, one just gets empty posts instead of no limit. Looks like a bug to me.

21 Name: Anonymous : 2011-01-30 02:24 ID:kgaG5Vpe [Del]

I want to allow the TXT files on my Wakaba board.
I uncomment the line in config.pl:
use constant FILETYPES => (

And add a line:
# # Other files

txt => 'icons/txt.png'

But it does not work, I get an error:
"no" not allowed in expression at config.pl line 177, at end of line
syntax error at config.pl line 177, near "no encoding"
Compilation failed in require at /var/www/chan/nichan.net/st/wakaba.pl line 16.
BEGIN failed--compilation aborted at /var/www/chan/nichan.net/st/wakaba.pl line 16.

What am I doing wrong?

22 Name: Anonymous : 2011-01-30 10:58 ID:Heaven [Del]

>>21
Did you uncomment the closing parentheses?

23 Name: Anonymous : 2011-02-02 18:16 ID:kgaG5Vpe [Del]

>>22

no, i didn't... THANK YOU!

24 Name: Anonymous : 2011-02-03 05:38 ID:kgaG5Vpe [Del]

test

25 Name: Anonymous : 2011-02-03 07:57 ID:kgaG5Vpe [Del]

how can I get this ID Heaven on my imageboard?
I set:
use constant DISPLAY_ID => 1;
use constant EMAIL_ID => 'Heaven';

write an email in message, but still I get regular ID

26 Name: Anonymous : 2011-02-03 11:50 ID:Heaven [Del]

>>25
use constant DISPLAY_ID => 'link';

I think the 0/1 is a lingering old example that doesn't work anymore.

27 Name: Anonymous : 2011-02-03 12:13 ID:kgaG5Vpe [Del]

one more question:
i added txt, mp3, doc, ogg, aac, rar, 7z as supported formats. how can i make wakaba rename them? cause wakaba saves their filenames

28 Name: Anonymous : 2011-02-03 12:40 ID:kgaG5Vpe [Del]

>>26

use constant DATE_STYLE => 'localtime'; # Date style ('futaba', '2ch', 'localtime', 'tiny')
use constant DISPLAY_ID => 'link'; # How to display user IDs (0 or '': don't display,

					#  'day' and 'board' in any combination: make IDs change for 

each day or board,

					#  'mask': display masked IP address (similar IPs look 

similar, but are still encrypted)

					#  'sage': don't display ID when user sages, 'link': don't 

display ID when the user fills out the link field,

					#  'ip': display user's IP, 'host': display user's host)

use constant DISPLAY_ID => 1; # Display user IDs (0: never, 1: if no email, 2:always)
use constant EMAIL_ID => 'Heaven'; # ID string to use when DISPLAY_ID is 1 and the user uses an email.
#use constant TRIPKEY => '!'; # this character is displayed before tripcodes

is it rights?
then how do I get ID:Heaven?

29 Name: Anonymous : 2011-02-04 01:57 ID:C++iCm4U [Del]

is there some way to display pages other than 0 in kareha?

an automatized one i mean, like the wakaba one, since i can't find anything for that in the config and end up manually linking to every page from the header/footer.

30 Name: Anonymous : 2011-02-04 10:27 ID:aI6GNze9 [Del]

>>29
Sure, if you switch it to imageboard mode.

31 Name: Anonymous : 2011-02-04 11:12 ID:C++iCm4U [Del]

so a textboard can't have that? that kind of sucks, i don't really want to replace it with an imageboard (if i'm right, i have to delete the old one and install an imageboard version?).

makes me wonder why does it even generate more pages then, if they can't be accessed unless the users start guessing the links or the admin adds the links manually, and then edit the headers every so often to include every new page/delete nonexistant ones.

32 Name: Anonymous : 2011-02-04 12:08 ID:Heaven [Del]

You could have it, but it would take some work by hand to write a "hybrid" template supporting the features you want. Out of the box, you have one or the other.

(Generate what now?)

33 Name: Anonymous : 2011-02-04 12:17 ID:C++iCm4U [Del]

>(Generate what now?)

extra pages with older threads.

i have a generic kareha text board with "use constant PAGE_GENERATION => 'paged';" enabled, and it creates 1.html, 2.html, 3.html etc. with the threads that fell off page 0, so all it'd have to do is link to the existing ones and disable the currently viewed one.

34 Name: Anonymous : 2011-02-05 08:41 ID:Bno3a85R [Del]

can i apply reCaptcha on wakaba?

35 Name: Anonymous : 2011-02-05 10:48 ID:Heaven [Del]

>>34
Yes. I made a mod for that, but it depends on the Captcha::reCAPTCHA CPAN library.

36 Name: Anonymous : 2011-02-05 11:03 ID:Heaven [Del]

>>35
Can you post what you did in the patch thread?

37 Name: Anonymous : 2011-02-05 16:02 ID:Heaven [Del]

>>36
Done!

38 Name: Anonymous : 2011-02-05 18:09 ID:kgaG5Vpe [Del]

i added txt, mp3, doc, ogg, aac, rar, 7z as supported formats. how can i make wakaba rename them? cause wakaba saves their filenames

39 Name: Anonymous : 2011-02-07 09:52 ID:Heaven [Del]

>>38

Find this line in wakaba.pl:

if($filetypes{$ext}) # externally defined filetype - restore the name

and replace it with if (0). Hackish but the simplest way to do that.

I tried that on my board once, though, and people really didn't like it.

40 Name: Anonymous : 2011-02-10 15:52 ID:WYoXpIQU [Del]

i dont want kareha to prefill in the name and link fields based off cookie info, how do i fix this?

41 Name: Anonymous : 2011-02-10 15:53 ID:WYoXpIQU [Del]

i dont want kareha to prefill in the name and link fields based off cookie info, how do i fix this?

42 Name: anonymous : 2011-02-10 15:54 ID:WYoXpIQU [Del]

I dont want kareha to fill out the name and link fields with cookie info, how do i fix this?

43 Name: Anonymous : 2011-02-11 07:45 ID:Heaven [Del]

>>40
Open the .js file, and put a return; right before the var el in set_new_inputs.

>>41
Delete kareha.js.

>>42
Delete kareha.pl.

44 Post deleted by user.

45 Name: Anonymous : 2011-02-16 12:27 ID:Lw0vossg [Del]

WAHa, I was just wondering why you use -size/-geometry in the ImageMagick command instead of -resize. The latter works much faster on my computer than the first. Just asking.

46 Name: Anonymous : 2011-03-01 10:07 ID:dpJzbpFG [Del]

How do you change what the bullet statements below "password" say on the main board?

for example if i change what file types are allowed or file sizes or just want to post the rules there?

47 Name: Anonymous : 2011-03-01 14:49 ID:Miu+Msti [Del]

>>46
Edit include/rules.html.

48 Post deleted by user.

49 Name: Anonymous : 2011-03-02 10:31 ID:dpJzbpFG [Del]

>>47

yeah i tried that but it's not updating :/

I can't find where in the code it links to rules.html

50 Name: Anonymous : 2011-03-02 17:58 ID:Heaven [Del]

>>49
Go to Manage and click Rebuild caches.

51 Name: Anonymous : 2011-03-03 00:59 ID:Ef7z+kRC [Del]

I'm trying to cobble together something similar to 4chan/tg/'s dice rolling function. If "dice XdY+Z" is in the email field when the post is submitted, the script will randomly generate numbers to simulate rolling X-number of Y-sided dice, add modifier Z, and put the result into the posted post. So "2d6+5" would result in something like

Rolled 4, 3 + 5 = 12
Rest of post derp herp blahblah etc

The perl script I've found is different in that it can process negative modifiers instead of just adding, but the basic idea is the same.

#!/usr/bin/perl -wl
use strict;
$_ = shift or die 'Invalid argument passed';
s/\s+//g;
/^(\d+)[dD](\d+)([+-]\d+)?$/ or die 'Invalid argument passed';
my $sum = 0;
$sum += 1 + int rand $2 for 1..$1;
$sum += $3 if defined $3;
print $sum;

The problem is I don't know anything about perl or coding aside from some basic concepts like variables and subroutines, so I don't know how to integrate the rolling script with Kareha.
I started off looking through kareha.pl to see where it called rotator.pl (banner image randomizer), so I could modify the function for my own purposes, and have had no luck. I'm probably looking for the wrong thing, or in the wrong place, or have seen exactly what I need but didn't recognize it...

Any help at all is appreciated.

52 Name: Anonymous : 2011-03-03 08:11 ID:Heaven [Del]

>>51

> similar to 4chan

First ask yourself why you need to make a copy of something that already exists. And I can't figure out why you're bringing up banner images, either.

But disregarding that... try putting this in wakaba.pl, right after the message text formatting. You'll probably have to work with it because I didn't test this and I never get perl to work right on the first try. Also I don't remember what the variables are called offhand. Probably they're both wrong.

# mostly your same regex, except with the word 'dice'
# (and with /x, because cramped-up regexes are unreadable)
if ($link =~ /dice \s* ( # $1 = everything after 'dice'
(\d+) # $2 = old $1
\s* d \s* # the letter 'd', literally
(\d+) # $3 = old $2
\s* # some space!
([+-]\d+)? # $4 = old $3, maybe
)/xi) {
# this is the same
my $sum = 0;
$sum += 1 + int rand $3 for 1..$2;
$sum += $4 if defined $4;
$message = '<p>Rolled ' + $1
+ ' = <strong>' + $sum + '</strong></p>'
+ $message;
}

And after you get it to work, maybe post the functioning code to the patch thread. (http://wakaba.c3.cx/sup/kareha.pl/1256252904/l50)

53 Name: Anonymous : 2011-03-06 18:16 ID:VhUEcIkX [Del]

How do I stop the thread numbers from reseting to 1? Eg. "No.1"

54 Name: Anonymous : 2011-03-06 20:43 ID:Heaven [Del]

>>53
Use Wakaba instead of Kareha.

There's probably ways to patch kareha to keep a running post count, but it'd be a deep change.

55 Name: Anonymous : 2011-03-06 20:48 ID:VhUEcIkX [Del]

>>54

Thanks, but I have no idea on how to set up the sql database for Wakaba... If anyone could help me with that, I'd greatly appreciate it.

56 Name: Anonymous : 2011-03-07 13:07 ID:Heaven [Del]

>>55
You don't have to set anything up. Wakaba does that for you. All you do is fill out the server/username/password in the config, which your host should have given you.

Or you could also try uncommenting the second SQL_DBI_SOURCE line (the one that says "SQLite") instead, and leave everything else blank, if you have the perl sqlite module installed.

57 Name: Anonymous : 2011-03-07 19:05 ID:Heaven [Del]

All the transparent PNGs I upload get a white background. Where can I disable this?

58 Name: !WAHa.06x36 : 2011-03-08 09:22 ID:eLRTX7Vk [Del]

>>57

"Disable" it how? Thumbnails are JPEGs, they can't be transparent. It has to be SOME colour.

59 Name: Anonymous : 2011-03-08 20:35 ID:Heaven [Del]

>>58
Well is there a way to create the thumbnails in the original format then? I've seen transparent PNG thumbnails and even transparent, animated thumbnails on various chans.

60 Name: Anonymous : 2011-03-09 04:33 ID:Heaven [Del]

>>59
Of course it's possible, if you rewrite the thumbnail-making code.

61 Name: Anonymous : 2011-03-13 12:51 ID:lfrvtekH [Del]

use constant DISPLAY_ID => 'day'; # How to display user IDs (0 or '': don't display,

IDs don't seem to be changing daily. Am I doing something wrong here?

62 Name: Anonymous : 2011-03-15 09:58 ID:Ef7z+kRC (Image: 659x166 png, 14 kb) [Del]

src/1300208304384.png: 659x166, 14 kb

Whenever I make a post that has any space between lines, the blank line doesn't show up in the Photon theme. Does anyone know what I need to modify to get Photon to recognize the double-space?

Left is Photon, right is Burichan

63 Name: Anonymous : 2011-03-15 11:28 ID:Heaven [Del]

>>62
Seek and destroy this rule:

blockquote p {
margin: 0;
padding: 0;
}

64 Name: Anonymous : 2011-03-19 22:08 ID:eBCrjWFi [Del]

Bump for some help with >>61

Seriously. If I'm doing something stupid, just say so. Otherwise, I could really use some help as this seems to be broken.

65 Name: Anonymous : 2011-04-06 23:31 ID:AlFRE+X1 [Del]

So there was talk of using a sage checkbox instead of having a link box...
http://wakaba.c3.cx/sup/kareha.pl/1141929669/657
Did anyone ever try that? I'm using an anonymous board where that's the only use for the link box. Kinda awkward.
Also, the mailto:sage thing is silly. Only sage posts turn the name into a mailto link, and that doesn't do anything useful.

66 Post deleted by user.

67 Name: Anonymous : 2011-04-08 03:52 ID:Heaven [Del]

Any particular reason why Wakaba stores the IP of posters as an integer?

68 Name: Anonymous : 2011-04-08 05:04 ID:Heaven [Del]

>>67 That's the only portable way to compare addresses and deal with CIDR ranges.

69 Name: Anonymous : 2011-04-12 11:21 ID:6ila+4vx [Del]

>>65
Yeah, I've done this on my boards for some time now. Though, we kept the ability to also put sage into the email field, since not everyone is intelligent enough to notice the checkbox. It works well.

70 Name: Anonymous : 2011-04-12 20:18 ID:AlFRE+X1 [Del]

>>69
Did you make it so sageing doesn't add a mailto link, or just add a checkbox option? I was thinking of changing this line in kareha.pl:

$link="mailto:$link" if $link and $link!~/^$protocol_re/;

so that there's another condition that $link not be "sage", but I'm not sure if that will break the sage function.

71 Name: Anonymous : 2011-04-18 10:18 ID:SZ+oPXmk [Del]

Hello man,

I have accidently moved a couple of threads to archive. How to return them to an imageboards from archive? Simply copying files from /src/, /res/, /thumbs/ doesnt help - e.g., in /res/ html files of threads even disappear after cache update! How to revive threads from archive?

72 Name: Anonymous : 2011-04-21 07:55 ID:Heaven [Del]

>>71
You can't.

73 Name: Anonymous : 2011-04-22 12:49 ID:Ts46dqG+ [Del]

>>72
no T_T

74 Name: Anonymous : 2011-05-06 01:53 ID:/wuv0fyN [Del]

How can I add transparency to previews of the pictures on my wakaba board?
Some of the full image has transparency, but previews never have.

75 Name: Anonymous : 2011-05-08 09:09 ID:Heaven [Del]

>>74
You need to modify the code to write previews as something other than jpg.

76 Name: Anonymous : 2011-05-08 23:55 ID:i3YI3W2a [Del]

>>75

could you help me? Or where can I find info? I want the png and gif images to keep their transparency even in previews.

77 Name: Anonymous : 2011-05-14 23:07 ID:02hGJvFs [Del]

Hello everyone,

I have a trouble - oekaki applet doesnt work. I can draw normally, uplaod the picture, but after that it says "management password incorrect". Regular posts are sent normally. Why management password incorrect? Maybe wakaba encodes management password incorrect due to encoding? I have utf-8 installed

78 Name: Anonymous : 2011-05-17 10:40 ID:BSvjNYjI [Del]

Lol, problem solved, dunno how
77-kun

79 Name: Anonymous : 2011-05-30 10:55 ID:o0l+wLjO [Del]

How can I get this USER WAS BANNED FOR THIS POST message on Wakaba?

80 Name: !WAHa.06x36 : 2011-05-30 14:42 ID:Heaven [Del]

>>79

You can't. That's a feature.

81 Name: Anonymous : 2011-05-31 12:05 ID:Heaven [Del]

I've setup my board, and every thing is working. But the board look itself is odd.
The favicon does not show up, and the text font is different in most places. places is a deferent font than the install of Kareha at The Society for the Study of Imageboard Culture. Even in the input boxes. In fact as I was typing this I noticed that mine is actually like this board here. Why is text on The Society for the Study of Imageboard Culture look different from this board here and mine?

82 Name: Anonymous : 2011-06-01 08:20 ID:Heaven [Del]

>>81
Because The Society for the Study of Modern Imageboard Culture uses SHIFT_JIS encoding (which you should avoid, unless you're Japanese or a huge weeaboo).

83 Name: Anonymous : 2011-06-01 12:53 ID:Heaven [Del]

>>82
Oh I understand. You say I should avoid it though The Society for the Study of Modern Imageboard Culture does not seem to have any problems with it. What would be the disadvantages of using SHIFT_JIS?

84 Name: Anonymous : 2011-06-01 16:08 ID:Heaven [Del]

>>83
Unicode characters won't work. You should rather use a bit of CSS if you absolutely must have the Japanese fonts.

85 Name: Anonymous : 2011-06-11 14:11 ID:tk8IDOvp [Del]

So...

10 pages worth of threads for my Kareha image board disappeared a couple of days ago, and I wanna know why. I haven't touched anything in the FTP files in months.

Could anyone explain why this happened and how to get them back/prevent it from happening?

86 Name: Anonymous : 2011-06-11 20:42 ID:Heaven [Del]

>>85
Maybe somebody guessed your admin password?

87 Name: Anonymous : 2011-06-11 20:58 ID:tk8IDOvp [Del]

No, that's not it. After conducting an experiment, it seems like the pages are only able to be at 0 and 1 from now on. It can't make a page 2 anymore for some reason.

Maybe i should just reinstall it?

88 Name: Orochi Herman!hN02YkuTxM : 2011-06-21 22:04 ID:b+acuI+h [Del]

So, where do I get this url shortening decoder for Wakaba?

89 Name: Anonymous : 2011-08-05 16:22 ID:Zx4e4MEq [Del]

I am running small Kareha board. Somehow one thread got disappeared I don't know how. Limits are disabled (manually of by default) or set to other values, so threads shouldn't be autodeleted, I think.
There were 5 pages, and that thread was on 0 page (though it was old, but most active, post limit and bump limit was not reached). OP didn't deleted it too. Where could be the problem?
Also, TRIM_METHOD is better to set to 1? Maybe because of this that thread was gone.

90 Name: That guy with the band. : 2011-08-12 17:46 ID:TCeeUWog [Del]

I keep getting this error not matter what I do. Advice?

No SQL settings defined in the configuration at config_defaults.pl line 11.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.

91 Name: Anonymous : 2011-08-13 13:43 ID:Zx4e4MEq [Del]

To continue about >>89
Could it be because of no space left on disk and that thread was bumped (posted in it)?

92 Name: Mr. Manager!!wIZhSe8U : 2011-08-14 15:49 ID:yEgF0xnz (Image: 1356x1028 png, 175 kb) [Del]

src/1313362157734.png: 1356x1028, 175 kb

I have a small question regarding the the "posts omitted" message in Wakaba. Is there any possible way to accomplish what I'm showing on the bottom half of this image?

http://i.imgur.com/IljHR.png

93 Post deleted by moderator.

94 Post deleted by moderator.

95 Post deleted by moderator.

96 Name: Anonymous : 2011-08-16 17:32 ID:Heaven [Del]

>>92
Yes, you can misspell "omitted" by editing strings_en.pl.

97 Name: Mr. Manager!!wIZhSe8U : 2011-08-17 13:49 ID:yEgF0xnz [Del]

>>96
Doesn't really solve my problem, but okay.

98 Post deleted by user.

99 Name: Mr PirateBox : 2011-08-19 09:16 ID:moNZCOS6 [Del]

Hi,
I'm using lighttpd and perl on a openwrt.
I'm getting the following error if I'm posting anything:

---
Software error:
Attempt to reload Encode.pm aborted.
Compilation failed in require at wakautils.pl line 616.

---

The Section is creating something for a cookie. How can I fix his?

100 Name: !WAHa.06x36 : 2011-08-19 13:00 ID:eLRTX7Vk [Del]

>>99

Don't use lighttpd, probably. I don't think anyone's managed to get wakaba to work with it.

101 Name: Mr PirateBox : 2011-08-19 14:45 ID:PO8bpCCz [Del]

It's working on my debian box with lighttpd.

102 Name: Mr. Manager!!wIZhSe8U : 2011-08-20 09:06 ID:yEgF0xnz [Del]

>>100
I actually have it running perfectly on my Debian box as well.

http://glauchan.ax.lt/

103 Name: Anonymous : 2011-08-20 18:10 ID:Heaven [Del]

>>100
The kei.iichan.net boards use it, apparently.

104 Name: Mr PirateBox : 2011-08-20 23:31 ID:cNrGglfw [Del]

>>99

I believe this problem have something to do with the used perl version for openwrt.
I only installed the "missing" packages, but maybe I missed a few.

It isn't possible to install all perl packages at all, because there is not enough space left on the device

105 Name: That guy with the band. : 2011-08-22 14:18 ID:1PltzV+l [Del]

>>90
Help please?

106 Name: Anonymous : 2011-08-22 15:17 ID:Heaven [Del]

>>105

Well did you define any SQL settings?

107 Name: That guy with the band. : 2011-08-24 13:10 ID:1PltzV+l [Del]

>>106
Only the bare minimum ones needed to run and connect to the database.

108 Name: Anonymous : 2011-08-24 20:10 ID:Heaven [Del]

>>107

Well, better check that again, then. Remember not to comment it out, either.

109 Name: Anonymous : 2011-08-29 00:23 ID:g34np2s6 [Del]

Trying to set up a Kareha board, however, I've noticed that unless I delete kareha.pl, re-upload it and run it no changes take effect. Is this normal, or am I missing out on something?

110 Name: Anonymous : 2011-08-29 04:49 ID:Heaven [Del]

>>109
Rebuild the caches from the admin panel after you make changes.

111 Name: That guy with the band. : 2011-08-29 16:08 ID:1PltzV+l [Del]

112 Name: Anonymous : 2011-08-29 19:43 ID:g34np2s6 [Del]

>>110

I'm guessing it depends on the host's control panel, but just how would I do that?

113 Name: Anonymous : 2011-08-30 18:48 ID:QtWloSoo [Del]

>>112

Go to admin.pl.

114 Name: Anonymous : 2011-09-09 09:20 ID:4L8vcPML [Del]

wAHA, what do you think of youtube embedding in the post? Some users want it but I find it annoying when they just start posting a lot of embedded videos instead of images, or text, or at least links.

115 Name: Anonymous : 2011-09-11 15:08 ID:QtWloSoo [Del]

Would anyone mind telling me if i should be using the same cryptographic secret key across all boards?

116 Name: !WAHa.06x36 : 2011-09-11 16:20 ID:Heaven [Del]

>>115

If you want secure tripcodes to be the same across all boards, yes.

117 Name: Anonymous : 2011-09-13 11:42 ID:bjxSkLW6 [Del]

I get a 404 when I try to Preview Post using Opera (11.51). Does anyone else have this problem?

118 Post deleted by user.

119 Name: Mr. Piratebox : 2011-09-15 22:53 ID:QbGeW+Wy [Del]

>>99

Got the Page-Load Problem solved. It was missing .pm file.

CGI::Carp qw ( fatalstobrowser does not work correctly on lighttpd.

use the following lines instead:

-> kareha.pl

#use CGI::Carp qw(fatalsToBrowser);

BEGIN {
use CGI::Carp qw ( carpout);
open ( LOG, ">>/tmp/cgi.log" ) or die ("Unable to open cgi.log");
carpout (LOG);
}

So you'll find the perl errors in /tmp/cgi.log

Anyone an idea to solve the problem, that I only see the new posts with a "refresh" of the page .. with lighttpd ??

120 Name: Anonymous : 2011-09-25 03:44 ID:XJYzGU6D [Del]

Hi,

I am using wakaba 3.0.8, apache/2.2.21 and mysql 5.1.56.
Although the site is accessible, I can't post anything. The site just loads for about a second when i use the Submitbutton. There are no errors in the Apache or mysql logs. Any help would be appreciated.

121 Name: Anonymous : 2011-09-26 00:47 ID:nLIA7St+ [Del]

>>119

>Anyone an idea to solve the problem, that I only see the new posts with a "refresh" of the page .. with lighttpd ??

I'm having this same exact problem with Wakaba (and maybe Kareha; too early to tell). Any solutions?

122 Name: Anonymous : 2011-09-26 05:04 ID:Heaven [Del]

>>121
Configure lighttpd to serve HTML files with an "Expires" header set to a date in the past.

123 Name: !WAHa.06x36 : 2011-09-26 07:03 ID:Heaven [Del]

>>120

Rebuild caches.

124 Name: Anonymous : 2011-10-13 03:52 ID:YkiTmvxq [Del]

Has anyone here ever tried to port Kareha/Wakaba into php-based framework app?
sorry for my bad english

125 Post deleted by user.

126 Name: kin : 2011-10-26 04:28 ID:uQGqbqwU [Del]

wakaba.pl: Can't locate config.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl) at /var/www/waka/wakaba.pl line 16.
[Wed Oct 26 22:18:00 2011] wakaba.pl: BEGIN failed--compilation aborted at /var/www/waka/wakaba.pl line 16.

how do i fix this?

127 Name: Anonymous : 2011-10-26 16:42 ID:Heaven [Del]

Hi, I'm trying use Kareha in image mode, but keeping the textboard look, basically what this board is doing. I've setup kareha in text mode and image mode before, but how I set it up in imageboard mode and make it keep the textboard mode look?
The same thing is done on this board: http://www.secchan.net/niche/

128 Name: Anonymous : 2011-10-27 18:41 ID:Heaven [Del]

>>127
set it up in textboard mode, then enable image posting in config.pl.

129 Name: Anonymous : 2011-10-30 14:24 ID:ZQ5CH/kV [Del]

So I setup Wakaba on my hosts server and everything was working except for thumbnail generation. In place of the thumbnail you would see a dotted borderlined square, and in it is simple the words "No thumbnail." You click in and it opens the image just fine, but there is never any thumbnail.
Now, I just setup Kareha on the server in image mode, and the very same thing is happening. A dotted boarderlined square with the words "No thumbnail" inside it. And clicking the words brings up the image just fine. But neither will create thumbnails.
Is there anything that could cause this very same problem with both Kareha and Wakaba? I've tried what I could and now I'm stumped.

Help please?

My host uses Apache 2.2.17, by the way.

130 Name: Anonymous : 2011-11-01 02:01 ID:Heaven [Del]

>>129
Get your host to install Imagemagick (the command line version).

131 Name: Anonymous : 2011-11-02 14:36 ID:HtbptTT5 [Del]

>>129
Kareha and Wakaba need an external program to work? Lame. Well it can't be helped.
But, if I am unable to get them to install it, is there a workaround?

132 Name: Anonymous : 2011-11-02 22:05 ID:gtsKSWi/ [Del]

A BIG Thanks :)

133 Name: Anonymous : 2011-11-03 10:24 ID:Heaven [Del]

>>131
get an imagemagick binary that will run on your server, put it on the server, and set the location in config.pl.

134 Post deleted by user.

135 Name: Anonymous : 2011-11-15 08:34 ID:wyItaZu/ [Del]

Hey guys, I'm trying to add spoiler text support to wakaba, and I'm new to perl so this is a lot harder for me than it should be. Is there any reason why adding the following to `sub do_wakabamark($;$$)' is not working?

elsif(/^\[spoiler\]/) # spoilers{
if ($lines[0]=~/^\[spoiler\](.*)/){
while !($lines[0]=~/\[\/spoiler\]$/){
push @spoiler,$1; shift @lines;
}
}
$res.="<span class='spoiler'>".(join "<br />",@spoiler)."</span>";
}

Thanks in advance!!

136 Name: Anonymous : 2011-11-15 09:04 ID:Heaven [Del]

>>135
Oh and if it matters, I'm getting a regex error in this section for some reason, and I don't understand what that has to do with my changes:

# do ^H
if($]>5.007)
{
my $regexp;
$regexp=qr/(?:&#?[0-9a-zA-Z]+;|[^&<>])(?<!\^H)(??{$regexp})?\^H/;
$line=~s{($regexp)}{"<del>".(substr $1,0,(length $1)/3)."</del>"}gex;
}

137 Post deleted by user.

138 Name: Anonymous : 2011-11-15 09:40 ID:Heaven [Del]

>>135

>elsif(/^\[spoiler\]/) # spoilers{

There's supposed to be a linebreak before the {.

139 Name: Anonymous : 2011-11-15 12:06 ID:wyItaZu/ [Del]

>>135
>>136
>>138
Made a bunch of changes and got it working for the most part, but now I can't make the spoilers work if post contains any other text before or after the tags. Here's what I have:

	elsif(/.*\[spoiler\].*/) # spoilers
{
my @spoiler;
if ($lines[0]=~/.*\[spoiler\](.*)/){
shift @lines;
while ($lines[0]!~/\[\/spoiler\]$/){
push @spoiler,$lines[0]; shift @lines;
}
shift @lines;
if ($lines[0]=~/\[\/spoiler\]$/){
$lines[0]="";
}
}
$res.="<span class='spoiler'>".(join "<br />",@spoiler)."</span>";
}

Not sure what to do next...

140 Name: Anonymous : 2011-11-16 11:32 ID:wyItaZu/ [Del]

Okay, so I moved it until after WakabaMark finishes messing with the text, and did my best to work around the strange placement of the tags it introduced. Here's my "final" solution (until I get rid of Wakabamark completely and start from scrath):

if($res=~/.*\[spoiler\].*/){
$res=~s/\[spoiler\]*/\<span class\=\'spoiler\'\>/g;
$res=~s/\[\/spoiler\]*/\<\/span\>/g;
$res=~s/\<p\>/ /g;
$res=~s/\<\/p\>/\<br \/\>\<br \/\>/g;
$res=~s/\<br \/>/ /;
$res=~s/\<\/span\>\<br \/\>\<br \/\>/\<\/span\>/g;
}

141 Name: !WAHa.06x36 : 2011-11-16 12:51 ID:Heaven [Del]

>>140

Protip: Don't do that. It seems like it's easy to write a simple text formatter using a bunch of chained regexes.

It is not.

Every single regex is going to interact with every other regex, in subtle ways you will not predict, and you will open yourself up to mis-formatting and HTML injections. Hunting these down will be painful, and once you are done (which you never really are) you will have an utterly unmaintainable monster.

If you want write a text formatter, you will need to use some kind or other of actual parser.

142 Name: Anonymous : 2011-11-16 13:52 ID:wyItaZu/ [Del]

>>141
Interesting. Well, I'm going to take your advice and keep trying to get spoilers working in a Wakabamark like fashion. Any advice?

143 Name: Anonymous : 2011-11-26 19:53 ID:wyItaZu/ (Image: 1426x801 png, 74 kb) [Del]

src/1322366004035.png: 1426x801, 74 kb

Anyone know why both Wakaba and Kareha's generated HTML looks like this? If it matters, it happens under both nginx and lighttpd.

144 Name: Anonymous : 2011-11-27 04:48 ID:Heaven [Del]

>>143
That's intentional. If you want to read the HTML code, use Firebug or similar.

145 Name: Anonymous : 2011-11-28 12:26 ID:ISHVonwt [Del]

>>144
Its intentional? Mind explaining why?

146 Name: !WAHa.06x36 : 2011-12-02 13:40 ID:Heaven [Del]

>>145

There is little need for people to read it, and adding linebreaks just makes the code and output bigger for no real benefit.

147 Name: Anonymous : 2011-12-06 08:23 ID:qHrMG7kR [Del]

I can post and it shows that in my admin management menu, but I don't see the posts in wakaba.html

How come they won't show?

148 Name: Anonymous : 2011-12-07 06:46 ID:Heaven [Del]

>>147
Tried to F5/clear browser cache? If that works, use the included example.htaccess file to avoid the problem.

149 Name: Anonymous : 2011-12-07 08:21 ID:RE6S15vZ [Del]

Is there a way for 2 people from 2 computer locations to share control over a Wakaba board? By control I mean fixing config.pl, changing link on top of the site, adding template style, etc.

150 Name: Anonymous : 2011-12-09 07:39 ID:qHrMG7kR [Del]

How do you add boards?

151 Name: Anonymous : 2011-12-09 10:06 ID:Heaven [Del]

>>149
Share the (S)FTP username/password.

>>150
You...

  1. Stop asking questions about it.
  2. Start looking for the answer on this board. It's been answered billions of times, and there's even a nice thread about it in the thread list.

152 Name: Anonymous : 2011-12-13 11:06 ID:RE6S15vZ [Del]

I'm having minor cache problem with wakaba: new posts won't appear unless the page is refreshed, happened in both Firefox and Chrome. Is there a way to fix this?

153 Name: Anonymous : 2011-12-13 23:55 ID:Heaven [Del]

154 Name: Anonymous : 2011-12-17 03:50 ID:RE6S15vZ [Del]

How do I get rid of the /wakaba.html part from the main URL, as well as .html extension from every page?

I'd tried to use .htaccess but it doesn't fix the problem permanently: after posting, /wakaba.html returned.

155 Name: Anonymous : 2011-12-17 12:17 ID:ISHVonwt [Del]

>>154
Are you using nginx or lighttpd?

156 Name: Anonymous : 2011-12-18 04:28 ID:RE6S15vZ [Del]

>>155
Sorry I don't know, I have a friend hosted+coded the site and he's away atm. The private test board I set up is on Apache.

Last time I mention about removing /wakaba.html, he only said it can't be done even though I've seen some sites did it. So now I'm searching around. Does the methods for each differ much? It might be a good idea to document them.

157 Name: Anonymous : 2011-12-18 05:52 ID:Heaven [Del]

>>156
Set Apache's directory index to wakaba.html or change wakaba.html to index.html in the config, then either 1) add rewrite rules to redirect wakaba.html to the board's root directory or 2) modify wakaba.pl to always redirect to the board's root directory.

158 Name: Anonymous : 2011-12-21 12:43 ID:Heaven [Del]

>>100 uh what? i was using lighttpd on chansluts/male general/tranchan/chanchan/intern3ts/etc for about two years.

159 Name: Anonymous : 2012-01-19 09:16 ID:SW3IFjhd [Del]

Is there anyway to force re generation of thumbnails? My older thumbnails are sized differently than my newer ones due to a different configuration, and I was wondering what I could do to make it more uniform other than resizing them in the browser.

160 Name: !WAHa.06x36 : 2012-01-19 09:30 ID:Heaven [Del]

>>159

Nope, sorry. Unless you write your own script to do it and update the database.

161 Name: Anonymous : 2012-01-19 16:05 ID:SW3IFjhd [Del]

>>160
Might not even have to update the database now that I think about it. Aren't the file names more or less the same in the thumbs folder and the image folder? I'm guessing I can just run some sort of script that will resize the originals and add "t" to the end.

162 Name: !WAHa.06x36 : 2012-01-19 16:29 ID:Heaven [Del]

>>161

You need to update the image sizes. I think those are in the database.

163 Name: Anonymous : 2012-01-19 16:59 ID:SW3IFjhd [Del]

>>162
Would it break things if I didn't?

164 Name: Anonymous : 2012-01-20 04:45 ID:Heaven [Del]

>>163
Yes it would. Every thumbnail gets displayed with width and height attributes taken from the database.

165 Name: Anonymous : 2012-01-20 08:52 ID:SW3IFjhd [Del]

>>164
I already changed how thumbnails were displayed in futabastyle.pl. I didn't change the larger ones though, since upscaling looks ugly.

166 Name: Anonymous : 2012-01-20 11:32 ID:Heaven [Del]

>>165
Did you remove the width and height attributes? That's kind of stupid, because the page is going to bounce around like crazy while loading it, especially on slow connections.

167 Name: Anonymous : 2012-01-20 12:14 ID:Heaven [Del]

>>166

>remove

No, I just set the width of all the reply thumbnails to 127px (apparently the height is adjusted accordingly), and my plan is to have the OP thumbnails display at 250px, which kinda has to be the native res if I don't want them to look like shit.

168 Name: !WAHa.06x36 : 2012-01-20 15:07 ID:Heaven [Del]

>>167

Try posting a 1x1000 pixel image now.

169 Name: Anonymous : 2012-01-21 12:00 ID:Heaven [Del]

>>168
That -would- be annoying. Well, either way thumbnails are still resized with a 250px max height using imagemagick by default, so it still won't be that much of a problem

170 Name: Anonymous : 2012-01-25 15:51 ID:RE6S15vZ [Del]

Is it possible to start an online archive for Wakaba board similar to how 4chan did it?

171 Name: !WAHa.06x36 : 2012-01-26 05:55 ID:CBOpKyFl [Del]

Is anyone else having problems logging into Wakaba on Dreamhost? I noticed they seemed to have broken REMOTE_ADDR which made the login not work at all for me.

Anyone else?

172 Post deleted by user.

173 Name: Anonymous : 2012-01-27 08:27 ID:Heaven [Del]

>>171
Works fine for me. Sounds like that is a server-specific issue.

174 Name: Anonymous : 2012-01-30 00:35 ID:Heaven [Del]

>>170
I don't understand the question.

175 Name: Anonymous : 2012-01-30 18:15 ID:Heaven [Del]

>>168
>>169
Starting to see what you meant. It does look kinda wierd. Guess I'd be better off resizing dynamically in javascript.

176 Name: Mr. Manager!!wIZhSe8U : 2012-02-02 20:29 ID:SW3IFjhd [Del]

>>135-141
So I FINALLY got spoilers working properly. I don't remember who told me, but the only way to get this to work without completely rewriting wakabamark was to hold off on the spoiler function until AFTER all wakabamark related things were completed. Anyways, I went ahead and put my code right after:

    # restore >>1 references hidden in code blocks
$comment=~s/&gtgt;/&gt; &gt;/g;

...which was on line 846 in my version of wakaba.pl. Next is the actual spoiler code:

    # new spoiler code (can't put it in 'do_wakabamark' because of 'do_spans' messing with the order of tags
if($comment=~/.*\[spoiler\].*/){
$comment=~s/\[spoiler\]*/\<span class\=\'spoiler\'\>/g;
$comment=~s/\[\/spoiler\]*/\<\/span\>/g;
$comment=~s/\<span class\=\'spoiler\'\>\<br \/\>/\<span class\=\'spoiler\'\>/g;
$comment=~s/\<\/span\>\<br \/\>/\<\/span\>/g;
}

Hopefully this helped -someone- out.

177 Name: Anonymous : 2012-02-06 16:31 ID:lj6scaAo [Del]

does anyone know why my kareha isnt generating an rss and backlog? the files are there, theyre just blank. my kareha is installed in imageboard mode if it makes any diff

178 Name: Anonymous : 2012-02-06 16:48 ID:lj6scaAo [Del]

nevermind i just copied the templates from the non imageboard file

179 Name: Anonymous : 2012-02-06 20:10 ID:naZJxTsv [Del]

Is there any way make individual posts display SJIS art properly in Wakaba like they Kareha does? Or is this something I'll have to add in myself.

180 Name: Anonymous : 2012-02-07 06:39 ID:Heaven [Del]

>>179
There's no built-in way to do that, but you achieve it with a few quick additions to the templates.

Find something like this in the templates (it should occur twice, IIRC):

<blockquote>
<var $comment>

Replace it with this:

<blockquote<if $email=~/^aa$/i> class="aa"</if>>
<var $comment>

Then add this to either the global stylesheet in the header template, or to each individual stylesheet:

.aa { font-family: 'MS PGothic', MS Pゴシック, IPAMonaPGothic, Mona; }

Finally, to post with SJIS art, just enter "aa" in the email field. Note that I haven't tested this.

181 Name: Anonymous : 2012-02-07 10:39 ID:naZJxTsv [Del]

Speaking of CSS, was there any significance to .reply blockquote, blockquote :last-child { margin-bottom: 0em } in futaba_style.pl? Most seem to consider the way it looks odd, and both 4chan and 2chan are rendered the way Wakaba would be without it.

182 Name: !WAHa.06x36 : 2012-02-07 12:01 ID:Heaven [Del]

>>181

Probably something about emulating the exact look at Futaba at the time it was written.

183 Name: Anonymous : 2012-02-07 17:46 ID:Heaven [Del]

>>179
>>180
Actually, on second thought, this won't work. /^aa$/i should be /^mailto:aa$/i.

184 Name: Anonymous : 2012-02-07 18:17 ID:naZJxTsv [Del]

>>183
It works you do /aa$/i as well. I didn't think to add mailto:.

185 Name: Anonymous : 2012-03-09 14:57 ID:hnv8rjpv [Del]

Im running apache2 on ubuntu, and I am not able to access .pl files from my web browser for some reason I get 403 errors every time. Its my own server, what have i messed up?
I did configure it for .pl and .cgi files in apache2.conf

186 Name: Anonymous : 2012-03-09 15:01 ID:Heaven [Del]

>>185

Ask on an Ubuntu forum. And when you do, actually tell them what you did. People can't read your mind over the internet.

187 Name: Anonymous : 2012-04-05 10:20 ID:2JwCM/BO [Del]

After I was making changes to config.pl in Wakaba 3.0.8 and uploading the revisions, I noticed that I can't get into the management panel without getting a software error, nor can anyone make any posts on the board without getting the same error. It says ADMIN_PASS and NUKE_PASS aren't defined. I didn't make any changes to those passwords while making my revisions and I don't know how to fix it. This is not my imageboard either. I'm just helping a friend and I don't want him to know.

188 Name: Anonymous : 2012-04-11 09:53 ID:y5JfN9g0 [Del]

Is there a way to disable WakabaMark rendering when posting SJIS art on Wakaba 3.0.7? i.e. don't bold or italicize asterisk and underscore pairs.

189 Name: v : 2012-04-24 12:32 ID:i8arfiRh [Del]

Quick question:

Is there a way to get the management panel to link to actual posts or show its thread? Currently it shows post numbers, name, subject, comment, IP, etc.

190 Name: Anonymous : 2012-04-24 20:36 ID:Heaven [Del]

>>189
Yes, it's just a quick edit to the templates.

191 Name: Anonymous : 2012-04-26 08:33 ID:NbmNY5z7 [Del]

No ADMIN_PASS or NUKE_PASS defined in the configuration at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314.
BEGIN failed--compilation aborted at config_defaults.pl line 125.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.

Line 17 says

BEGIN { require "config_defaults.pl"; }

192 Name: Kareha_kracka : 2012-05-01 18:47 ID:JR+pL8OL [Del]

Kareha: When I move my board, including all scripts and files to another directory, nothing works right because it doesn't reflect the new path. Everything works fine in admin.pl and elsewhere if I add my /path/ to the address. I've tried rebuilding caches in admin.pl as well as deleting all of the html files and running kareha.pl in a browser to recreate them. I've tried recopying default config and all of the pl files. Is there something I am missing?

193 Name: Anonymous : 2012-05-31 09:29 ID:naZJxTsv [Del]

How would one go about disabling code formatting in Wakaba? Deleting this

	elsif(/^(?:    |\t)/) # code sections
{
my @code;
while($lines[0]=~/^(?: |\t)(.*)/) { push @code,$1; shift @lines; }
$res.="".(join "<br />",@code)."";
}

Doesn't seem to do anything but cause wakaba.pl to get stuck in and endless loop and consume 100% of my CPU.

194 Name: Anonymous : 2012-06-01 12:09 ID:Heaven [Del]

>>193
You shouldn't really touch the parser unless you know what you're doing. That being said, you can probably fix the problem if you also change while($lines[0]!~/^(?:\s*$|1\. |[\*\+\-] |&gt;| |\t)/) { push @text,shift @lines; } to while($lines[0]!~/^(?:\s*$|1\. |[\*\+\-] |&gt;)/) { push @text,shift @lines; }.

195 Name: Anonymous : 2012-06-01 15:06 ID:naZJxTsv [Del]

>>194
That seemed to do it. I can't seem to figure out why though...

196 Name: Anonymous : 2012-06-03 12:48 ID:CV0bMPVw [Del]

Running Kareha, 2ch mode. Every post (regardless of poster) got the same ID, which made me curious. When I saw the IP attached to the posts in admin.pl, it turned out that all posts were made by 127.0.0.1, somehow.

That seems pretty impossible and I have no idea what’s going wrong.

197 Name: Anonymous : 2012-06-03 13:10 ID:Heaven [Del]

>>196
are you using some sort of reverse proxy?

198 Name: Anonymous : 2012-06-03 13:55 ID:CV0bMPVw [Del]

>>197
Hm, I don’t think so.

199 Name: !WAHa.06x36 : 2012-06-04 01:53 ID:Heaven [Del]

>>196

Are you infected with some kind of PHP malware that rewrites links? Check your .htaccess files for mysterious junk.

200 Name: !WAHa.06x36 : 2012-06-04 01:55 ID:Heaven [Del]

>>194-195

Yes, the parser is a terrible regex monster, and is not really understandable by anyone, including me. Lesson learned: Don't do parsers as a series of regex transformations, this never turns out well.

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.

thanks!

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

>>202
GD, maybe?

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

>>202
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]

Hello,

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: http://chansoft.heliohost.org/grey/kareha.pl/1321138418/l50

Please help me find a fix. Thank you.

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

>>206
Have you changed your template at all?

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

>>207
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 futaba_style.pl? 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]

>>211
...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]

>>213

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]

>>214
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 wakaba.pl 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]

>>215
>>214
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]

>>213-216
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.

	while($row=get_decoded_hashref($sth))
{
if(!$$row{parent})
{
push @threads,{posts=>[@thread]};
@thread=($row); # start new thread
}
else
{
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]

>>220
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 kareha.pl/1326737060/l50 don't work. They throw 404s.

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

>>222
Kareha uses the PATH_INFO server variable which apparently doesn't work correctly in nginx (see http://www.saltwaterc.eu/how-to-fix-nginx-and-phpfastcgi-path_info-issue.html).

My suggestion would be to change PATH_INFO to QUERY_STRING and modify templates so that links become kareha.pl?/... instead of kareha.pl/....

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

>>223
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]

>>223,224
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]

>>226
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]

>>230
>>229
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
wakachan.org have arch on some boards.
iichan.hk (ex iichan.ru) 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 wakaba.pl if anyone interested.

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

>>232
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]

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

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

>>233
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)
{
$updated+=delete_post($post,$password,$fileonly,$archive);
}
    # update the cached HTML pages
build_cache() if ($updated);

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

>>235
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]

>>236
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]

>>237
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]

>>239
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]

>>240
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]

>>241
...did you try rebuilding the cache?

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

>>242
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 futaba_style.pl 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 config.pl 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]

>>244

> 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.

>245

Exactly.

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 config.pl 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]

>>248
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.

config_defaults.pl
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 config.pl (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 config_defaults.pl for after a nuke? Does it resort to needing that.

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

>>255
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:
wakaba.c3.cx/sup/kareha.pl/1111785884/
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]

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

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

>>259
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

wakaba.pl

and go to

sub get_filetypes()

and just add some more

sub get_filetypes()
my %filetypes=FILETYPES;
$filetypes(gif)=$filetypes(jpg)=$filetypes(png)=$filetypes(mp3)=$filetypes(torrent)=$filetypes(swf)=1;

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 config.pl 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]

>>264
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.

wakaba.c3.cx/sup/kareha.pl/1347420999/l50

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]

>>271
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]

>>271
>>272
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

fuckingdesired.com/a/wakaba.html

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

https://www.fuckingdesired.com/a/wakaba.pl?task=admin

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 config.pl. 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

fuckingdesired.com/am/wakaba.pl

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]

>>276

>- wakaba 3.0.9 + utorrent + futallaby-
>utorrent

What?

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]

>>278
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]

>>280
Find sub include($) in wakautils.pl, and change the whole block to something like this:

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

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

unless($nostrip)
{
$file=~s/^\s+//;
$file=~s/\s+$//;
$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]

>>283

That's how it works.

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

>>282,280
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]

>>286
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]

>>287

I am using Wakaba and I checked the config.pl again

#use constant ALLOW_UNKNOWN
#use constant MUNGE_UNKNOWN
#use constant FORBIDDEN_EXTENSIONS

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

field.

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]

Blimy

ok so where I'm testing this at is

fuckingdesired.com/test/

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 wakautils.pl 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 config.pl 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 wakaba.pl line 1613 and added this business

sub get_filetypes()
{

my %filetypes=FILETYPES;
$filetypes{gif}=$filetypes{jpg}=$filetypes{png}=$filetypes{rtf}=$filetypes{doc}=$filetypes{docx}=$filetypes{txt}=$filetypes{odt}=$filetypes{odf}=1;
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 config.pl? 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

fuckingdesired.com/test/

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

>>292

>utorrent

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

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

>>285,280,282
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]

>>294
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);.

>>295
You'd probably be better off asking your question here: http://www.wrongplanet.net/

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

>>296

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 freelancer.com 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]

>>296
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]

>>298
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]

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

301 Name: Anonymous : 2012-10-20 09:18 ID:naZJxTsv [Del]

>>299,300
Thanks. I'll see if it works sometime today. You don't think it could cause performance problems, do you?

302 Name: Anonymous : 2012-10-20 10:40 ID:Heaven [Del]

>>301
The solution involving compile_template could, yes.

303 Name: Anonymous : 2012-10-20 17:38 ID:Id6XIi7o [Del]

HTML5 when?

304 Name: Mr. Manager!!wIZhSe8U : 2012-10-20 19:22 ID:naZJxTsv [Del]

>>303
I don't think WAHa really cares about updating the template when it works just fine by default. If you really care that much (you shouldn't unless you can do something about it yourself), there are a few forks, including my own that output near 100% valid HTML5, and do a few other things Wakaba doesn't my default.

305 Name: Anonymous : 2012-10-20 23:51 ID:8Ba+rDOd [Del]

>>304
So where's the link to your fork?

306 Name: Mr. Manager!!wIZhSe8U : 2012-10-21 00:23 ID:Heaven [Del]

>>305
I'm too embarrassed. Seriously though, if don't know how to do it yourself, you don't need to do it.

307 Name: Anonymous : 2012-10-21 01:48 ID:8Ba+rDOd [Del]

Well if you're too embarrassed, shizzle.
Just wanted to check out what you did?
If you could link to a site that'd be cool.

308 Name: JapanFreak : 2012-10-21 15:16 ID:gsOQxG10 [Del]

is there a video tutorial? i cant get this woring
when i try to edit config.pl i cant find the lines that are mentiond in the tutorial/documentation

309 Name: Anonymous : 2012-10-21 21:50 ID:Heaven [Del]

Mr. Manager is very likely one of the two forks I've seen on GitHub. Either frankusrs or dequis. I may be wrong and there may be more than just these two out there. Unfortunately, I can't use either of the ones I listed because of the level of customization of my own script. There are features from frankusrs that I'd love to implement (like the report function), but there's no way to do it at my level of programming.

310 Name: Anonymous : 2012-10-22 07:34 ID:8Ba+rDOd [Del]

I don't think there's a video tutorial for any of the imageboard scripts.
Kinda lame but that's how it is I guess.

311 Name: Anonymous : 2012-10-22 07:38 ID:8Ba+rDOd [Del]

>309

So what I'm getting from that is that implementing the addition of the forks is something rather hard to do and even much harder for a noob like me?
Doesn't seem like something I'd like to atemot.
But it doesn't mean that you can't pay a programmer to just implement it for you and then copy it across all boards.
I don't know, just an idea.

312 Name: JapanFreak : 2012-10-22 09:13 ID:lotQK0WK [Del]

ok then a good stet by step tutorial on how to install kereha?

313 Name: Mr. Manager!!wIZhSe8U : 2012-10-22 09:35 ID:naZJxTsv [Del]

>>312

  1. Download Kareha
  2. Put it in the directory you want
  3. Fill out the config
  4. Set some reasonable permissions
  5. Enjoy

That's all you should have to do on a common setup.

314 Name: JapanFreak : 2012-10-22 09:45 ID:lotQK0WK [Del]

on the documentation page it shows that i have lots of options to change in the config but my config shows like this
should i replace with the configs on the documentation page?

MY CONFIG PAGE

print <<END
Content-Type: text/html

<html>
<head><title>Unconfigured board</title></head>
<body>

<h1>This board has not been configured yet.</h1>
<h3>Things you need to do to get the board running:</h3>

<ul>
<li>Choose what kind of board this should be, and copy the files out of the corresponding
<code>mode_*</code> directory into the board directory.</li>
<li>Edit <code>config.pl</code> to suit your needs - remember to uncomment the lines
you change.</li>
<li>Access <code>kareha.pl</code> again (or just reload this page).</li>
</ul>
</body>

</html>
END
;
exit 0;

1;

315 Name: Mr. Manager!!wIZhSe8U : 2012-10-22 10:21 ID:naZJxTsv [Del]

>>314
I'm not sure how you managed to fuck it up so badly, but all you have to do is follow my instructions exactly, and it will work. You only have to change the first two options too. Change ADMIN_PASS and SECRET, and things will work perfectly without anymore work on your part. Copy the files, change those two constants, set your permissions, and enjoy. There's not much more I can do to clarify. I've never used Kareha before, and I just did it all in under 2 minutes.

http://warehouse.glauchan.org/kareha/

316 Name: JapanFreak : 2012-10-22 11:48 ID:lotQK0WK [Del]

the kareha i downloaded was like that form the beginning ... i still cant get it to work... anyways thx for your help

317 Name: Mr. Manager!!wIZhSe8U : 2012-10-22 12:10 ID:Heaven [Del]

318 Name: Anonymous : 2012-10-22 12:44 ID:Heaven [Del]

>>314,316
Read the instructions in that config. You're supposed to copy the files from one of the mode_* folders, then edit the config. That is also explained in the documentation.

319 Name: JapanFreak : 2012-10-23 03:40 ID:UtdR6PrG [Del]

im making progresses now i get this error
No ADMIN_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 133.
Compilation failed in require at /home/www/kareha.atwebpages.com/kareha.pl line 13.
BEGIN failed--compilation aborted at /home/www/kareha.atwebpages.com/kareha.pl line 13.
but i changed the config.pl i put a password... do i nned to change something in the config_defaults.pl as well?

320 Name: Mr. Manager!!wIZhSe8U : 2012-10-23 07:49 ID:naZJxTsv [Del]

>>319

>do i nned to change something in the config_defaults.pl as well?

I suggest looking at config.pl VERY carefully until you figure out what you did wrong. This is an incredibly straightforward process.

321 Name: JapanFreak : 2012-10-23 10:12 ID:UtdR6PrG [Del]

Thank You very very much >>320 and>>318 i finally made this work once again thanks

322 Name: Anonymous : 2012-10-23 15:00 ID:naZJxTsv [Del]

>>299
Wow, it looks like this actually works. Thanks!

323 Name: Anonymous : 2012-10-29 18:11 ID:51JpZt3m [Del]

Any reason why Wakaba and Kareha don't wrap long lines with no whitespace? k

324 Name: Anonymous : 2012-10-29 22:04 ID:1ZvXfsqd [Del]

>>323
I think this is sensible behaviour. The alternative is 4chan-style mangling of people's comments. Or was that box model hyphenation thing finally implemented?

325 Name: Anonymous : 2012-10-30 10:29 ID:Heaven [Del]

>>324
4chan adds line breaks every 100 characters, and Tinyboard uses CSS to wrap text.

Is there any reason why either of these is a bad idea? I'd like to avoid horizontal scrollbars if possible. They're very... tacky.

326 Name: Anonymous : 2012-10-30 17:24 ID:XkQgq4xk [Del]

Hello, I just installed Kareha. Both rss and backlog pages are missing. Backlog page has header and footer while rss is completely empty. I've checked source but it seems these pages should just work, I see no onther indications of misconfiguration. Thread list works in admin panel. Do you have any clues what might be happening? Can that possibly be related to mode_image I am using?

And as for nginx configuration, it works for me with two extra lines:

fastcgi_split_path_info ^(.+\.pl)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;

Also, wakabamark loses empty lines, is this intended?

327 Name: Anonymous : 2012-10-30 20:17 ID:XkQgq4xk [Del]

On my kareha installation formatting doesn't work with half of the russian cyrillic symbols:
*ё*
*р*
*с*
*т*
*у*
*ф*
*х*
*ц*
*ч*
*ш*
*щ*
*ъ*
*ы*
*ь*
*э*
*ю*
Is this related to my perl installation, or something else server-side or is it kareha's default and localization should be done for them to work? If so, is there some sort of documentation displaying this process?

328 Name: Anonymous : 2012-11-01 19:46 ID:Heaven [Del]

>>325
Cutting URLs up so they no longer work is one of the biggest problems.

Text is already wrapped with the standard box model rules. If it's one long word, there's not a lot that can be done. I'm guessing Tinyboard uses the hyphenation/word wrapping stuff implemented in CSS3, so you could probably implement it yourself. div.reply { word-wrap: break-word } or something like that.

329 Post deleted by user.

330 Name: Anonymous : 2012-11-02 07:48 ID:naZJxTsv [Del]

>>328
Sadly this doesn't work perfectly. I can't seem to get the posts to flow "properly" without using display:table, and word-wrap doesn't work with that property.I wonder what I'm missing...

331 Name: Anonymous : 2012-11-05 08:20 ID:Heaven [Del]

You might not be able to use word-wrap with tables. I use word-wrap on intern3ts/chansluts/etc, but I converted to divs a long time ago.

332 Name: Anonymous : 2012-11-05 09:25 ID:naZJxTsv [Del]

>>331
So have I. I'm not using tables, I'm using a CSS property (display:table) to make divs behave like tables. I'd use display:inline-block, but that seems to cause other flow issues, especially if I want to keep the >>'s next to replies.

Its not the end of the world though. I'll just concatenate hyperlinks and add breaks to plain text. Its the best I'm capable of doing. If anyone has any better ideas, I'm all ears though.

333 Name: Anonymous : 2012-11-05 10:17 ID:Heaven [Del]

>>332
I haven't had much of a chance to test this, but I think I figured out how to make this work. I'm not sure just what I did that made it work, but after rearranging CSS properties in every configuration imaginable, I managed to get things to flow properly without needing to pragmatically add line breaks and use display:table.

Case closed, I guess.

334 Name: Anonymous : 2012-11-06 10:00 ID:0ScSplEK [Del]

Oh, yes, you should be using table-cell, if you want divs to be beside each other.

335 Name: Anonymous : 2012-11-06 16:35 ID:Heaven [Del]

>>334
That actually messed up some other formatting inside of my reply div, so I just decided to get rid of everything table related in my CSS.

336 Name: Mr. Manager!!wIZhSe8U : 2012-11-27 19:15 ID:naZJxTsv [Del]

This is really weird, but I'm having an issue with a user's tripcode appearing incorrectly on my board, while it works perfectly in Tinyboard and on 4chan. I don't recall ever messing with tripcode generation, so I'm not sure what the problem could be. Have there been any similar problems in the past?

337 Name: Anonymous : 2012-11-28 03:06 ID:Heaven [Del]

>>336
Different board software has minor differences in the ways tripcodes are implemented. He probably has a weird character in his tripcode which causes Wakaba to interpret it "incorrectly".

This might be of help: http://hotaru.thinkindifferent.net/trip.html

338 Name: Mr. Manager!!wIZhSe8U : 2012-11-28 11:35 ID:naZJxTsv [Del]

>>337
Yeah... I had just hoped it would be seemless between 4chan and Wakaba. Anyways, I just ended up throwing in some code that replaces the trip with the proper one. Also, is hotaru still around?

339 Name: DPERNY!!eMF0XBPO : 2012-12-29 22:33 ID:nyUOP6y9 [Del]

I've got a Kareha board running on a VPS, Ubuntu 12.04.whateverisnew. Posting is working but replies aren't. For some reason, every directory that is /kareha/numbers/ is 403 Forbidden. You can still do replies if you navigate to /res/numbers.html, but I can't expect my users to do this. I've already chmodded EVERYTHING. Apache Error logs give this line:

Options ExecCGI is off in this directory: /var/www/kareha.pl

But I have in my apache2.conf:

<Directory /var/www/kareha.pl>

 Options +ExecCGI
Order allow,deny
Allow from all

</Directory>

I'm at my wit's end. I hate to ask for help, but somebody might know something that I don't.

340 Name: Anonymous : 2012-12-30 14:46 ID:Heaven [Del]

>>339
Your problem is that kareha.pl is not a directory, it is a file.

341 Name: dperny!!eMF0XBPO : 2012-12-30 21:28 ID:3xF3HXcP [Del]

I have

 <Files /var/www/kareha.pl>
Options +ExecCGI
order allow,deny
allow from all
</Files>

in the config too, and that still doesn't fix the problem.

342 Name: hotaru!hoTarufiRE : 2013-01-02 15:10 ID:Heaven [Del]

> Also, is hotaru still around?

yes, i am still around.

343 Name: Anonymous : 2013-01-02 16:23 ID:Heaven [Del]

>>341
Perhaps use something like this instead, without the <Files> block:

Options +ExecCGI
AddHandler cgi-script .pl

344 Name: Anonymous : 2013-01-23 08:56 ID:gGuAgg98 [Del]

Anyone know how to make session cookies or non-persistent cookies in Wakaba?

345 Name: Anonymous : 2013-01-24 10:50 ID:Heaven [Del]

>>344 here,
Already figured it out on my own. I just ended up adding a few lines to the make_cookies function.

346 Name: Anonymous : 2013-02-07 12:50 ID:5YY+Crgs [Del]

Has anybody written a Futaba-style Catalog mode for Wakaba?

I'm considering writing one myself, but my Perl isn't very good...

347 Name: Mr. Manager!!wIZhSe8U : 2013-02-08 19:04 ID:OFj2WUZi [Del]

>>346
I've written something a little more similar to 4chan's, but I think its close enough. You can copy the relevant code from https://github.com/marlencrabapple/Glaukaba, but I'm not sure if you can just drop it in and have it work. Also, the entire script is pretty much a mess since I started messing with this thing a whole year before I knew what I was doing.

The guys at bunbunmaru (http://bunbunmaru.com/wakaba/general/wakaba.pl?task=cata) made one that may be a little more your speed, and if they're willing to share the code then you should be set.

If neither of those work for you, you can try bothering the guy from http://sovietrussia.org/ since I think he also had a catalog mode in his Wakaba installation.

348 Name: Anonymous : 2013-02-12 22:30 ID:Heaven [Del]

>>347
I like how you copied my broken signal handling.

You should probably use Plack/PSGI for FastCGI support. Anything else is just ridiculous, and Wakaba seems to leak memory if you run it in a persistent environment without restarting the script regularly. Plack handles that for you.

349 Name: Mr. Manager!!wIZhSe8U : 2013-03-02 13:48 ID:Heaven [Del]

>>348
I've actually had good luck with it so far. I'm pretty sure its the DB cache that takes up the memory in the first place, and apparently it'll shrink back down given enough time with no DB hits. I was actually looking into a few FastCGI frameworks right before you changed the way you did it, but I thought I might have better luck learning a little more about it before I just switched over. I was hoping that I could eventually "correct" your signal handling too, but I haven't had any issues with random crashes yet, so it hasn't been to pertinent of an issue for me.

350 Name: Anonymous : 2013-03-08 09:18 ID:7uw4gO2Z [Del]

Here this is a pretty simple question but it's been pissing me off no end, I'm trying to get a title image to display on my imageboard, the image is uploaded to the /wakaba directory and I've pointed at it in config.pl like so

use constant TITLEIMG => 'header.jpg';

The pic being named header.jpg, obviously. I've googled this many times and this thread just keeps coming up, nothing in documentation anywhere else. Is therre a pixel or size limit on the pic that's not mentioned? Cheers.

351 Name: Anonymous : 2013-03-11 13:42 ID:dH/Uh2WY [Del]

>>350

Nevermind eh got it wakaba doesn't updayte after I reupload the edited config file straight away, only after a post for some reason.

352 Name: Anonymous : 2013-03-13 20:24 ID:Heaven [Del]

>>351
It uses a static cache. You need to rebuild them manually for everything to update.

353 Name: Anonymous : 2013-03-17 14:52 ID:FVqzIfPc [Del]

Couldn't write to file "index.html" at wakautils.pl line 1013.

Help?

354 Name: Anonymous : 2013-03-17 14:58 ID:FVqzIfPc [Del]

>>353
Just needed to set perms. to 777

355 Name: Anonymous : 2013-03-19 11:28 ID:ivlqFrOT [Del]

No verification code on record - it probably timed out.

But there is no captcha image coming up.

356 Name: Anonymous : 2013-03-19 14:33 ID:ivlqFrOT [Del]

>>355
Nevermind, fixed by messing with perms.

But now thumbnails aren't showing, has anyone had any luck with ImageMagick on nearlyfreespeech?

357 Name: Anonymous : 2013-03-19 14:44 ID:Heaven (Image: 586x182 png, 6 kb) [Del]

src/1363729495799.png: 586x182, 6 kb

>>356

Picture for clarity.

358 Name: Anonymous : 2013-03-19 16:52 ID:Heaven [Del]

>>356
>>357
Doesn't look like it's a thumbnail creation issue, rather another permission issue.

359 Name: Anonymous : 2013-03-19 18:38 ID:Heaven [Del]

>>358
I've tried messing with permissions to no avail. There's no "thmubs" directory being made (hence the picture).

360 Name: Anonymous : 2013-03-19 20:12 ID:Heaven [Del]

>>359
Make the directory yourself. I think I had a similar problem.

361 Name: Anonymous : 2013-03-20 10:42 ID:ivlqFrOT [Del]

Stupid question, but where is the admin panel?

362 Name: Anonymus : 2013-03-20 12:46 ID:lDd0q0/g [Del]

How do i get it installed in my HTML document at the first place??

363 Name: Anonymous : 2013-03-20 22:12 ID:Heaven [Del]

364 Name: Anonymous : 2013-03-21 14:06 ID:Heaven [Del]

How to enable oekaki?

365 Name: Anonymous : 2013-03-23 01:52 ID:AETOpidL (Image: 1280x1024 jpg, 189 kb) [Del]

src/1364028768417.jpg: 1280x1024, 189 kb

When I access the pl file through my web browser, am I supposed to see th html code or the actual page?

366 Name: Anonymous : 2013-03-23 11:18 ID:Heaven [Del]

>>365
First, are you even running a http server? Second, you need Perl installed. Third, you need to configure your http server to pass requests for Perl files to your Perl interpreter.

367 Name: Anonymous : 2013-03-23 11:51 ID:AIXQUUGK [Del]

>>365 goldmine

368 Post deleted by moderator.

369 Post deleted by moderator.

370 Post deleted by moderator.

371 Post deleted by moderator.

372 Post deleted by moderator.

373 Post deleted by moderator.

374 Name: Anonymous : 2013-03-27 13:46 ID:Heaven [Del]

Looks like >>369 broke the board... I'm surprised that hasn't been fixed yet.

375 Post deleted by moderator.

376 Post deleted by moderator.

377 Name: Anonymous : 2013-04-09 20:27 ID:Heaven [Del]

Just wanted to thank you for keeping your software up-to-date and helping your users out, WAHA. Kareha is great. Thanks a bunch!

378 Name: Anonymous : 2013-04-10 11:17 ID:Heaven [Del]

Running Kareha in Futaba mode. When I delete a post, it still appears in the admin.pl menu as a blank post, i.e. Posted by: 46.105.XXX.XXX - Password: XXXXYYYY - delete post - delete file - ban IP with no real content beneath it (blank). Is this normal behaviour?

379 Name: Anonymous : 2013-04-10 11:47 ID:Heaven (Image: 786x685 png, 135 kb) [Del]

src/1365619637082.png: 786x685, 135 kb

>>378
Didn't think to include an image. This board looks like it's in 2ch mode but it allows image posting. It's confusing me!

380 Name: Anonymous : 2013-04-21 14:27 ID:OFj2WUZi [Del]

This is probably a stupid question, but just how much would a bunch of <if $admin> 's in the regular template slow regular posting down? Obviously, they won't work unless I'm building the pages dynamically for admin users, and of course I already have this all worked out using an almost entirely copypastad version of the normal template for this, but its become a bitch to maintain, and I'd just like to know how bad of an idea combining the two together would be.

381 Name: Anonymous : 2013-04-21 14:29 ID:Heaven [Del]

>>380
Alternatively, can anyone recommend a good way to benchmark wakaba myself?

382 Name: Anonymous : 2013-04-21 16:57 ID:Heaven [Del]

>>380
<if $admin> in the templates gets transformed to if ($admin) { ... } during compilation, so it won't run any slower than a regular if statement in Perl.

383 Name: Anonymous : 2013-04-21 22:59 ID:Heaven [Del]

>>382
I'm just wondering how much an extra 10 or so of those would effect compilation time.

384 Name: Anonymous : 2013-04-22 15:53 ID:Heaven [Del]

>>383

Benchmark: timing 10000 iterations of fifteen_ifs, five_ifs...
fifteen_ifs: 3 wallclock secs ( 3.13 usr + 0.00 sys = 3.13 CPU) @ 3194.89/s (n=10000)
five_ifs: 2 wallclock secs ( 1.68 usr + 0.00 sys = 1.68 CPU) @ 5952.38/s (n=10000)

Code: http://pastie.org/pastes/7700042/text?key=ofajzssrzghdz6mobzwyg

In other words, the difference is totally insignificant.

385 Name: Anonymous : 2013-05-02 13:49 ID:I9C3RNUF [Del]

please remove my ip from ban-list
when i go to http://wakaba.c3.cx/
i get http 403

386 Name: Anonymous : 2013-05-25 17:24 ID:Heaven [Del]

In Kareha, is there a simple way to get, say, header.html to automatically include another HTML document? So you could have:

<div id="rules">Some rules here.</div>
<hr />
<div id="navigation">{include nav.html}</div>

Or something. I use the rules.html for my board navigation, and mid.html for announcements. This would make things a mighty sight easier!

387 Name: Anonymous : 2013-05-28 08:50 ID:OFj2WUZi [Del]

>>386
If you're doing it inside of the header and you don't want to mess around to much with the rest of the template, just do something like this

<var include("include/nav.html")>

That should work in Kareha.

388 Name: Anonymous : 2013-05-31 07:54 ID:Heaven [Del]

I heard that WAHa recommends Kareha over Wakaba for imageboards. Is this true? I use Kareha and was thinking of setting up an imageboard, but I'm not sure if I should choose Wakaba or Kareha. The speed increase seems nice, but if the author recommends against it, I'm more than happy to trust his judgement.

389 Name: Anonymous : 2013-05-31 08:31 ID:Heaven [Del]

>>388
This is just a guess, but I think he recommends Kareha because most will never need the added speed that Wakaba and a database can bring. That, and 2006-2010 4chan kinda tarnished the imageboard collective... image, so the farther away you get from that paradigm the better, I guess. There's also the fact that Kareha is newer and has more functionality in some ways.

Back when I had to make the choice in 2011, I went with Wakaba, and its worked out for me so far. I've also managed to tack on ~2000 lines of code for some more modern functionality since then too, which is something that would've been a bit more difficult with Kareha, I imagine.

390 Name: Anonymous : 2013-06-03 07:49 ID:Heaven (Image: 714x1000 jpg, 373 kb) [Del]

src/1370270980419.jpg: 714x1000, 373 kb

>>379
From what I've gathered (reminding everyone that I know absolutely nothing about programming), the post remains in log.txt which is why its IP address can still be viewed. It also appears that, while the post is removed from the HTML document, the postcount number is not lowered.

Make a thread, post two replies. Delete the last reply. Not only will that deleted post still be in log.txt, but the thread's postcount remains at 3. Because of this, you can view the post number and IP in admin.pl, but the post appears to be completely empty.

I'm assuming this behaviour is for one reason only: so that the post numbers contiue to rise up, just like they do in 2ch mode. If we delete that third post then add a reply, the new reply is post #4, not #3. The only difference is that, in 2ch mode, the post will still be visible, but its contents are replaced with 'Post deleted by user.'.

So, AFAIK, it's not a bug, but simply a way of keeping track of the amount of replies the thread has received; it only appears blank because deleted posts aren't visible in Futaba mode, but they are in 2ch mode.

391 Name: Anonymous : 2013-06-03 18:10 ID:Heaven [Del]

>>386
>>387
Note that any template code inside nav.html will not be evaluated when doing it this way. If you need this, I believe I posted a hack for it further up in the thread.

>>388
I've heard the same thing, but I don't think it's true. I'd argue that Wakaba is the better choice: it has way better mod tools than Kareha has, SQL makes life easier in the long run and I've encountered weird bugs in Kareha which have resulted in things like cached indexes erroneously displaying single threads and large amounts of posts being wiped.

392 Name: Anonymous : 2013-06-11 10:24 ID:MJr6NpE7 [Del]

http://wakaba.c3.cx/sup/css/pseud0ch.css

> .replytext em { font-style: normal; }

Why is this rule here? It stops emphasized text from showing as italic in Pseud0ch.

393 Name: !WAHa.06x36 : 2013-06-11 10:41 ID:Heaven [Del]

>>392

You're expecting anyone to remember, after all these years?

394 Name: Anonymous : 2013-06-11 18:22 ID:Heaven [Del]

>>393
I'm surprised I even noticed. It seems all the boards I visit must have fixed it.

395 Name: Tokiko : 2013-06-20 16:27 ID:bSTS9uTn [Del]

How do I get a sage checkbox?

396 Name: Tokiko : 2013-06-20 16:38 ID:bSTS9uTn [Del]

I got it!

<if $thread>No bump <input type="checkbox" name="field_b" value="sage"/></if>

397 Post deleted by user.

398 Name: Anonymous : 2013-07-21 18:41 ID:r5mDQMLQ [Del]

Is there a postcount variable?

I'm making a masterlist of threads and wanted to show the postcount in a table. I've found $curr_replies in wakaba.pl but didn't know how to specify which thread with it.

399 Name: Anonymous : 2013-07-21 20:20 ID:OFj2WUZi [Del]

>>398
Just do "SELECT COUNT(*) FROM ".SQL_TABLE.";"

400 Name: Anonymous : 2013-07-21 22:48 ID:67T7uUcY [Del]

>>399
But where would I specify the thread number?

401 Name: Anonymous : 2013-07-21 23:26 ID:Heaven [Del]

>>400
Oh, I thought you wanted ALL of the posts. Try "SELECT COUNT(*) FROM ".SQL_TABLE." WHERE parent=?;" and just put the thread number in the $sth->execute() part.

402 Name: Anonymous : 2013-07-22 15:28 ID:Heaven [Del]

>>401
Sorry, now I'm really confused. I just want to count the number of comments (from the SQL table "comments") for each parent thread.

403 Name: Anonymous : 2013-07-22 19:01 ID:OFj2WUZi [Del]

>>402
That's exactly what that does. Though if you're doing it all at once, you should probably do what I said in >>399 and calculate them yourself.

404 Name: Anonymous : 2013-07-22 22:57 ID:Heaven [Del]

>>403
Thanks for the additional clarification. I ended up settling for a basic code that needs to be manually adjusted for each new parent thread, but just in case anyone else is interested:

<?php
$con=mysqli_connect("localhost","USER","PASSWORD","TABLENAME");
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result1=mysqli_query($con, "SELECT count(*) as total from comments where parent='1'");
$data1=mysqli_fetch_assoc($result1);

?>

<table>
<tr>
<td>001</td>
<td>
<?php echo $data1['total']; ?>
</td>
</tr>
</table>

405 Name: Anonymous : 2013-07-22 23:23 ID:Heaven [Del]

>>404
That's not really ideal for multiple reasons. First, why are you using PHP when Wakaba is written in Perl? Second, depending on how many threads you have you could be hitting the database hundreds of times for each user that views the page.

On a side note, thanks to your code, I remembered that my board's thread list does what you wanted, so I thought it might be a good idea to share my code with you, but as I read through I realized I made the same exact mistake as you. Wakaba has a sub routine called count_posts already built in, and I was calling it for each thread

406 Name: Anonymous : 2013-07-23 11:11 ID:Heaven [Del]

>>405

>why are you using PHP when Wakaba is written in Perl?

Because I know more of PHP. My knowledge of Perl is nonexistent; I've never worked with it before.

>you could be hitting the database hundreds of times for each user that views the page

Fair enough. If this were for a popular imageboard, I wouldn't recommend this method. But in a situation where you only have five posters, this manual method works well. Plus, the table from >>404 is a simplified version of the real masterlist table, which contains multiple elements ('type' and 'description') that can't be automatically generated (as they don't exist outside of the masterlist) so I can't just cycle through the parent threads.

>share my code

Oh, I'd definitely be interested in seeing it if you do fix it. Or just the unfixed code. Curious how other people (who know Perl) tackled this problem.

407 Name: Anonymous : 2013-07-23 11:38 ID:Heaven [Del]

>>406
To be completely honest, I didn't know Perl or PHP when I started messing around with Wakaba, but I've learned a ton because of the time I spent tinkering.

Anyways, it turns out posting my code isn't as simple as copying in pasting the relevant lines, since I don't know just how much I've changed over the last year. I can try implementing it in a plain version of Wakaba sometime tonight, but until then, you can try to track down what you need in my git https://github.com/marlencrabapple/Glaukaba

408 Name: Anonymous : 2013-07-23 11:49 ID:Heaven [Del]

>>407
I see. Alright, thanks for the link, I'll poke around once I'm done patching up the rest! And wow, a Summer Glau chan. Good taste.

409 Name: Anonymous : 2013-08-01 13:32 ID:Y7PnBwvC [Del]

I have the same problem as >>339
I've tried with +ExecCGI and allow from all in <Directory > and <Files > with /var/www/ /var/www/kareha.pl /var/www/kareaha.pl/*

The error I get in error.log is:
Options ExecCGI is off in this directory: /var/www/kareha.pl

Thanks in advance.

410 Name: Anonymous : 2013-08-01 13:59 ID:Heaven [Del]

>>409

You'll probably have better luck asking at some Apache forum.

411 Name: Anonymous : 2013-08-03 12:03 ID:ZBKA9Csm [Del]

I can't seem to get the quote feature to work. I have to type the ">>40" or whatever the number would be. When I click on the post number, doesn't put the quote in the comment box. I am using Wakaba. Here is the link to my imageboard. http://pyroneous.com/wakaba

412 Name: Anonymous : 2013-08-03 12:25 ID:Heaven [Del]

>>411
wakaba.js is missing.

413 Name: Anonymous : 2013-08-03 13:27 ID:ZBKA9Csm [Del]

>>412 It is named wakaba3.js, should I rename it?

414 Name: Anonymous : 2013-08-03 15:52 ID:Heaven [Del]

>>413
No, just make sure its in the right folder or fix your permissions so that its readable.

415 Name: Anonymous : 2013-08-11 11:05 ID:CSTuNhUD [Del]

How should I get rid of the "Board Look" section?

416 Name: Anonymous : 2013-09-04 17:32 ID:5LrvXA7U [Del]

Is there a way to create hyperlinks with WakabaMark? I'm assuming there is with Markdown.

It's the only reason I ever use HTML formatting, and then I have to add <p> tags myself.

417 Name: Anonymous : 2013-09-04 22:29 ID:OFj2WUZi [Del]

>>416
It does it automatically to some degree.

418 Name: Anonymous : 2013-09-05 19:29 ID:Z1FYU1zP [Del]

What can I edit so that I can put a constant PHP header on index.html in Kareha?

419 Name: Anonymous : 2013-09-06 01:16 ID:CTQK2Zwo [Del]

>>417
But it would be nice to have hyperlink text, maybe something like [[http://example.com|example]].

420 Name: Anonymous : 2013-09-08 22:57 ID:AvfT+fDg [Del]

there would be no point in doing that. it decreases the security of the users and makes hiding spam or malicious urls much simpler.

421 Name: Anonymous : 2013-09-09 10:22 ID:Bs1jM0ZK [Del]

>>420
You can already do that through the HTML mode, and a lot of spam bots already do (or try to). Plus I doubt many spam bots are set up to use WakabaMark.

It's inconvenient to humans, not robots, and if a human wants to hide a malicious URL that way they already can.

422 Name: Anonymous : 2013-09-24 06:17 ID:zEBosdfL [Del]

Has anyone made a HTML5 patch/fork before I do it myself?

423 Name: Anonymous : 2013-09-24 09:06 ID:OFj2WUZi [Del]

>>422
Its as simple as changing the doctype for the most part. That said, if you're looking for 100% "valid" html5, then yes, I've done it, along with a ton of other things that might turn you off if you're looking for a barebones experience.

https://github.com/marlencrabapple/Glaukaba

Aside from an option or two missing in global_config.pl, the installation is pretty straightforward, and everything should run as expected. I just installed it myself a week or two ago and it seems to be in a pretty useable state.

424 Name: Anonymous : 2013-10-07 05:09 ID:hjhZTxbY (Image: 785x71 jpg, 18 kb) [Del]

src/1381147756336.jpg: 785x71, 18 kb

I get a software error.

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC

As far as I can tell I have installed the thing in my cpanel, so what gives?

425 Name: Anonymous : 2013-12-13 21:55 ID:Heaven [Del]

Stupid question: is there a reason why no column is set as the primary key in Wakaba? I don't know much about databases, but it seems like that most of web apps do it.

426 Post deleted by moderator.

427 Name: Anonymous : 2014-01-14 13:17 ID:K9Khr868 [Del]

Hi
i have installed kareha, but there are a few problems i am not sure how to deal with.

  • When running kareha.pl, i get an error that says

Software error: Can't locate captcha.pl in @INC (@INC contains: . /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl) at kareha.pl line 15, <FILE> line 7.
BEGIN failed--compilation aborted at kareha.pl line 15, <FILE> line 7.
I temporarily fixed this by commenting the line BEGIN { require 'captcha.pl'; }, but I'd like to fix it properly.

  • I can't seem to get capcodes to work (trips and secure trips work fine).
  • There is no delete or manage button.

Thanks for your help guise.

428 Name: Anonymous : 2014-01-19 19:36 ID:OGXnEN+6 [Del]

How stupid would it be to connect to another db for things like session management? I'm thinking that if I offload something that would be hitting the db pretty often so a separate database server (or a tiny sqlite db) it would decrease access times to my main db server without any consequences. Would there be any noticeable overhead or am I missing something really obvious?

429 Name: !WAHa.06x36 : 2014-01-20 11:23 ID:Heaven [Del]

>>428

There's no session management, nor any hits to the database at all unless someone posts?

430 Name: Anonymous : 2014-01-20 13:13 ID:Heaven [Del]

>>429
Sorry I wasn't clear. I'm testing out some stuff I wrote for prevalidating captchas (reCAPTCHA, not the built in one) so you don't have to spend forever uploading an image just to find out you messed up and need to start over. Its pretty simple stuff but of course in most cases it requires an extra db query. After looking into how flood detection and bans are handled its pretty obvious that this would't be that huge of a performance hit, since its pretty much just two extra queries in total, but I'm still curious if offloading it somewhere else (maybe even a simple text file) could improve performance.

431 Name: Anonymous : 2014-01-21 09:40 ID:+yM64RIQ [Del]

besides writing a new .css, what do i have to do to use custom board look?

432 Name: Anonymous : 2014-01-21 20:06 ID:Heaven [Del]

>>431
In terms of what you HAVE to do that's about it, but you can do a lot more if you really want to.

433 Post deleted by user.

434 Name: Anonymous : 2014-02-04 20:52 ID:Heaven [Del]

I'm using waka_utils.pl in another project of mine and I was wondering how safe the templating system is for allowing (paid) users to write their own. If I remember correctly its possible to run code in a template, so I'm kind of wary about just allowing them to access the template system. Is there a way to make it a little more restrictive or am I better off just writing something myself?

435 Name: Anonymous : 2014-02-04 21:04 ID:Heaven [Del]

>>434
Okay I just tried looking through the compile_template function myself and I think this should take care of it.

if(!$safemode) {
if($closing) {
if($name eq 'if') { $code.='}' }
elsif($name eq 'loop') { $code.='$$_=$__ov{$_} for(keys %__ov);}}' }
}
else {
if($name eq 'var') { $code.='$res.=eval{'.$args.'};' }
elsif($name eq 'const') { my $const=eval $args; $const=~s/(['\\])/\\$1/g; $code.='$res.=\''.$const.'\';' }
elsif($name eq 'if') { $code.='if(eval{'.$args.'}){' }
elsif($name eq 'loop')
{ $code.='my $__a=eval{'.$args.'};if($__a){for(@$__a){my %__v=%{$_};my %__ov;for(keys %__v){$__ov{$_}=$$_;$$_=$__v{$_};}' }
}
}
else {
if(($name eq 'var') and ($args =~ /^\$[a-zA-Z]+$/)) {
$code .= '$res .= eval{' . $args . '};'
}
}

Any obvious gaping holes?

436 Name: Anonymous : 2014-02-04 21:32 ID:Heaven [Del]

>>435
The only obvious gaping hole I can think of is that you've basically just created an overcomplicated sprintf().

437 Name: Anonymous : 2014-02-04 23:15 ID:Heaven [Del]

>>436
Most of it is part of the templating system already in waka_utils.pl.

438 Name: Anonymous : 2014-02-07 16:05 ID:Heaven [Del]

>>427
please answer

439 Name: Anonymous : 2014-02-13 22:07 ID:OGXnEN+6 [Del]

I'm trying to wrap my head around the templating system a little more, and I can't quite figure out how the variables passed to the constant value that defines the template are in the same scope as compile_template. How would one access the variables available to compile_template? Are they inside of some magical perl variable? I already checked @_ and all that's in their are the contents of the constant.

440 Name: Anonymous : 2014-02-13 22:27 ID:Heaven [Del]

>>439
Oh wow I think I got it on my own. I put die %__v->{title} inside of the my $sub = eval part and it printed out the value of $title.

441 Name: Anonymous : 2014-02-15 09:21 ID:Heaven [Del]

How big of a performance hit would it be to change the entire config system from constants to hashes? I'm trying to make it easier to manage multiple boards for less savvy users. Would something like

my $option = sub {
my ($board,$key) = @_;
return BOARDS->{$board}->{$key} || GLOBAL_OPTIONS->{$key};
};

for retrieving a config option be a huge performance hit or security risk?

442 Name: Anonymous : 2014-02-23 19:13 ID:eKdN0gt1 [Del]

So now I'm trying to change wakaba's setting so that everytime anon post something, he will be redirected to that same thread he posted on. The way user had to go back to front page after every post is annoying to me.

I found the following supposedly related line in wakaba.pl:
# forward back to the main page

make_http_forward(HTML_SELF,ALTERNATE_REDIRECT);

I have zero knowledge with Perl so I hope someone will help me here.

443 Name: Anonymous : 2014-02-23 22:03 ID:OGXnEN+6 [Del]

>>442
There's a patch that adds noko support somewhere on this board.

444 Name: Anonymous : 2014-02-23 23:42 ID:eKdN0gt1 [Del]

>>443
Oh I see, found it here
http://wakaba.c3.cx/sup/kareha.pl/1256252904/

But I have no idea how to get the patch from there.

445 Name: Anonymous : 2014-02-24 16:57 ID:OGXnEN+6 (Image: 0x0 patch, 2 kb) [Del]

>>444
Looks like it got deleted. I went ahead and wrote a new one. No idea if it works. Haven't ran it myself.

446 Name: Anonymous : 2014-02-26 03:19 ID:N3I/K07x [Del]

>>445
Okay, I added that patch but every time it gave me an internal server error.

I don't know if it's the new script's fault. After that, I tried to change simple stuffs like
BEGIN { require "strings_en.pl"; }
into
BEGIN { require "strings_eng.pl"; }

with strings_eng.pl in the root folder of course. Yet it still give me 500 error.

447 Name: Anonymous : 2014-02-27 07:25 ID:N3I/K07x [Del]

How do I remove the 'Manage' option in admin bar? The way it is now, every user can see it and I only want admin to access it.

448 Post deleted by user.

449 Name: Anonymous : 2014-02-27 10:59 ID:Heaven [Del]

>>447
Delete the link from the template in futabastyle.pl

450 Name: Anonymous : 2014-02-27 19:34 ID:N3I/K07x [Del]

>>449
Thanks, I feel like a retard now. Should have figured that out myself.

451 Name: Anonymous : 2014-03-01 02:37 ID:2TuCltKM [Del]

Hi,
I would like to add an ability to wrap text in spoiler tag just like 4chan now. I appreciate your help.

452 Post deleted by moderator.

453 Name: Anonymous : 2014-03-04 22:30 ID:hkJFbyQ2 [Del]

I need help. I enable encoding to utf-8 in the config.pl and made sure to uncomment the no encoding line at the end to write non-English words. Everything works fine at first but I cannot log on to admin panel after that. It gave me Incorrect management password despite whatever it is stated in config.pl.
In fact, if I turned off the encoding lines I could go to admin panel like nothing.

454 Name: Anonymous : 2014-03-05 05:56 ID:hkJFbyQ2 [Del]

>>453
Okay this is resolved, thanks for your help. For future reference: it appears moving the "use encoding 'utf-8'" to after the constant admin_pass will make it work.

But now there is another problem: the html files (header, rules and footer) won't show my native language whatsoever. I know I'm a noob but Isn't the use encoding line affects to all html files?

455 Name: Anonymous : 2014-03-09 18:48 ID:VpK7hCYn (Image: 1898x2024 png, 967 kb) [Del]

src/1394416122991.png: 1898x2024, 967 kb

Hello!
I'm trying to incorporate wakaba into my SMF page (php forum).
All I'm trying to figure out is how to add this
[code]<?php
//Require header.php
require('../header.php');
?>[/code]
to all of the topic .html files generated. the header.php being required is the header for my forum and is designed to be called as shown. this works in any standard php page. can this work in the perl system?
picture is of a php page fetching the forum header and footer and fetching wakaba.html in the middle. replying to topics redirects to the individual topic html.

456 Name: Anonymous : 2014-03-09 20:49 ID:VpK7hCYn [Del]

I've managed to change the generated page extensions to .php and fetch my form header, but the reply pages (ie: /res/11.php) will not load. the head will load but the body won't and the page is just left blank.
anyone have some insight for me?

457 Name: Anonymous : 2014-03-09 20:56 ID:VpK7hCYn [Del]

I should mention that my main wakaba.php page generated by the wakaba.pl file works just fine, it's just the pages that are linked via "reply"

458 Name: Anonymous : 2014-03-10 11:30 ID:8lreZ4Oy [Del]

After I tried to enter to kareha.pl it gives me:
"couldn't create child process: 720002: kareha.pl"

459 Name: Anonymous : 2014-03-10 11:43 ID:8lreZ4Oy [Del]

Wrong section, sorry

460 Name: Anonymous : 2014-04-09 23:04 ID:P8tB4yXX [Del]

heres something for anyone interested in redis/perl. i've found that if your imageboard has a lot of images, the find_md5 function gets slower and slower. i've basically loaded all of the hashes as keys in redis and use it to perform the check, its a lot faster. the key is imageboardname:hash and the values are thread,post,file

this isnt a standard patch, my kareha setup is extremely different from stock (i've split all the posting functions from the main script and run that part in memory) but its only a few changes

http://pastebin.com/9ZtN69Az

461 Name: Anonymous : 2014-04-10 04:43 ID:OGXnEN+6 [Del]

>>460
How much of an improvement would something like this bring to Wakaba? I've been thinking of throwing memcache or redis support on it and moving some of the static cache to a ramdisk for faster IO but haven't bothered because I have no idea if it would be worth it or not.

462 Name: Anonymous : 2014-04-10 09:44 ID:P8tB4yXX [Del]

>>461 i'm not familiar with wakaba but if it keeps its information in a database then there won't be much improvement. the problem with kareha was it basically looped through a giant log file every time it checked a hash.

i do keep cache files for phpbb in tmpfs, you may see some improvement. it's hard to tell though since linux caches stuff into memory anyway

463 Name: Anonymous : 2014-04-11 09:19 ID:OGXnEN+6 [Del]

>>462
Do you know if dynamically building a JSON reponse from a DB cache like redis or memcache every time a user sends a GET request would be any faster or slower than writing to JSON files on a ramdisk every time they're updated? I'm tempted to do both on a clean Wakaba installation and benchmark them, but even then I have no idea how to benchmark something like that properly.

464 Name: Anonymous : 2014-04-16 20:53 ID:P8tB4yXX [Del]

>>463 if i were to do that i'd use elasticsearch as the backend and just ditch the database. it natively outputs json from lucene indexes, supports updates etc.

http://www.elasticsearch.org/overview/elasticsearch

i've contemplated doing something like this myself

465 Name: Anonymous : 2014-04-17 06:44 ID:Ew/xd7/x [Del]

Hi all, I'm trying to install kareha on a basic plan server, which has Perl enabled. I'm used to setting up php software, but I don't code myself. I figured Perl files work in a special way, and they have to be put in a separate forlder, like cgi-bin (?) My question is : which files do I have to put there? Is it all .pl files? Then how do I access these files with a browser, since this folder is outside the main /wwww/ directory? Is there anything else I should know?

466 Name: Anonymous : 2014-04-17 13:20 ID:OGXnEN+6 [Del]

>>465
I vaguely remember the documentation explicity stating not to put your Perl files in cgi-bin.

467 Name: Anonymous : 2014-04-17 21:52 ID:OGXnEN+6 [Del]

So what's up with get_decoded_hashref()? Its used in very few places and as far as I can tell everything wakaba stores in the db has already been through decode_string. What am I missing?

468 Name: Anonymous : 2014-04-19 23:35 ID:Heaven [Del]

>>467
See http://perldoc.perl.org/perlunicode.html#Porting-code-from-perl-5.6.X.

The charset situation in Wakaba is a confusing mess. IIRC, the wrapper functions are either used to retain compatibility with Perl 5.6, or to retrieve Unicode data from a non-Unicode database, or both. Note how the utf8 pragma isn't used anywhere in the script, while the encoding pragma is used sparsely.

It's been a few years since I've done anything with Wakaba, but I recall having to use get_decoded_hashref() or its arrayref counterpart every time I wanted to retrieve text that might contain Unicode.

469 Name: Anonymous : 2014-04-20 10:20 ID:Heaven [Del]

>>468
Just noticed that Wakaba doesn't even set the tables it creates as UTF-8. I wonder how much performance I could gain by ditching compatibility for ancient versions of Perl and non-UTF-8 databases...

470 Name: Anonymous : 2014-04-22 16:51 ID:OGXnEN+6 [Del]

Where does one find out how to examine file headers like Wakaba does for images? I added webm support to Wakaba and I can't really do much but rely on ffmpeg to tell me if the file is proper or not. So far it works perfectly but I feel like I should just throw random files at ffmpeg and expect nothing to go wrong.

471 Name: Anonymous : 2014-04-23 21:31 ID:r9TYPpqN [Del]

>>469 The biggest gain I had was adding another index to each table. A board like http://www.chansluts.com/general/girls/ saves at least 15 seconds on a rebuild. The index that gives the huge boost? "parent".

I also converted everything to UTF-8, as well as using InnoDB.

472 Name: Anonymous : 2014-04-24 06:59 ID:Heaven [Del]

I was considering adding an index. Only reason I haven't yet is because WAHa didn't in the first place, and I'm pretty sure he still knows better than me in most cases.

473 Name: Anonymous : 2014-08-19 17:06 ID:l8RP4zr1 [Del]

Not Acceptable

An appropriate representation of the requested resource link could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I get this when trying to quote with >>number

Any ideas?

474 Name: Anonymous : 2014-08-20 08:06 ID:Heaven [Del]

>>473
What's your setup like? That doesn't look like an nginx error message so it has to be apache or lighttpd. Do you also get this error when you click on "Last 50 posts"?

475 Name: Anonymous : 2014-08-20 08:54 ID:Heaven [Del]

>>473
>>474
Just realized I'm assuming you use Kareha. Are you using Wakaba or Kareha?

476 Name: Anonymous : 2014-08-23 10:51 ID:l8RP4zr1 [Del]

>>475

I'm using Wakaba. I basically 775'd all the .pl files in the folder's index. Maybe I had to do it wall the files or something?

477 Name: Anonymous : 2014-09-15 10:20 ID:N07PHk5Q [Del]

I'm using wakaba and have a problem with my captcha.

Does anyone else have a problem with Captcha not automatically reloading? After I post, I cannot post again without manually reloading the page and getting a new captcha. If I don't do a manual reload, the captcha stays the same and gives me an error when I try to post again. Is this a browser issue, or something else? I've tried it in Chrome and Firefox, and neither auto-reload the captcha after a post, but the browser does seem to reload because the image and text appear on the page automatically, I just get the same captcha code.

478 Post deleted by user.

479 Name: Anonymous : 2014-09-21 14:19 ID:5xCzuG2s [Del]

Say I have a persistent version of Kareha. Would caching the log in an array and creating a hash of references to each row in the log with MD5 hashes or IP addresses as keys be an easy to squeeze more performance out of Kareha? If I understand correctly, the hash values shouldn't take up too much extra memory since they're refs, and the array itself shouldn't be any bigger than it would be in plain CGI Kareha. Is there anything I'm missing or misunderstanding?

480 Name: Anonymous : 2014-09-26 11:47 ID:K2mFT8RG [Del]

I have latest version of kareha installed and it takes 2 clicks of the preview button to initiate preview, and in chrome and Safari the default markup is blank with an " undefined " under it until you pick one

481 Name: Anonymous : 2014-09-26 13:24 ID:Heaven [Del]

>>480
Not sure about the 2 clicks thing but the undefined thing is fixed in https://github.com/marlencrabapple/kareha-psgi/commit/40149edc3f1a7cb9a9f501311b4fe703df415301. Should work in vanilla Kareha verbatim.

482 Name: Anonymous : 2014-10-23 06:36 ID:qTa4cK4v (Image: 1680x1050 png, 235 kb) [Del]

src/1414071363760.png: 1680x1050, 235 kb

Mojibake title. The other text on the page are displayed correctly

483 Name: WACOMalt : 2014-11-07 19:07 ID:a3Rzp5BB [Del]

Hello. I am deep in trying to run Kareha on an android device. But I am in over my head. First problem is I don't know perl. Second problem is I don't know how to get imagemagick working for android.

So I guess my last recourse is to ask... is anyone willing to try to get this working? I am trying to add on to the Piratebox port for android, which is missing the image-board feature (which on linux is added using kareha).

I got perl working, I think I found an android port of imagemacick, and I think I know how to get the CGI side of things working with the web server piratebox uses...

Anyone interested in helping?

484 Name: Anonymous : 2014-11-19 09:03 ID:dVpgAmN5 [Del]

>>483
Interesting idea. I don't know anything about piratebox, but I'm sure any combination busybox and a light web server with CGI support could handle this. Even better, if you can get Perl and cpanminus installed, you can run everything without the need for an outside web server, which is something that I find a lot easier in 2014. I might try it on an old Android phone I have laying around this weekend. I'll let you know what works best on my end.

485 Name: Anonymous : 2014-11-22 19:35 ID:Heaven [Del]

>>483
here's the easy way to do it:

  1. install https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy.
  2. install arch linux.

486 Name: Anonymous : 2014-11-30 11:35 ID:Heaven [Del]

>>479 What you are thinking of doing is making Wakaba.

487 Name: Anonymous : 2014-12-05 09:27 ID:Heaven [Del]

>>486
I wasn't aware that Wakaba was simply Kareha with a database. Good to know.

488 Name: Anonymous : 2014-12-18 10:52 ID:Q8Wzy3wQ [Del]

I'm having a problem.

Everything is installed correctly (http://freehispa.host-ed.me) But when I try to reply to a specific post (post #1), using >>1 it gives error 403

Forbidden
You don't have permission to access /wakaba.pl on this server.

What am I doing wrong?

Thanks a lot!!

489 Post deleted by user.

490 Post deleted by user.

491 Name: Anonymous : 2015-06-12 20:32 ID:oH+pKtga [Del]

I am trying to use Kareha on Nginx, and the PATH_INFO is not working. Is there a way to modify kareha to using some kind of GET variable instead of pathinfo?

492 Name: Anonymous : 2015-10-05 12:46 ID:ZCCHz3kG [Del]

Not sure if anyone would be interested, but I've been refreshing, myself on css lately and made a kareha style based on w3's material design tutorial. Feel free to use/improve it, if you'd like.

http://comfy.cu.cc/kareha/

493 Post deleted by user.

494 Name: Anonymous : 2015-12-01 00:07 ID:eh1f7Xmp [Del]

Is it possible to remove tripcodes entirely?

495 Post deleted by user.

496 Name: Anonymous : 2015-12-10 16:29 ID:AVcsy+bd [Del]

>>494
Sure. If you don't want to modify the source code you can set "TRIPKEY" in "config.pl" to something like this:
use constant TRIPKEY => "0" x (MAX_FIELD_LENGTH + 1);

497 Name: Anonymous : 2015-12-10 22:12 ID:zwP1sYpA [Del]

For some reason, my Wakaba installation has decided to stop linking thumbnails to the database, or something. Basically, when an image is posted, a thumbnail is generated and placed in the thumb directory, as expected. However, it doesn't display on the board, and instead only shows the "No thumbnail" text. When I do an SQL dump, I notice that the field for where the thumbnail file name would be is simply blank for each entry.

I am using shared hosting (Lithium Hosting), and I really don't know what kind of thumbnailing software they have installed. It's simply worked up until now. With that in mind, anyone know why this would be happening?

498 Name: 498 : 2015-12-18 09:01 ID:PDxK8NhY [Del]

Is there any way to receive e-mail when the message is posted on Kareha?

499 Post deleted by moderator.

500 Name: Anonymous : 2015-12-28 21:44 ID:ZfWRAA4H [Del]

>>498 Yes, by programming that functionality.

501 Name: Anonymous : 2015-12-28 21:45 ID:Heaven [Del]

>>497 They changed their software and broke some basic functionality. Get a VPS, it'll probably cost less. Well, your site will be gone in a month or two anyway.

502 Name: toki!5yOaZrqx.c : 2015-12-31 16:08 ID:kZ5mufWH [Del]

>>492
cool

>>498
hint: log.txt, index.rss

503 Name: Anonymous : 2016-01-22 06:06 ID:NaAzouRj [Del]

How can I enable webm support?

504 Name: Anonymous : 2016-02-03 02:50 ID:Cl95yTl8 [Del]

Image boards are for images, WebM is cancer.

505 Name: Anonymous : 2016-02-04 02:13 ID:8f18xSv4 [Del]

>>504
agreed
pure, virgin textboards are the superior entity, however

506 Name: Anonymous : 2016-02-07 11:03 ID:yILEoy3t [Del]

>>504
Hm, well, I'd still like to have the option there for those who'd like to use it. Though, the only way of enabling this I can think of would be to allow all types of files and blacklist a few, something I'd rather not do.

507 Name: Anonymous : 2016-03-16 19:04 ID:DdjckOO+ [Del]

So, I want a separate MOD_PASS in addition to an ADMIN_PASS, where MOD_PASS would work on one board and ADMIN_PASS would work on all. I've already set the ADMIN_PASSes to all be the same, created a constant MOD_PASS for each board, and edited check_password to be
sub check_password($$)
{

my ($admin,$password)=@_;
return if($admin eq ADMIN_PASS);
return if($admin eq crypt_password($password));
return if($admin eq MOD_PASS);
make_error(S_WRONGPASS);

}
but...it doesn't work
help pls?

508 Post deleted by user.

509 Name: Anonymous : 2016-04-07 15:22 ID:pesnre1q [Del]

>>503
There is an option in "config.pl".

Uncomment these three lines:
use constant FILETYPES => (
[...]
ogg => 'icons/audio-ogg.png',
[...]
);
and add this line:
webm => 'icons/audio-ogg.png',
somewhere near "ogg => 'icons/audio-ogg.png'," line.

510 Name: Innominate : 2016-04-27 11:47 ID:g/EJZxzv (Image: 77x95 png, 9 kb) [Del]

I don't actually have any questions about how to get your software to work, it always seemed pretty straightforward and relatively easy for me. In my experience, just like you said;

"if it doesn't, there is something wrong with the configuration of your server, not the software."

I just wanted to thank you for making it.

According to most of what I have read and learned about perl,
most of what you have done is impossible, or would at least require an eight hour long castration process, with a pair of dull garden shears.

Eg; Kareha using javascript flawlessly without needing sixty modules from cpan, and a gcc compiler to choke and quit while compiling on windows (what I use, usually).
I'm still not entirely sure what Kozakana html/pl is, apart from a rocket on the back of a pig (want these skittles, kid? o.O) I'm impressed.

I'd agree though, that should be impossible.

Anyways, thanks for making it.

(PerHP is neat to, and I found it useful momentarily prior to discovering Markup::Perl via your link, which I promptly fell in love with.)

Have a great day. ( ゚∀゚)o彡゜えーりんえーりん!!

511 Name: Jon : 2016-08-08 08:19 ID:F9gEj4wU [Del]

Any plans to include .pae file extraction from the PowerArchiver software? Thanks!

512 Name: Anonymous : 2016-08-25 09:46 ID:Mb+DYt5K [Del]

My insecure tripcode with a single quotation mark (') produces wrong output, please send help.

513 Name: Anonymous : 2016-09-01 16:46 ID:4OfA+MxA [Del]

there is a bug where users can create unclosed tags, making every suceeding post bold or italic or whatever.

it happens on "<i/>" in HTML mode because the sanitize_html function in wakautils.pl allows tags other than br to be closed implicitly.

Here's what I would propose as a fix, simply block any tag from being implicit except the 'empty' ones (as defined in ALLOWED_HTML, config_defaults.pl):

[code]
--- a/kareha/wakautils.pl 2007-01-20 14:54:31.000000000 -0500
+++ b/kareha/wakautils.pl 2016-09-01 09:33:14.768000000 -0400
@@ -144,6 +144,7 @@
"$_='$value'";
} keys %args;

+ $implicit=0;
$implicit="/" if($tags{$name}{empty});

push @stack,$name unless $implicit;
[/code]

514 Name: Anonymous : 2016-09-11 23:47 ID:GhQd9Bi6 [Del]

Hello! I recently installed Kareha with "mode_image", and I want people to stay in the thread they post in, instead of being thrown out every time. I have been trying to figure this out for a while, and I don't seem to get any closer to a solution. Could anyone here help me out?

515 Name: Anonymous : 2016-09-18 00:35 ID:ntx4oXUl [Del]

I have File does not exist: wakaba.html
I couldnt find solution anywhere. Can u help me please?

516 Post deleted by moderator.

517 Post deleted by moderator.

518 Name: Anonymous : 2016-10-18 21:21 ID:LK/Xp7G0 [Del]

Hi.I have a problem with wakaba.

Malformed UTF-8 character (fatal) at wakautils.pl line 41

line 41: if($text) { $chars+=length $text; }

519 Name: Anonymous : 2016-10-20 15:23 ID:ksofmSlj [Del]

Hi there! Please assist.

Needed to move my discussion board to another host, but now my "wakaba.pl" page does not work (shows server default "moved" page) and also can't create new post, receive "Unknown Iframe Error" message.

Wakaba.pl set to 755. Directories to 755, files to 644, database imported under the same name with the same user and pass. Anything else that needs to be adjusted?

520 Name: Anonymous : 2016-11-25 20:32 ID:jtRD4Qe7 [Del]

Hi, i tried run wakaba script with xampp and activeperl on windows, all works fine but there is problems with thumbnails. I have installed imagemagick, and thumbnails converted fine - new converted images aprreas in "thumb" folder, but it is empty square plaseholder "no thumbnail" on board page with "class="nothumb". Can anyone help me with it?

521 Post deleted by user.

522 Name: Anonymous : 2017-01-11 01:41 ID:kkZClJRY [Del]

hello! can you help with hiding folder names like /res/ and filenames like wakaba.html from the url bar with .htaccess file?

523 Name: Anonymous : 2017-01-11 15:29 ID:kkZClJRY [Del]

hi! when i move all the files into a subfolder website does not show correctly. for example captchas are not seen. do you know which modifications do i need to make for wakaba to work properly in a subfolder?

524 Post deleted by moderator.

525 Name: anon : 2017-01-26 23:58 ID:nMr4zt2D [Del]

Im a noob how would i go about making it so every post gets a random id

526 Post deleted by user.

527 Name: Anonymous : 2017-02-23 15:39 ID:pC0dPu+i [Del]

>>523>>525 read the config file

528 Name: Anonymous : 2017-02-23 15:47 ID:pC0dPu+i [Del]

>>519

>Anything else that needs to be adjusted?

your server config

>>518

>Hi.I have a problem with wakaba

stop using malformed utf-8 characters

>>515
read the setup instructions

>>514
i'm pretty sure there's a mod right on this board that adds that feature

529 Post deleted by user.

530 Post deleted by user.

531 Name: Someone : 2017-06-28 13:19 ID:SILa/nS1 [Del]

Hi.

Why is it that on 10.12.5 the AppStore version of The Unarchiver asks for permission to extract into every new folder that it extracts to? The standalone, non-Appstore version doesn't ask for that. It would be nice if that would be fixed, as, otherwise, it's quite annoying.

532 Name: Anonymous : 2017-07-11 17:52 ID:88d+n3nj [Del]

>>232
This is several years late, but has that patch been posted anywhere?

533 Name: Anonymous : 2017-07-15 03:49 ID:GTJ2uJTR [Del]

Is there any way to do this:

While creating new thread, if there's another thread with "exact" same title, post the message as a reply to the already existed thread.

For example, if there's a thread which has a title as "apple" and someone else tries to create thread for "apple", add the second message to the already created thread before.

Thanks!

534 Post deleted by user.

535 Name: Anonymous : 2017-07-18 14:16 ID:Heaven [Del]

>>553
What are you using and what version? It doesn't look I can replicate it in Wakaba.

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