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 still don't know what you mean by "name". Path?
And what happens if you rebuild caches?
I have a site with 3 boards right now, at some point in development, it became the case that any new thread started goes to one specific board, (regardless of what board it was posted to) and replies are simply lost.
You've either messed up your SQL settings, or you need to rebuild caches.
Is there a way to get rid of this annoying thing that doesn't involve extensive reprogramming of stuff?
Well, it involves a little bit of reprogramming. Edit out the HTML code in futaba_style.pl
and then find the line that throws the error message in wakaba.pl
and remove it or comment it out. To find it, look for the error message in strings_en.pl
, then search for the identifier it uses.
I should warn you that it does serve a purpose, though, which is to warn people who accidentially try to reply to the top thread without pressing Reply first. Whether or not removing it will make misdirected replies significantly more common or not hasn't been tested by me personally, though.
I've successfully installed Kareha and it's working fine, except for one little thing.
I am in Seattle, all my users are in Seattle, but my server is in Vermont; so when I post it shows when it was posted in eastern time.
Is there any way to have it show the time of post in pacific time?
No, unless you hack the code to change it (it's pretty easy, just add or subtract the right number of seconds from the time variable in post_stuff()
)
Can it be implemented that every url can only be repeated a certain number of times per post, the number being set in config? (Or is this already possible?)
Why?
>>423
Usually when there's a spammer like in http://spi.iichan.net/fb/res/1658.html it repeats urls mutiple times, while normal people would probably only mention a certain url once or twice.
I think it would help reduce the few spammers that do happen to get around the filters already implemented.
Well, the built-in spam filters are much more effective than that. That board is using an old version and is not running the filters.
Also, that post has (as far as Wakaba can see) no repeated links, so it wouldn't be caught by the filter. Matching partial URLs to find repetitions would cut off a lot of legitimate uses, too.
>That board is using an old version and is not running the filters.
Oh okay.
Also the spammer/spambot I get on /sak/ seems to know what fields to avoid too.
Went easy on banning the fucker and didn't include filters and the serious guns... yet. That's because I've been busy.
Hello
I am trying to set up Wakaba and I want to have multiple boards. Am I supposed to just duplicate the wakaba directory for each board like it's done with Kareha? Can I just create a new directory and then symlink everything to the install folder without the config file? would that work for Wakaba?
ok, thanks for your reply. but now I have another problem. I made symnlinks to everything except config.pl. I copied the config from the previous install and only modification I made was to rename the admin, proxy, captcha and comments tables. this is what I get after I tried to execute wakaba.pl
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
etc.
This is what I get when I tried to execute it from the command line:
[Tue Nov 28 00:09:08 2006] wakaba.pl: DBD::mysql::st execute failed: Table 'blablachan.adminA' doesn't exist at wakaba.pl line 1794, <FILE> line 3.
[Tue Nov 28 00:09:10 2006] wakaba.pl: DBD::mysql::st execute failed: Table 'blablachan.proxyA' doesn't exist at wakaba.pl line 1794, <FILE> line 3.
etc
now. isn't supposed wakaba.pl to create these tables automaticaly?
thanks.
sorry for posting it not in the appropriate thread. I fixed it. it was a overly paranoid apache server which refusing to execute scripts from 777 directory.
I seem to have a small problem with my board,
It's installed correctly as far as i can see, it just wont recognise my admin password, i put it in fine, it goes to the management panel, but when i click ANY link i get..
Error: Management password incorrect.
It's quite annoying.. not sure whats wrong :(
Now i cant login at ALL! :( Thats getting really annoying..
I can't get wakaba to display cyrilic characters. I changed utf-8 to windows-1251 in the config.pl file and in the .htaccess file. the generated wakaba.html displays the characters in a very odd way :
Àíèìå
when I view the source they get even more odd : #xc0;íè&#"
is there something else to be done which I overlooked?
I also turned on CONVERT_CHARSETS in the config file but it doesn't seem to help.
> I can't get wakaba to display cyrilic characters. I changed utf-8 to windows-1251 in the config.pl file and in the .htaccess file.
What did you do that for? UTF-8 supports everything, even Cyrillic.
I have no problems nor with UTF-8 nor with windows-1251 in the posts. the only problem with the correct display of the cyrilic charactes is in the title that is read from the config.pl (use constant TITLE = )
>>436
Nope, i've only ever updated with newer config's whilst changing some settings, same password, but sometimes lets me log in, and sometimes not.
When i do log in i cant click any of the links, gives me the same error.
You need to set the character set for the Perl file to match whatever charset you are using. Note how strings_jp.pl
has a use encoding "Shift_JIS";
at the top. You need to add a similar statement to your config.pl
.
I really have no idea what's going on there. It really makes very little sense.
After like 16-17 pages wakaba removed some images. how do I remove that limitation?
thanks
>>444 in config.pl there are age settings. Crank them up as high as you want for threads that last until the end of time.
>>445 almost got it, but basically, check the example config.pl for explanations of the options that determine when threads start getting deleted. Most of them can be set to 0 to disable.
Note that if you let a board grow very big, it will become slow, because it has to keep rebuilding all the page.
is it possible to setup a kareha board using the webspace my ISP gives me?
I dunno, does your ISP let you run Perl scripts and have a suitable thumbnailer installed?
I have run into quite a bit of trouble, when trying to get kareha to support EXIF data 4chan/p/ style. It displays the comment along with the picture and EXIF data fine, but when the picture with EXIF data along with the post is posted as a reply, then it will somewhere eat away the last </DIV> tag, which it doesn't do, when that post is the first post in a thread. Multiple threads also work, but not replies.
Any help or suggestions very much appreciated. :)
Without knowing what exactly it is you're doing with the EXIF data, it's impossible to say what's going on.
How do I use capped trips? I see
use constant CAPPED_TRIPS => ('!!example1'=>' capcode','!!example2'=>' <em>cap</em>');
And assume that typing name##example1 would result in name!! capcode, but it just treats it like a normal tripcode.
"!!example1" is the result of the tripcode, not what is typed in. Note that it says "!" and not "#".
I tried
use constant CAPPED_TRIPS => (' code'=>' !!<em>ADMIN ##</em>');
and entering Admin##code or Admin#code returns Admin!!MIVjB2tk and Admin!FKk4keqK9w respectively, when I expect Admin##ADMIN. Sorry if this is obvious, I just started learning perl.
Re-read what I said. You're not supposed to put in "code", you're supposed to put in "!!MIVjB2tk".
I just realize that what I am entering in config for the input to "use constant CAPPED_TRIPS" is tripcode output itself, not the phrase that generates the tripcode. Gotcha. Thanks.
Hi again.
After translating the whole strings_en.pl to a cyrilic language I get when trying to upload file:
Software error:
Malformed multipart POST
That's not an error Wakaba ever generates on its own, so it comes from somewhere else. I've never seen it before so I have no idea what it means. I am guessing it's an Apache or CGI.pm problem. Maybe Google has some clues?
Error message:
Can't locate config.pl in @INC (@INC contains: . C:/Program Files/xampp/perl/site/lib/ C:/Program Files/xampp/perl/lib C:/Program Files/xampp/perl/site/lib C:/Program Files/xampp/apache) at (eval 88) line 14. BEGIN failed--compilation aborted at (eval 88) line 14.
This is what I get when I try to execute kareha.pl. I have no idea why since config.pl DOES exist in the same directory. Forgive me but I know nothing of perl programming (I am savvy with PHP, though). What's wrong?
It sounds like whatever is executing the Perl code is not CD'ing to the right directory. cgi-handler should do this, which makes me wonder if something else is trying to run it. Is mod_perl in use or something? Wakaba doesn't really work with mod_perl without tweaking.
So, the solution should be to either configure Apache to use cgi-handler for .pl files, or if that still doesn't work, you can try adding a BEGIN { chdir "path-to-files" }
at the top before the other BEGIN
statements. But the first is more likely to help.
Yes, I presumed that was the problem. I've been searching for a good 30 minutes for a config file that changes the root directory with no avail. And yes, I do have mod_perl (that has been bundled with xampp). Is there a noob-friendly way of installing cgi-handler? Sorry for my ignorance, it's just that I have never worked with perl before.
Thanks in advance.
Edit config.pl for enabling youtube embed code to be pasted in Formatting:HTML mode
use constant ALLOWED_HTML => (
'a'=>{args=>{'href'=>'url'},forced=>{'rel'=>'nofollow'}},
'object'=>{forced=>{'width'=>'425','height'=>'350'}},
'param'=>{args=>{'value'=>'url'},forced=>{'name'=>'movie'}},
'embed'=>{args=>{'src'=>'url'},forced=>{'type'=>'application/x-shockwave-flash','wmode'=>'transparent','width'=>'425','height'=>'350'}},
'b'=>{},'i'=>{},'u'=>{},'sub'=>{},'sup'=>{},
'em'=>{},'strong'=>{},
'ul'=>{},'ol'=>{},'li'=>{},'dl'=>{},'dt'=>{},'dd'=>{},
'p'=>{},'br'=>{empty=>1},'blockquote'=>{},
);
>>463
<embed type="application/x-shockwave-flash" src="http://hotaru.thinkindifferent.net/bee.swf"/>
Left-hand side, see where the border is cut off along the thumbnail? What's up with that?
cgi-handler is part of the base Apache. You just need to change the config to use that instead of mod_perl.
Is there a way to force long one string comments to wrap in wakaba (so that they don't mess up the page design, causing the horizontal scrollbar to appear - damn those malicious people)? I have tried looking at CSS, but that solution seems to work only for IE.
No. I find the solution more annoying than the problem (for instance, long links being broken by putting space in them, making cut-and-paste much harder than it should be), so I've never implemented it.
i'd like to recommend that q
be added to the default list of allowed tags in html formatted posts.
oh, and support for svg images would be nice, too.
Too many arguments for main::clean_string at wakaba.pl line 1324, near "1) "
Too many arguments for main::clean_string at wakaba.pl line 1345, near "1) "
Too many arguments for main::clean_string at wakaba.pl line 1378, near "1) "
Execution of wakaba.pl aborted due to compilation errors.
help help help
atm when i press del all in the management panel w/wakaba I get the following: Error: Management password incorrect.
I have messed with a lot of the board look, and even a bit of the management panel look, but I am confused as to what would be causing this problem. The del all button seems to be formed correctly still. :(
also, i have replaced the edited management post loop with the original and am still experiencing the problem. i can select individual threads to delete and they go through no problem.
<td><var dec_to_dot($ip)>
[<a href="<var $self>?admin=<var $admin>&task=deleteall&ip=<var $ip>"><const S_MPDELETEALL></a>]
[<a href="<var $self>?admin=<var $admin>&task=addip&type=ipban&ip=<var $ip>" onclick="return do_ban(this)"><const S_MPBAN></a>]
</td>
A known bug, I hope I'll find some time to fix that and a couple of other issues soon. Haven't checked what causes it.
>>481
oshi... well until then i hope i don't get spammed to hell.. which has already happened once in the past three days that i've had the board up. is there any other way to remove all IPs from a board other than the management panel?
>>481
Just weren't enough parameters to delete_stuff as it was called from delete_all. ;)
Since there's no easy way to specify whether to archive the posts that [Del All] will remove, I chose not to archive them.
Line 1479 of wakaba.pl now reads
delete_stuff('',0,0,$admin,@posts);
Ah, I suspected something like that. Thanks!
>>485
we are making a lot of changes to wakaba, like i said. are you interested in any of the changes? so far we haven't had any problems whatsoever with any. things we are looking to add are sticky threads (just because... people whine about not having it) and a multi-board management panel.
does anyone know how i could get our collapsible thread option to store a cookie that says whether it was opened or closed and make the thread collapse/stay open to reflect the cookie?
Look at the iichan sidebar.
I've had the collapsible thread idea in the back of my head for a long while (I made a Firefox plugin that did the same for 4chan waaay back in the day), but I never got around to doing anything about it. It's probably a good idea, although there are some problems to take care of, such as: if you use cookies to store the state, you have to make sure you're not making the client send a ton of old useless cookies to the server.
Still not going to add sticky threads, though. They reinforce the idea that a board is run by the moderators and the users are an audience, instead of a board being run by the users with the moderators being there to keep the place clean. That is to say, moderators should never, ever control the content of a board beyond removing abuse.
>>487
what about, hypothetically, if you had user voted stickies? ie a thread gets so many votes so it stays at the top for a set amount of time?
in the end someone controls what's happening on the boards, whether it's the admin, the moderators, or the people posting.
That's a better idea, I think, but then you have changed the dynamics of the board to something new and different. Whether it would be something good or bad, I can't quite say.
>>489
yeah.. i was just tossing that out there. creating stickies is a step closer to having user chosen stickies.
>>487
Aha! Huge thanks for the clarification of the western imageboard philosophy. :)
is there any way to link directly to a post in a thread like in kareha? ie http://clownpenis.fart/wakaba/4323.html/666
http://bad-end.org/stuff/spam.jpg
or http://www.pooshlmer.com/wakaba/res/28275.html if it isn't deleted
It dodged the spam trap on a wakaba 3.0.6 board and also posted an image. Have the spambots been tailored to wakaba?
I'm trying to set up Kareha (check with my host and they are configured for running perl), but after following the quickstart guide, I keep getting an error 500 when I try to access kareha.pl. Is there something I'm missing or still have to do before running the software?
See if anything in here helps, first of all: http://wakaba.c3.cx/sup/kareha.pl/1109033191/
>>497
Thanks, that took care of it! I just noticed that was linked at the top too, sorry for not seeing it earlier.
Is there a way to make certain users' names show up in a different color? For example, I want the name "The admin" to show up in red and the name "Mod" to show up in blue, while other users still continue with the normal colors.
500GET!
the thing to choose the formatting doesn't work in opera mini... the "more options link works, but it doesn't show the dropdown thing to select which formatting mode to use ;;
This is probably a really silly question, but how do I post with a capcode? When I enter my name in as just that, it posts as some tripcoded(?) version of what I entered as the capcode in config.pl
You're supposed to put the tripcoded version in config.pl.
I guess I assumed we were talking about Kareha?
Furhter investigation of this mysterious spammer indicates that it is actually a human posting from a regular browser.
Not much to do about that, except to update spam.txt
, I added a couple of entries that should give him trouble.
(I was going to post those entries here too but of course I got caught by the spam filter.)
>>506
the OP may have been, but I was wondering it it works with wakaba. doesn't seem like it would be hard to implement. or am i just assuming wrongfully?
>>504
Thanks, that cleared it up. I had it coded in backwards per se. Oh and I did mean in Kareha, I forgot that this thread is for both Wakaba and Kareha help when I posted that question.
i don't think your new spam definitions are stopping the spam... is there anything "special" you need to do in order for the new spam.txt to take effect or is it good to go as soon as you upload it?
I get a "403 Forbidden" error after installation.
I checked the HashBang and Permissions.