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.
can someone please give me a basic step by step way to install wakaba?
Does Wakaba need a different database for each board? All I saw in the config.pl file was that you couldn't was to change the captcha sql table. But when I post on one board it puts that posts on all the other boards as well! I am pretty sure this is an sql thing (though it might not be), how do I go about correcting this and setting sql up properly?
Change the SQL_TABLE option for every board, and possibly also the SQL_ADMIN_TABLE.
Is there any way to ADD file types? I see there's a way to ban them in config.pl and then "allow all" but what I want to do here is just add one or two filetypes, like .psd and .tif. Is there any good way to do this? The only thing I've tried is going into wakaba.pl and editing
$filetypes{gif}=$filetypes{jpg}=$filetypes{png}=1;
to
$filetypes{gif}=$filetypes{jpg}=$filetypes{png}=$filetypes{psd}=1;
but all that got me was a 500 error. Any ideas?
There is a way to add filetypes at the end of config.pl. However, those types will not get thumbnails, and will not be renamed.
Nice day :)
I just want to ask like someone (anonymous) above ~
Can someone please,please give me a basic step by step way to install Kareha?
I mean, when i downlod it, there are *.pl files but i need index.html ????
Thanx ~
>>390 OK, here's the walkthrough:
1) edit config.pl to your liking
2) upload the entire folder to your webspace
3) navigate your way to kareha.pl on your website through your browser
4 that's it!
Hi -_-
[Forbidden][You don't have permission to access /~colorfull-wallies/kareha.pl on this server.]
futallaby [http://www.oranet.sk/~colorfull-wallies/imgboard.php]
wakaba [http://www.oranet.sk/~colorfull-wallies/wakaba.pl]
Any ideas ?
ok
I know now - my webspace have no PerlScripts support. T_T
gome ne for troubles with me ~
However since i can not run wakaba and kareha i would like to
make my futallaby work propertly ~
All is fine, it only dont create thumbnails (it only minify
and show original image) - could this be caused with lack of
thumbnailer (i have read in offered link that wakaba and kareha
need this software installed on server to create thumbs)
Is this same with futallaby? , and if yes which one is most
suggested one?
~byg Thanx for help ^_^~
I have a bit of a problem figuring out into what format should I convert strings_en.pl and set the encoding in the config file so that I'd be able to have commands (like the Post button) with properly displayed characters like čšž (the ISO-8859-2 Central European characters).
Any help is greatly appreciated. Thank you.
The strings file can have any encoding you want, as long as you use a "use encoding" statement at the top that lists which encoding you are using (see strings_jp.pl
for an example of this, it uses Shift_JIS).
The encoding listed in config.pl
can then be anything else you want, and Wakaba should convert between the encodings automatically (as long as you have Perl 5.8). Remember to also set the encoding in .htaccess
so the static HTML pages are displayed correctly.
How much disc storage/transfer storage/bandwich should I have on my web host to put up say.. 5 image boards? I mean, with them completely filled to the 10th page, each one, each thread max posts and whatnot, how much really? Thanls. :3
Is there an easy way to add filename retention (like the way either 4chan or fchan does) to Wakaba?
If so, how?
If you add gif, jpg and png as filetypes in the FILETYPES list, they will not be renamed.
I got his error, everything in my config is correct but it still don't work.
Everything in the config is not correct. Or else the config on the SQL server is not correct. I guess it might also be possible that you have not installed Perl DBD drivers for your database?
Check your error_log to see if it has anything more to say.
Whatever is my host or server OS I need to install DBD? Because I didn't. If yes, it's my problem. I don't know how to install it and where upload it.
Yes, I'm noob.
If you are on a shared host, they are most likely installed for you. If it's a server you set up yourself, most likely not.
You usually need DBI and DBD::mysql (Or DBD::SQLite or whatever it's named). If the script works at all, DBI is installed. DBD::mysql might not be. If it's a Unix machine, you can try running "perl -MCPAN -e 'install DBD::mysql'", or figuring out how to do it through whatever package system you use.
How to remove the verification code when we post and the
excesses style (or only the link on top of the page) on Wakaba?
> How to remove the verification code when we post
Change ENABLE_CAPTCHA from 1 to 0 in config.pl
> the excesses style
Delete what you don't want from the css directory.
They give me this error wen I try to open wakaba.pl
Can't locate config.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /home/www/"my url"/board_a/wakaba.pl line 16.
BEGIN failed--compilation aborted at /home/www/"my url"/board_a/wakaba.pl line 16.
What's the probleme? Congif.pl is there but he can't see it.
Maybe you should start by making sure it's spelled right?
Odd error. I've successfully installed Kareha once and am trying to install it several times t make a variety of boards for my site.
He's the weird part: Every time i change the name so the link is "Fan Art" or something like that instead of "Kareha" everything works fine execpt the style sheets no longer work and i'm left with a rather plain looking board.
I am not sure exactly what you are doing, but I am guessing you need to rebuild caches if you change the path to the script.
>>410
I'm making a image board, standard 4chan type set up. This requires several installations of kareha, one or each section. When i change the name of a installation (so that a new one does not overwrite it) or if i install a new one under a changed name the style sheets disappear.
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);