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.
>>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. ;)
THANK YOU THANK YOU THANX!!
u guyz r the best!
lol actually shits...hmm for some reason its not working :( hmm very weird i tried everything you posted here...is there any way that i could of done something wrong here....hmm
it says the google ad code is js does that change anything....just trying to eliminate all possibilities here.
ok hmm
for some reason (its not the code thats the problem here) its that whenever i reload wakaba.pl it doesent change and for some reason read the new changes i put on the futaba_style.pl file
what cold be wrong here.
>>641 Did you rebuild caches?
Also, check the source (of wakaba.html). Is it all on one line? Then you need to turn off that function as well.
>>641
go to the management panel: yoursite.com/wakababoard/wakaba.pl?task=admin
and press Rebuild Caches.
Can you provide a URL to your board so I can check your html?
Good idea or bad idea: checkbox for returning to the same thread rather than wakaba.html after posting
maybe this can be the prob...
the google ad code is in green so maybe its commented out for some reason. i have google ads on antoher sit and its not greened out so is that the problem, and how do i fix dat??
>>645
Btw man.. you might not want to have all that CP on your site. It's definitely not good to tell people to post it.
Calvin August ([email protected])
+1.5133156092
6978 deddy road
cincinnati, OH 45243
US
The FBI will enjoy busting in your door. Just letting you know..
yea im aware of that, thanks.
ive aloready encouraged them not to.
the cp txt board is there b.c poeple like talking about it, thats fine in my mind. you wont find ne cp pics there aloready deleted.
thanks all for your help you guys own!
>>650
lol there was plenty of cp, especially on your upload thing.
REPORTED.
oh man this is gonna be fun. talk to you when i wake up.
I never liked that idea, because I don't think image boards should just be about endless posting of images by one person. Also, posting scans of whole volumes of stuff is pretty immoral.
>I never liked that idea, because I don't think image boards should just be about endless posting of images by one person.
As cool as you are, you shoot down a lot of decent ideas for the simple fact that you don't like it. :(
No one said anything about posting scans of whole volumes, and not having a checkbox that returns you to the thread isn't going to stop it from happening.
It works for discussion and the posting of images. I see it as a way to simply make things easier for the users. Of course, it's not exactly strenuous to scroll and click back onto a thread after you've posted to it, but you'd be surprised how often a post misses its mark.
A user can always delete their post if they miss a thread, but:
a) a good deal of users don't even know they can do that
b) it adds more bandwidth usage (however small it may be) and
c) the checkbox could circumvent misposting altogether.
That is... if the users understand it better than using the password to delete it!
In the end it's all personal preference.
By the way, we should have our sticky thread feature working by tonight and we will be reworking the moderation panel to look like the normal post interface. That's a whole different discussion though, aye?
> As cool as you are, you shoot down a lot of decent ideas for the simple fact that you don't like it. :(
Well, in my mind, that's what design is all about. Figuring out what to add, and what to leave out. The issues at hand here are the additional complexity from adding the control versus the usefulness of it. I kind of think the post form is far too complex already, and if I wasn't trying to be faithful to the original Futaba layout I would cut down on the number of inputs in it even more. I think the usefulness really is limited to mostly cases where you post multiple images to a thread, and although I don't think this should be prevented, I think it should be encouraged either, especially not at the expense of clarity.
>>654
I'm interested to know what you would remove from the post form.
The subject field is mostly useless. Few people use it, and when it's used it's often annoying. The password field is just confusing and nobody really uses it anyway. In Kareha, it's hidden and auto-generated, but I guess this could be further refined, for instance so that a post with an empty password (in case Javascript is off) can be deleted from the same IP only. I am a bit torn on the "No file" checkbox. On the one hand, it serves a purpose by warning people when they try to reply without pressing Reply, but on the other hand people still manage to do that.
If it wasn't for sage, the link field would also be mostly useless. If I was starting from scratch, replacing it with a checkbox for sage might be a better choice. Not to worry, though, I know lots of people don't like that, and I'm not about to do it.
>The subject field is mostly useless. Few people use it, and when it's used it's often annoying.
True. I was thinking that maybe having a subject field only for the first post in a thread might be better.
>deleted from the same IP
Might cause problems when proxies are used. I like the way Kareha's password is auto-generated. Is it saved as a cookie or does it go by IP? I haven't checked out the code.
>I am a bit torn on the "No file" checkbox.
Yeah.. I've never really seen a need for it.
>If I was starting from scratch, replacing it with a checkbox for sage might be a better choice
The sage checkbox is a great idea, and the people that don't like it protest it because it's not traditional. It does, however, make things a lot less confusing.
I believe that if there's enough people that want a feature then it should be added. It can't be that hard to add features that can be enabled/disabled in config.pl to keep everyone happy.
omgg!!1111111 i think all imageboards should be in japanese cause that's how it should be kawaii desu ne nyoro~n etc
> I like the way Kareha's password is auto-generated. Is it saved as a cookie or does it go by IP?
It is generated client-side by Javascript, and saved in a cookie. This means it breaks if somebody disables either Javascript or cookies, which is a bit of a problem.
I'm trying to customize my silly anonymous, and I did the following:
return cfg_expand("%G% %I%",
G => ["Abdul Shaheed","Abdulwahab","Al-basir","Anayatullah","Arshad","Bakhtiyar","Bashir","Ehteshaam","Fajyaz","Fakhr-al-din","Fareed","Fazil","Habib","Haidar","Hakeem","Hasim","Hayatullah","Jakeem","Jalal","Jannuh","Jawhar","Jibraill","Kaleem","Kamran","Kareem","Katerah","Laeeque","Maaheem","Mahmud","Mahrukh","Muammar","Muhaymin","Mujahiddin","Musad","Nadeem","Nadir","Naveed","Nisar","Nur-al-din","Osman","Qaiser","Rafiq","Rashid","Riyad","Rizwan","Roshan","Saad","Sadiq","Sadaqat","Saeed","Salah-al-din","Salim","Sarmad","Seemaab","Shabbir","Shahmeer","Tayib","Tufail","Usama","Wajahat","Waseem","Xavier","Yahya","Yasin","Yusua","Zaheer","Zaid","Zeeshan","Zuhaib","Zuhra"],
I => ["A'men","Akir","Aarez","Aasir","Aayan","Abdiwahad","Abdullah","Abyan","Akhtar","Akhyar","Aziz","Badi","Bahij","Bahadur","Bakht","Bashar","Didar","Din","Enaan","Fadil","Faizan","Faruk","Fawzi","Gamal","Ghalib","Ghassan","Gulzar","Hadja","Hafiz","Harith","Hatim","Jawwad","Jihad","Kalil","Mahad","Majid","Momin","Mudassar","Murtaza","Naim","Najir","Obaid","Ovais","Owbada","Qaiser","Qasim","Rafat","Raghid","Redouane","Rohail","Sabir","Saeed","Sahul","Salih","Samien","Sayyid","Seki","Shahwaiz","Tawil","Tayib","Thahseen","Thufail","Waleed","Yasir","Zahir","Zaid","Ziyad","Zubair"],
);
But I get a 500 Internal Server Error when I try and run wakaba.pl. :( What did I mess up in there?