This thread is for all your simple questions about installing and running Wakaba or Kareha, that just require quick answers. Please don't create any more new threads for issues like that, post them in here instead.
I've run into a formatting bug that shows up in IE with kareha in messageboard mode where if the thumbnail of an image posted is taller than the post text, the image extends beyond the end of the post body and the style is generally broken. It looks like it's restricted to the Blue Moon theme (which I rather like...) as well as Toothpaste (basically where the post body has a different color background).
I set up an example at http://damagedgoodz.net/boardtmp/
Any suggestions?
None more useful than "don't use IE" or "figure out how to fix the CSS", because I don't know how.
Hi again!, i have another question.
When i try put the name "Berryz Kobo" i obtain this error
Can't locate object method "Berryz" via package "kobo" (perhaps you forgot to load "kobo"?) at config.pl line 14.
BEGIN failed--compilation aborted at config.pl line 14.
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.
But if i put just "Berryz" all working :S
i apreciated if anyone can help me. C-ya
"Try put the name"? You need to explain in a bit more detail what you are doing.
If you are trying to set the name of your imageboard to Berryz Kobo then it should look like this:
use constant TITLE => 'Berryz Kobo'; # Name of this image board
i've installed proxycheck into /proxycheck/ in a particular wakaba directory and set it to:
use constant PROXY_COMMAND => 'proxycheck/proxycheck -s -d achaea.com:23 -c chat::"Multi-User License: 100-0000-000" -aaaa';
I enabled proxy check and there is an obvious pause between the time you press submit and when your post actually goes through, but when I post with Tor it does not catch the proxy. Am I doing something wrong?
I didn't write the proxy check code (dmpk2k did), so I can't tell for sure but Tor is not really any kind of normal proxy, so I'd imagine proxycheck doesn't notice it.
Do you have any leads on the cause of the spam filter blocking image posts? It's getting really annoying.
No, sorry, it's damn hard to debug when you can't reproduce it. Well, maybe I should try that trick I was thinking of earlier and give it to you to test... I'll try to remember.
>>545
If you are still experiencing it (as I'm sure my board would be too) you should comment out the block of code that handles the spam stuff. WAHa had me do that until further notice.
open wakautils.pl in your prefered editor and find sub spam_engine. comment out everything from my $spam_checker to spam_screen($query), like this:
sub spam_engine(%)
{
my %args=@_;
my @spam_files=@{$args{spam_files}||[]};
my @trap_fields=@{$args{trap_fields}||[]};
my %excluded_fields=map ($_=>1),@{$args{excluded_fields}||[]};
my $query=$args{query}||new CGI;
my $charset=$args{charset};
for(@trap_fields) { spam_screen($query) if $query->param($_) }
######################COMMENTED OUT TO STOP SPAM ERROR##########################
#my $spam_checker=compile_spam_checker(@spam_files); #
#my @fields=$query->param; #
#@fields=grep !$excluded_fields{$_},@fields if %excluded_fields; #
#my $fulltext=join "\n",map decode_string($query->param($_),$charset),@fields; #
#study $fulltext; #
# #
#spam_screen($query) if $spam_checker->($fulltext); #
################################################################################
}
Also, will Wakaba get fancy DISPLAY_ID support anytime soon (i.e. ability to make IDs not persist between threads, change daily, and such?) At least the board oper I was talking to said that lack of that was his reason for not using it.
>>548
you can make IDs change by day.
use constant DISPLAY_ID => 'mask,sage'; # 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)
The way I have it setup it shows a masked version of the users IP and shows ID:HEAVEN when a user sages.
Hmm. His exact words were "IDs on wakaba are broken in that they persist between threads." Guess he was wrong.
>>550
Oh does he mean that IDs stay the same thread to thread? that's... i dunno. sounds like a dumb idea imho. what would be the point of having IDs? other than showing if one person was posting multiple times in one thread.
in the end we all want different things. i guess it wouldn't be hard to add it. i'm not the expert, though.
Also, yo WAHa I added the email link protocols to wakaba.pl and it's working as you said it would. thanks. :)
my $protocol_re=qr/(?:http|https|ftp|mailto|nntp|news|ventrilo|aim|irc|steam)/;
>>551
It's because, in an extended discussion, certain people apparently have trouble keeping straight which Anonymous made which posts. I suggested SILLY_ANONYMOUS as an alternative but he thought that was, well, silly.
Persistent IDs in Wakaba are sort of impossible to do, as generating the ID requires knowing some fact that will stay constant throughout the thread, and that would most conveniently be the thread number, but the thread number is not known until the post is actually written to the database. So the ID of the first post would be wrong. I guess it could be added, with that caveat, if it's really wanted, though.
>>553
Why not the timestamp of the first post in the thread? Unless that's what the thread number is.
That's what Kareha uses, but the timestamp is not actually stored in the Wakaba database, only the textual date string. One could use that instead, but in either case it would require an extra database lookup for every post, and that seems sort of silly.
I made my wakaba display file sizes in KB rather than Bytes like so:
<var $size/1024> KB
Very easy, obviously. But it displays with lots of trailing decimals. A few wakaba versions ago I remember that I had this working without any decimal places but I don't quite remember how I did this. Is there some easy way to do it?
>>556
nevermind, i figured it out. sorry I'm dumb.
<var int($size/1024)> KB
I don't mind that the rounding isn't perfect. 1KB give or take isn't a big deal.
You can just add 0.5 to get the common rounding.
If you want, try this and see if it helps:
http://wakaba.c3.cx/stuff/wakatest.zip
>>558
add it to 1024? or add it to $size? orrrrrrrr add it to the product?
why not do ($size>>9)+1>>1
instead?
>>562
shift right 9, add 1, shift right 1...
it's slightly faster than doing int($size/1024+.5)
(about .25 seconds of cpu time for 1000000 iterations on my machine), and, at least to me, a more straightforward way to do it...
This is Perl. The parsing cost for >> is higher than switching / out for it!
This is a totally pointless discussion, but I'll point out that parsing cost is nearly non-existent, and always O(1), as Perl compiles to bytecode before running anyway.
would it be possible to add some <if $admin></if> statements into the futaba_style.pl $threads loop (and actually work?) I can't figure out what I need to add in wakaba.pl/wakautils.pl for this to work. The idea is to have management buttons in the threads that don't show unless you have the wakaadmin cookies.
Remember, the threads are static HTML files. You can't affect the contents at any other point than when somebody is posting.
What you could do is always add buttons, and use CSS to hide them and some Javascript to check for cookies and un-hide the buttons as needed.
>>569
lol so i should just steal the shit from the iichan sidebar and edit it to my needs then? <3~
How do I update the settings of a wakaba board after the board has been created?
for example, if I want to change the max file size, or the title of the board? I know where to change it in the config file, but I dont know how to ask the board to update its settings.
If the setting does not affect the look of the board, editing the config is sufficient. If it does, select "rebuild caches" in the admin panel.
Thank you
I think I found a bug in kareha... When you set the MAX_LINES_SHOWN to 0 (which should stand for 'no limit'), it actually does display nothing. A feature not implemented, perhaps? :)
I hope this is a "simple question." (sorry if it's not)
Well, my host doesn't allow running cgi out of cgi-bin, so I installed kareha there. Once I did that, it seemed I still had a problem. All the links formed as something along the lines of:
/cgi-bin/MYSITE/kareha.pl
What I eventually did to "fix" it is replace SCRIPT_NAME with SCRIPT_URL throughout the pl files.
Now everything seems to be working, except for in the full thread view: http://rabi.memebot.com/cgi-bin/a/kareha.pl/1171530470/l50
the "return" link is like this:
~/kareha.pl/1171530470/index.html
and the other links (entire thread, last 50 posts) add on after the thread number as well.
>>574 No, that's a feature! :) Just set it to something absurdly high.
I can actually see "0" being a useful setting for that, in some instances.
You probably need to edit the expand_filename() function to do something smarter.
>>577
ah, that sounds like it's over my head ATM, :x and I think I'll just try what >96 suggested in the 500 error thread
thanks
When I go to wakaba.pl, it redirects me to wakaba.html but does not create the file, so I get a filenotfound error. How do I fix this?
Go to wakaba.pl?task=admin
and rebuild caches.
When I go to the admin panel and click "rebuild caches", it does something and then redirects me to wakaba.html again, which still isn't there.
Then something is seriously broken. Are you running on some weird webserver?
Running apache. I redownloaded wakaba and put it in a different directory, and now I'm not getting that particular error, so I probably corrupted some of the files or something.
Nevermind. I got mysql working on the new one and I'm now back to having this same error. This is really annoying.
Try searching your filesystem to see if it's putting wakaba.html somewhere else.
I tried that and no, it's not anywhere.
lol...I feel stupid. I changed the permissions for all the directories except for the root directory. I just set it to 777 and now it's working fine. Sorry for the trouble.
Hello,
I've been looking for a way to have smaller thumbnails in wakaba lately. Is that even possible? I located the lines responsible for the convert in wakautils.pl but I couldn't figure out how to change the width and height. I'm using imagemagick.
It's no big deal anyway, just curious to know whether that is tweakable or not. :)
Love ya WAHa.06x36!
>>589
Look in config.pl and find the following two lines:
use constant MAX_W => 285; # Images exceeding this width will be thumbnailed
use constant MAX_H => 285; # Images exceeding this height will be thumbnailed
Images larger than what you set there will be thumbnailed to the dimensions specified.
when i press preview post on the kareha boards i have setup they just say loading and do nothing else. any idea what the problem could be?
Do you have the right version of kareha.js installed?
>>594
it was a fresh install of kareha (i think).. lemme check
Any messages on the Javascript console?
>>597
no, but firebug pops up and shows this..........
NEVERMIND. I just tried to upload a screenshot but I got the anti spam message!
Anti-spam filters triggered.
If you are not a spammer, you are probably accidentially trying to use an URL that is listed in the spam file. Try editing your post to remove it. Sorry for any inconvenience.
Uh ohhhhhhhhhhhhh, looks like you've got something to work out maybe?
Anywy, here is the screenshot: http://wtfux.org/misc/what.JPG
Found a problem close to mine (http://wakaba.c3.cx/sup/kareha.pl/1120353264/l50), but thought I would ask before I dismiss it as fixed. My host will not install mod_header, want me to pay extra, blah blah. Do I lose any functionality not fixed by adding <meta http-equiv="Pragma" content="no-cache" /> to the futaba_style.pl script?
My symptom before I added this line was that I would post a thread, and then attempt to reply to the thread and it would hang on waiting for host and then eventually display a blank page. Reloading showed no post, but then adding this line fixed it all.
IE is no concern of mine, but does this line fix all functionality lost by not having mod_header?
That certainly sounds like a browser bug, or unintended behaviour. You should really not be getting an error inside a try
statement, as that is used to allow and catch errors in code! Is anyone else having the same problem?
Also, I tried putting out a fix for the spam bug for people to test, but nobody ever reported back whether it worked or not, so I still have no idea if that did anything.
It should be approximately the same, although I am sure there are cases where it does something different (because there always is), but if it looks like it's working, that should be good enough.
Hello
I understand that the futaba_style.pl script handles the pages when they are refreshed or whatever, but what i dont get is this
i added my code, then i reinstalled the script on the server, and it made no changes, i didnt see the ad anywhere. I just want to know what file and where i place my google ad code, becasue this doesent seem to be working here. again if anyone has done ads with the wakaba script please pass some info over on how to do it, im just not seeing it rite now, thanks!
You need to tell the script to actually write a new copy of wakaba.html before you see any changes. Go to the admin panel and pick Rebuild caches.
>>601
Do you have xhtml disabled? What sort of ad are you trying to run? Letterboard? Tower? Box? What's the dimensions and where do you want them to go?
You can see the way I have mine setup @ wtfux.org/random/
>>600
Could you try and use the preview feature @ wtfux.org/dis/ ?
would it be possible to somehow ban the MD5 hash of an image on a wakaba board?
>>606
alright so it must be my browser.
about the md5 hashes: i'm being sued (have been for a long while) by a particular artist over copyright infringement. all because people posted his works on some of my imageboards. my plan is to take every image of his that i can find, round up the MD5 hashes and only those ones, and ban these from being posted. it's very troublesome to wake up to see that some spammer posted a bunch of his images while all of our mods are away. this almost always leads to more DMCAs. I've had over FORTY in the last two years just from this one artist. You don't want to know the actual total..
Case in point.. it would be really really helpful. I know that people can simply alter the tiniest part of the image to change the MD5, but at least it would stop the people that are too lazy to do that. (most spammers are)
I can understand that this might not be a feature that most people would require. All things aside, I don't know how to do it myself. If you could point me in the right direction I would be most grateful.
In that case, dig into wakaba.pl
's process_file
function, and look for if($md5)
, where the existing MD5 checks are. If you want a quick hack, add something like this:
my %banned=(
"12345abcd67890..." => 1,
"44332211fedcba..." => 1,
);
if($banned{$md5})
{
unlink $filename; # make sure to remove the file
make_error("Enough of THAT");
}
>>608
Works well, thanks. Is there any way that I could put the MD5 hashes into a text list and have it read them from there? There are a loooot of them and I don't really want a huge list in wakaba.pl.
I'm having the same problem. Running ubuntu edgy. My perl testfile named test.pl works fine, while i get download dialog if i try to run wakaba.pl.
This may or may not work, I have not tested it:
my %banned=map ($_=>1),read_array("filename");
More elegant would be to implement an SQL query that gets the values from the admin table, but that would take actual work.
my %banned=map { ($_,1) } read_array("filename");
Maybe?
>>615
works awesomely... :D doesn't even noticeably slow down posting.
Quick question: If i wanted to show the users IP address (as a sort of scare tactic) in the error message that shows when they try and post one of the "blacklisted" images, how would I do this?
Right now I have:
in strings_en.pl -
use constant S_MD5BAN => 'You are not allowed to post this here!<br />'.
'Your IP has been logged for legal purposes.<br />'.
'<var dec_to_dot($ip)>';
in wakaba.pl -
if($banned{$md5})
{
unlink $filename; # make sure to remove the file
make_error(sprintf(S_MD5BAN));
}
Change the <var...>
to %s
and add ,$ENV{REMOTE_ADDR}
to the sprintf
statement.
Is it possible to restore archived threads?
One of my threads was accidentally sent to the archive. Is there a way to get it back?
In Wakaba? No, not really. It is theoretically possible if you made a tool to do it, but I haven't made any such tool.
hmm, has anyone else noticed that "sage" in the email field is turning into "mailto://sage/"?
bumping because it still sages the thread correctly
So, how would I add admin features that work to the normal post interface for a board? I understand that I will have to use javascript to check for the admin cookies, but how do I add a delete button and ban button that passes $admin along without having it show in the html for the board?
>>623
no it doesn't. it turns into mailto:sage, which is what it's supposed to do.
For which script? Well, either way, the answer would be that you have to use Javascript to either inject the buttons into the page once it's finished loading, or else put the links into futaba_style.pl, make them style="display:none", and then use javascript to find them, make them visible again, and inject the admin pass into their hrefs.
>>627
Yeah, that makes sense. For wakaba btw. Now I just gotta learn me some more javascript. aka go steal some
fuck.. i had another question to ask and it was really good. i don't remember it. :(
p.s. i got the anti-spam filter error message again. i just renamed the image, let's see if it uploads.
ARGH, got it again.. wtf. k i deleted the 'f' at the beginning of the filename. asdfas.JPG
ooh ooh ooh, what about a thread close feature for wakaba? nothing says "shutup, you're dumb" like:
This thread has been closed. You cannot post in this thread any longer.
..why is my oekaki saving images as peoples IP addresses? http://lulz.net/oekaki/wakaba.html You can only create and upload one image, after that it says that a file with that name has already been uploaded.
>>630
Insert a new line at line 87 of extras/oekaki/finish.pl and enter
my $filename = time().sprintf("%03d",int(rand(1000))).'.png';
Then, change line 88 (the call to post_stuff) to read
post_stuff($parent,$name,$email,$subject,$comment,\*TMPFILE,$filename,$password,
0,$captcha,ADMIN_PASS,0,0,OEKAKI_INFO_TEMPLATE->(decode_srcinfo($srcinfo)));
That way, even if you have images set to keep the poster's filename for them (as per your config.pl), oekaki posts will use a timestamp-style filename.
>>626 Ohh, I bet it's Google toolbar editing the links so that it catches them for gmail when I click on them. Nevermind.
Does anyone else get the spam error message when they try and use the manager post feature in wakaba? Maybe it's just something I changed in my script..
>>634
Ah, we fixed it. Is everyone else not getting the spam message when they use the manager post? The problem was that the names of the fields hadn't been changed from the older versions and the spam trap fields hadn't been added. Why does the manager post even get put through the spam check anyway?
Hello
I really urgentally need some help here guys. I have a horizontal google ad code i need to put on my site (on the wakaba.html page). But everytime i do it and i post somethign the ad disapears. can someone tell me where to put my google ad code so i can have it either on top of the post form or below it without the ad being removed everytime someone makes a new post? let me know, thanks guys.
(if someone can give me a psecific file and place to add it that would be very sweet).
>>636
You want to put it into futaba_style.pl.
Place it between:
<if $postform>
<-------AD GOES HERE------->
<div class="postarea">
This will put the ad right above the post form.
Also, you will need to set USE_XHTML => 0; in config.pl.
If you are using the .htaccess that is provided with wakaba, then you will also need to comment out the following lines as I have:
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
#RewriteRule \.html$ - [T=application/xhtml+xml;charset=utf-8]
#</IfModule>
Hope that helps. ;)