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.
>>28
That should be fine. I can't think of any reason it wouldn't work.
Yes, that should work fine.
Thanks for many kind advise.
Well, it's about manage problem but someone knows how to change
moderators name colour in BBS ?
I've changed config.cgi
use constant CAPPED_TRIPS => ('!hogehoge'=>'<font color=#FF0000>★webmaster</font>');
but after I made a change, it turned out rest of all messages
changed to red color which I did not meant to.
All I need to change is webmaster and moderators name color as to
show users know I am the real manageing person.
If someone knows how to modifiy the program please advise.
Thank you so much.
That looks about right, as long as the '!hogehoge' is replaced with the actual output from the trip (like '!WAHa.06x36' for me). I'd put quote marks around the color argument to be valid XML, though: <font color="#FF0000">. Otherwise I can't think of why it wouldn't work, unless you forgot </font> or something...
On my FreeBSD box, regular tripcodes (#) don't work, but secure tripcodes (##) always stay the same. What the heck is up with that? If I have to install perl libraries, that would be fine with me.
Oh, right, I've heard of that... Some of the BSDs use a more secure algorithm for crypt() by default, meaning they won't produce the expected output. There is some flag somewhere that will turn this off, but don't ask me what it is. Try Googling for problems with crypt() under FreeBSD.
>>33 it was simple mistake. quote marks worked ! Thank you : )
I see text laying on top of of the background on IE with 2-channel design.
Is there any way I can fix this problem?
Firefox looks better but still the page is slightly crooked to the right.
It's really strange but sometimes happen and sometime doesn't
Screenshot as follows
http://www.no1game.net/images/bbs.gif
Thank you
Ive found
1) access http://www.no1game.net and then Click the BBS URL
it get screwed. However it get fixed after reloading the page.
2) but if I access directly to http://www.no1game.net/bbs/
the page looks fine.
Hmm, that is very weird. It seems a lot like it's a bug in IE... I've never seen it before, but I don't use IE either.
Also, if you find any errors in the Japanese strings I used, tell me about them, and I'll put in fixed versions.
It works fine in my IE, though...
>>38-42 Thanks for taking a look at my problem.
yes, I bet it's depend on each person's enviroment but
majority of Japanese people uses IE5-6.0...
Sometimes it's ok but sometime doesnt't its really strange.
So I need to take a look at it little more closely.
By the way, if you have plan to update the script
it would be nice to put function that refuse posting from certain IP address control and delete function using the check box form.
It would greatly decrease management time for website.
Anyway thanks mate!
If you can figure out what causes it, I'll try to include a fix. Right now I can't test it, though, since I use a Mac and can't run IE.
There is a script for deleting posts and such. Copy admin.pl
out of the extras/
directory. If your webhost uses Apache as a server, you can ban people by hand by adding lines like Deny from 123.123.123.123
to a .htaccess
file. I might add some code to do that automatically from inside the script in the next version.
>>35
There isn't a way to make the bsd trips the same as other unix trips, because bsd uses MD5 for their crypt and *nix uses DES. If you change it, your user's passwords will then be DES'd and not MD5'd.
>>45
crypt_default in auth.conf sets the default for crypt().
passwd_format in login.conf sets what is used for user's passwords.
my bad, I guess searching google and the handbook failed-x me XD
in wakaba 3.0.4, i don't see any css, any ideas?
>>48 link to the board; and did you copy over all the files, including the folder called "css"?
Did you run wakaba.pl from the command line at any point? Or did you move it without rebuilding caches? In either case, you need to manually go to http://.../wakaba.pl?task=admin and rebuild caches.
>>49
>>50
http://kompak.mine.nu/wakaba
WARNING NSFW
Yeah, it's set up right, i copied everything over and made sure it's all 755, and have tried rebuilding caches several times.
Just a big FYI for everyone in this thread:
I was having some 500 Internal Server Error issues, and I was sure everything was right. However, in apache.conf I had to change cgi-handler to cgi-script in the <Directory > config for that particular directory. This is on Apache 2.0.55, and probably just some change in config-file syntax. If you're in dire straights, do everything the wiki says, substituting cgi-script for cgi-handler.
Hope that helps someone.
Testing in Firefox, I get the error:
> Error: The stylesheet http://kompak.mine.nu/wakaba/css/gurochan.css was not loaded because its MIME type, "text/plain", is not "text/css".
> Source File: http://kompak.mine.nu/wakaba/
> Line: 0
Apparently it won't load stylesheets with the wrong MIME type in ultra-strict mode. I guess you should either add that MIME type, or turn off the XHTML stuff (in both config.pl and .htaccess).
Okay, I'll configure a new mime type when I get around to it then, thanks.
Well, it doesn't seem to want to let me into my own management panel, even though I type the exact password from config.pl
It gives me Error: Management password incorrect.
How can wakaba be configured to run a flash upload board ala 4chan /f/?
Usually people just enable the SWF filetype and leave it at that.
I am trying to set up Kareha and I want to have multiple boards. Am I supposed to just duplicate the kareha directory for each board I want, or is there a more logical way of doing it?
Pretty much. If you want to be fancy, you symlink most of the files except config.pl
and anything else you've edited, to make updating easier.
hmm, might be a css arror...
firefox 1.5, karaha; permasaged threads's [del] butons are apprearing too far to the right, off the gray part of the thread.
Ive been using kareha 3.0.9 about a month and found some problem.
As it seems some people do not reload the page after posting a message, they tend to post duplicate messages again.
If we can force them to wait few minutes to post another message
I think it would be okay.
Does anyone knows how to cope with this ?
How do I ban people in Kareha exactly?
You don't. You can, however, ban them with Apache by adding lines of the format Deny from xx.xx.xx.xx
to your .htaccess file. Or you can try applying the changes listed in http://wakaba.c3.cx/sup/kareha.pl/1124340406/ to add banning functionality. I'll probably try to roll some of that into the next version, whenever I get some spare time to work on it.
Can you ban them from posting but still let them browse the board?
I'm getting this.
This board has not been configured yet.
Things you need to do to get the board running:
Can I've done the first. Can someone please tell me exactly what I change on config.pl and what do I change it to?
If you're getting that, you haven't done the first. Otherwise, you'd be getting a different error.
But I did do the first. Unless I did it incorrectly. The folder looks like this now.
The threads show up on the main page, but not the actual post itself. Whats going on?
If you mean REPLIES_PER_THREAD, no, its at its default of 10.
Did you modify the templates at all?
The front page is being generated with the correct number of posts, but the posts only consist of a bunch of spaces. What exact changes did you make from the base install?
I copied the mode_message stuff into the folder and edited the config.pl file.
Its something in the config file, I copied it again and its working.
Weeeeird. Well, as long as it works...
Software error:
Bareword "SECRET" not allowed while "strict subs" in use at captcha.pl line 115, <FILE> line 4.
BEGIN not safe after errors--compilation aborted at captcha.pl line 148, <FILE> line 4.
Compilation failed in require at kareha.pl line 15, <FILE> line 4.
BEGIN failed--compilation aborted at kareha.pl line 15, <FILE> line 4.
What's this?
Your installation is still broken.
2 Kareha Questions:
1) Is it possible to remove the Board Look section and just make it use Futaba style?
2) Is there a place I can define what html tags are allowed? It would be cool if I could allow people to post things like google or youtube videos directly on the board.
Your installation is still broken.
Obviously. Any idea how or why, or how to fix it?
>>82
1) remove this from templates.pl:
<div class="adminbar">
<loop $stylesheets>
[<a href="javascript:set_stylesheet('<var $title>')"><var $title></a>]
</loop>
-
2) set ALLOWED_HTML in config.pl:
use constant ALLOWED_HTML => (
'a'=>{args=>{'href'=>'url'}},
'b'=>{},'i'=>{},'u'=>{},'sub'=>{},'sup'=>{},
'em'=>{},'strong'=>{},
'ul'=>{},'ol'=>{},'li'=>{},'dl'=>{},'dt'=>{},'dd'=>{},
'p'=>{},'br'=>{empty=>1},'blockquote'=>{},
)
>>84
oops, i was a little careless with my copypasta... leave the <div class="adminbar">
line in.
Do it over. You've obviously got files all mixed up.
Hi, everytime I run wakaba.pl I get Error: Could not write to directory.
I asume it means it cant make wakaba.html can anyone help me fix this?
Fix permissions. See the docs at http://wakaba.c3.cx/docs/docs.html for more info.
Short version: set the directory permissions to 777.
I tried kareha message and image mode versions.
I liked message mode better, but:
I would like to have some functionalities of image mode in the message mode board. For example: password for user post deletion.
in the message mode board, all posts have a [del] link, and i guess you can delete your own messages based on a cookie? I prefer the password because of users that connect from different machines...
Also, I can't see any admin link in my site. check it out: http://www.pixelorama.com.ar/messk/ and if I type kareha.pl?task=admin I get a "Script error; no task speficied."
For Kareha, the admin script is a separate script that you can copy out of the extras
folder. If you want passwords, you can hack them yourself, but I most probably won't do it for the main distro because it's a bit too inelegant. (You basically need to change the password form fields in the template from type="hidden"
to type="password"
.
Software error:
Insecure dependency in `` while running with -T switch at wakautils.pl line 1073.
I am getting this error when attempting to post in my Imageboard
Uh, you should set up your server to stop running perl with the -T switch.
I have no idea why it'd do that in the first place, so don't ask me.
How hard would it be to make Kareha run with Perls taint checks?
Dunno, I never actually bothered to learn how to deal with taint checks properly, so I never bothered. I did try to read up on it and it sounded like more annoyance than it was worth, so I never did anything about it.
I have some kareha boards set up on my site, and there is something about it thats really annoying me, and I'm not sure where the problem lies. I keep seeing old, outdated versions of the board, unless I hit the refresh button in firefox.
For example, I can go and make a post on my board, close firefox, then open it back up and load my board, and i wont see the post I just made unless I refresh. I've never noticed this problem on any other sites or boards.
You need to set up Apache to tell browsers not to cache pages. Rename example.htaccess
to .htaccess
to do this - however, it will only work if mod_headers is loaded on the server.
>>95
you could try changing the #! line to:
#!/usr/bin/perl -t
and then adding this line after it:
no warnings qw(taint);
lol it works now, the problem was that the -t in the hash bang was a capped T, after I made it lowercase it worked.
There is now another problem. The script is not creating the reply pages needed. e.g /res/1.html does not exist.
I can't get my kareha or wakaba boards to convert images to thumbnail, so I'm currently using stupid_thumbnailing
I have ImageMagick installed and it works fine from cmd.
Any suggestions?
Yes, post in the right thread.
Apart from that, what OS?
>>106
Sorry :(
Windows server (WAMP5
+ActivePerl
+ImageMagick
)
:-/
btw, "install linux" is not a very good asnwer for me...I've heard it a hundred times already T_T
...I know there is a way to get this to work on windows...I'm just an internet noob I guess :-/
Any healp greatly apprecieted :3
Running on Windows seems to lead to random and difficult to track down problems. Good luck with that.
http://wakaba.c3.cx/docs/docs.html#RunningOnWindows has some hints, and maybe there are some others if you dig through the board, but beyond that, I can't really say.
I would like to place ads on my kareha board. They are text ads and are generated from some javascript code. If I put it in one of the include files though, it doesnt appear on the board. Normal text that I place in there shows, but the text from the javascript doesn't.
This is probably because they are google ads, and don't allow stripping out newlines, which the template code does by default. There's an option in config.pl to turn this off, but I forget the name. STRIP_NEWLINES
or something.
Why it strips them, or why Google ads won't work? I don't know about the latter, but the former is because Kareha needs posts on a single line, so I designed the template engine to strip them (because I did not exactly feel like writing templates on a single line), and so that behavior carried over into other places where it wasn't strictly necessary, but didn't really hurt either (except for breaking the Google ads).
Using debian, I get the following after trying to create a new database using sqlite.
hanzo# ./wakaba.pl
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: admin(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: admin(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: proxy(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: proxy(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: comments(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: comments(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
Status: 303 Go West
Location: wakaba.html
Content-Type: text/html
Do you get that repeatedly, or only the first time? If the latter, that's perfectly normal. If the former, try running the command-line sqlite tool to see what's actually in the database.
PS: This thread exists.
So...is there anyone running on windows that might be able to help me with thumbnailing?
I've tried looking at the problem myself, but to be honest, I don't really know a lot about perl. I can get convert
to execute, so ImageMagic isn't the problem. I'm just so confused :-/
Any help at all would be greatly appreciated.
(I read #RunningOnWindows over a few times...it doesn't help me, since perl is in the right dir and imagemagick works.)
>>115
If you got Q8 like "RunningOnWindows" recommended, try getting Q16. I /think/ that's how mine started working, but to be honest, I have no idea why anything at the beginning of the entire setup process was as difficult as it was or even started working.
I have made several other wakaba and kareha boards without any problem on Linux systems. However, I recently moved to a new server that uses Windows Server. I had several issues that I already sorted out (DBI wasn't installed), and now there's only one left. When I try to access the management panel, it hangs for about 2 minutes and then says:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
I don't have administrator access, so I can't easily get more information, but I will try.
Any clues?
Can you post to the board? Sounds a bit like it locks up at some point and then times out, probably when trying to access the database.
Man, I have no idea what's going on there. I suggest you follow the program flow for the login procedure, and put in die
statements along the way to see how far it gets before it locks up.
What is it in wakaba's .htaccess that causes this to happen:
http://imgboard.eleochan.org/statistics/
I noticed that when I removed wakaba's .htaccess this didn't occur when static stats pages were generated (with both awstats and webalizer). Since I suck at .htaccess I figured you'd be able to tell me what I can remove/edit without messing everything up.
Wakaba is currently installed to the root folder so it's imgboard.eleochan.org/ so don't really have options as to where to put /statistics instead.
I'm so sleepy.
>>120
I did as you suggested, here's the line of code that is causing it:
print "Status: 303 Go West\n";
in wakautils.pl
when I told it to die just before this, it died properly
when I told it to die just after, it gave the original error, but no long pause
It's fixed
but I had an odd little problem
I changed ALTERNATE_REDIRECT to 1 in config, but it didn't actually use the alternate redirect
so I changed the code in wakautils.pl to force it to use it, and now it works
Thanks for pointing me in the right direction
.htaccess is set up to send files as application/xml+xhtml
when the browser supports it, which causes the browser to parse it much stricter. It looks like you edited the template and broke the <!DOCTYPE
statement.
Oh yeah, I remember now that ALTERNATE_REDIRECT
is sometimes needed on Windows machines. But I'm not sure why it won't use it properly. I'll look into it.
>>124
Nuh uh, I didn't do anything to the template.
I had to comment out the last block from wakaba's .htaccess
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
#RewriteRule \.html$ - [T=application/xhtml+xml;charset=utf-8]
#</IfModule>
Oh wait, I misunderstood what was happening. The web statistics tools don't generate valid XHTML, so when Apache tries to send them as application/xhtml+xml
, Firefox activates the strict parser and breaks.
I guess the simplest solution is to just comment those lines out like you did.
Oh okay I get what's going on.
I have two questions. How much does bandwidth does kareha use during peak usage? And also, is there any way for me to change the thread list at the top of each page so that it displays in a table, like on world4ch?