The Wakaba and Kareha support thread, part 2 (1000)

1 Name: !WAHa.06x36 : 2007-10-11 06:19 ID:K4vOYfq0 [Del]

This thread is for all your simple questions about installing and running Wakaba or Kareha, that just require quick answers. Please don't create new threads for issues like that, post them in here instead.

Before posting, check that the question has not already been answered in this thread, or in the previous thread: http://wakaba.c3.cx/sup/kareha.pl/1141929669/

Questions about "500 Internal Server Errors" go in this thread: http://wakaba.c3.cx/sup/kareha.pl/1109033191/

801 Name: Anonymous : 2010-04-04 20:35 ID:mnrbeJWf [Del]

>>800
Thank you. Is there a way to apply this to all external links automatically, though? Other than asking everybody to do that when they post.

Sorry, I'm not very clear x__x;

802 Name: Anonymous : 2010-04-05 03:55 ID:Heaven [Del]

>>801
Yes, edit the source. Should be obvious enough, find where it writes links and change it.

803 Name: Codecub : 2010-04-06 13:23 ID:6xVj0PVP (Image: 942x703 png, 337 kb) [Del]

src/1270585400974.png: 942x703, 337 kb

hey im creating a imageboard so far ive done the front page but i installed wakaba properly and i cant figure out how do iadd seperate pages for each board its so confusing and i wanna add a recent images /posts thing like on 4chan
thx

804 Name: Anonymous : 2010-04-08 23:58 ID:Heaven [Del]

>>803
Can't you idiots come up with something new and interesting instead of blatantly copying 4chan and its frontpage all the damn time?

805 Name: Anonymous : 2010-04-10 19:02 ID:9NZ+PXOK [Del]

I am having trouble running kareha.pl from my web browser. It only displays the source code. All folders and files are CHMOD to 755. I verified that I can run perl scripts with this simple code the user >>141 offered before:

#!/usr/bin/perl
print "Content-Type: text/plain\n\n";
print "it works";

Please someone help me create the HTML pages!

806 Name: Anonymous : 2010-04-14 08:52 ID:cVlpsD0U [Del]

Here is my collection of errors which seem to appear randomly:
-I get a blank page and nothing happens
-I get the "BAREWORD ... not allowed while "strict subs" in use"-Error.
-"Attempt to reload config.pl aborted. Compilation failed in require at /opt/lampp/htdocs/altercon.net/cgi-bin/wakaba/wakaba.pl line 16. BEGIN failed--compilation aborted at /opt/lampp/htdocs/altercon.net/cgi-bin/wakaba/wakaba.pl line 16. "
-The "Global symbol "$parent_res" requires explicit package name"-Error

I run the script in my cgi-bin.
the mentioned perl test works.

What i tried:
First, i got these errors from a fresh install.
Used wget to obtain the zip
used unzip to unzip it
used emacs to edit the config.pl
used chmod 755 wakaba.pl captcha.pl

I also tried setting the wakaba directory to 755 and 777

Horrible

807 Name: !WAHa.06x36 : 2010-04-14 09:13 ID:Heaven [Del]

>>806

That sounds mostly like some kind of horribly broken server.

808 Post deleted by user.

809 Name: Anon : 2010-04-16 12:45 ID:8GEBsYSr [Del]

I'm getting this error:

[Fri Apr 16 20:38:32 2010] [error] [client MY IP] script '/var/www/vhosts/mysite.com/subdomains/mysite/httpdocs/url_handler.php' not found or unable to stat

810 Name: Anonymous : 2010-04-16 20:07 ID:Heaven [Del]

>>809
That has nothing to do with wakaba or kareha. Figure out what piece of software uses url_handler.php, if any. Hell, that might just be some idiot who's trying to hit a file that doesn't exist.

811 Name: Anonymous : 2010-04-17 06:27 ID:AXmtZR5h [Del]

Well, when I try and visit my site with wakaba I get a internal server error, etc... and I get this in access logs:

[Sat Apr 17 13:13:20 2010] [error] Can't locate config.pl in @INC (@INC contains: . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 /etc/httpd) at /var/www/vhosts/mysite.com/httpdocs/wakaba.pl line 16.\nBEGIN failed--compilation aorted

812 Name: : 2010-04-25 05:47 ID:Heaven [Del]

You really should catch those right to left-overrides.

813 Name: Anonymous : 2010-04-27 06:57 ID:Heaven [Del]

>>812
Awwww, why? It's entertaining.

814 Name: Anonymous : 2010-05-08 18:08 ID:5uAS5BhN [Del]

There a way to post as an admin?

It's a nub question, but if there's a way, I'd like to know.

815 Name: Anonymous : 2010-05-09 03:46 ID:Jf9eB6qB [Del]

>>814
Kareha supports capcodes out-of-the-box.

In Wakaba you have the opportunity to post with HTML. If you want capcodes, you'll have to create them yourself. It's not really that hard, even I managed it and I suck at programming.

816 Name: Anonymous : 2010-05-10 11:02 ID:3Ggr/qz0 [Del]

i dont have any thumbnails, why is that?

817 Name: Anonymous : 2010-05-11 04:05 ID:KOqayyLq [Del]

how do i delete [burichan] [futaba] etc in admin bar? when i remove it from my index.html it's ok for a while and then, after f5ing board, it comes back. whats going on?

818 Name: Anonymous : 2010-05-11 05:16 ID:Heaven [Del]

>>817
Edit your templates.pl. The html files are of course generated by wakaba.

819 Name: Anonymous : 2010-05-11 15:34 ID:2rP76EC+ [Del]

An odd question on Wakaba, but i really need to know:
How to configure a board this way: replying to any thread will never make it go up, no matter it's position or how old or new it is?
Thanks a lot.

820 Name: Anonymous : 2010-05-11 15:37 ID:2rP76EC+ [Del]

>>819
I mean, the threads must always remain in order of they're creation.

821 Name: Anonymous : 2010-05-13 07:57 ID:Heaven [Del]

>>819-820
just comment out (or remove) this section:

if($parent) # bumping
{
# check for sage, or too many replies
unless($email=~/sage/i or sage_count($parent_res)>MAX_RES)
{
$sth=$dbh->prepare("UPDATE ".SQL_TABLE." SET lasthit=$time WHERE num=? OR parent=?;") or make_error(S_SQLFAIL);
$sth->execute($parent,$parent) or make_error(S_SQLFAIL);
}
}

or change the first line there to if(!NEVER_BUMP && $parent) # bumping and put eval "use constant NEVER_BUMP => 0" unless (defined &NEVER_BUMP); in config_defaults.pl and use constant NEVER_BUMP => 1; in config.pl.

822 Name: Anonymous : 2010-05-13 11:29 ID:vNmlQBsR (Image: 705x769 jpg, 69 kb) [Del]

src/1273775394252.jpg: 705x769, 69 kb

>>821
Thanks man.

823 Name: !WAHa.06x36 : 2010-05-13 11:47 ID:Heaven [Del]

>>821-822

Why not just read the config and/or the code you commented out, and set MAX_RES to 0?

824 Name: Anonymous : 2010-05-13 12:24 ID:Heaven [Del]

>>823
why bother checking $parent and $email=~/sage/i if you're not going to bump the thread anyway?

825 Name: Anonymous : 2010-05-13 13:43 ID:vNmlQBsR [Del]

How to disable Email field?

826 Name: Anonymous : 2010-05-13 14:39 ID:Heaven [Del]

>>825
FORCED_ANONYMOUS

827 Name: Anonymous : 2010-05-13 15:28 ID:vNmlQBsR [Del]

>>826
This also removes the Name field.
I only want to remove Email.

828 Post deleted by moderator.

829 Name: Anonymous : 2010-05-24 12:23 ID:e1RtSeQL [Del]

Ok, i searched these two threads, but could not find what's the problem.

I made my own server (ubuntu is the OS), on which i set up apache2, mySql, phpmyadmin.
In phpmyadmin, i made a database testChan, for which i didn't specify any tables (when tried to manually create tables, i got myself a list of options for the table, and i didn't know what to set).

I edited config.pl to set passwords, salt, and SQL options ->
i set SQL options as default, set passwords and users, and set SQL_DBI_SOURCE as DBI:mysql:database=testChan;host=localhost

Ran perl wakaba.pl in commandline (got some problems in firefox perl.

Got the same errors as post no. 113 in the first support thread, but wakaba.html got created.
http://localhost/wakaba.html, and i see a page! But, uploading anything == nothing is done. It doesn't work.

Rerun perl wakaba.pl, got only 303 go west, and the page stays the same.

I'm pretty much beginner to the whole SQL thingy, so please, bear with me, and tell me what shall i troubleshoot first, as my knowledge is poor enough to make me not know where the problem lies.

830 Name: !WAHa.06x36 : 2010-05-24 15:20 ID:Heaven [Del]

> Ran perl wakaba.pl in commandline

Don't do that. It breaks things.

831 Name: Anonymous : 2010-05-25 13:15 ID:gby7m83e [Del]

>>830
Temporarily I don't have internet connection on my server to redownload perl to make it run under firefox (and, even if, how do I do that under Ubuntu?), but I will try it.

In the meantime, two questions. First has been asked already in my response. Second is, what's the difference between commandline and firefox in terms of perl script? Why does 'commandline' perl break things? Shouldn't it be the same thing?

832 Name: Anonymous : 2010-05-25 17:12 ID:Heaven [Del]

>>831
On the command line, none of the CGI environment is defined, and the file permissions for any of the cached HTML files will be incorrect.

Regarding Firefox and Ubuntu: that completely doesn't matter. Just access http://www.whatevercrapchan.com/yourboard/wakaba.pl with any web browser on any operating system, and if it doesn't build the files and send you to the index, you screwed something up (or you have a terrible web host).

833 Name: Anonymous : 2010-05-25 17:15 ID:Heaven [Del]

>>831
perl runs on the server. it doesn't run in firefox. running it from the command line doesn't set all the environment variables to tell it things like where the script is.

834 Name: Anonymous : 2010-05-26 14:28 ID:HYTi3n6n [Del]

>>832
I am my own webhost, and that means that I screwed up.

So, currently, i made sude libapache2-mod-perl2 is installed, and I ran http://localhost/testchan/wakaba.pl

All it did was a prompt to download wakaba.pl!

So, here's the problem. Googling tells me nothing, nothing at all.
Any help, please?

835 Name: Anonymous : 2010-05-26 14:47 ID:HYTi3n6n [Del]

Ok, found it. ALMOST, that is
Added CGI to apache2.conf

But then...
403 forbidden error. 777 or 755 to the whole of wakaba folder with -R. There are some questions about that in that thread, however, none of them are anwsered. Merely ignored.

836 Name: !WAHa.06x36 : 2010-05-26 16:27 ID:Heaven [Del]

>>834

One more time: Do not use mod_perl.

837 Name: Anonymous : 2010-05-27 00:23 ID:hnFKrfXq [Del]

>>836
What should I use, then? All tutorials that I've found on google about apache & perl relied on mod_perl to execute these scripts.
Without that and CGI added in apache2.conf all that happened when running via Firefox was a file download prompt.

Your wiki & install documentation is somewhat poor on that matter, unless I'm blind || don't know where to look for :(

838 Name: Anonymous : 2010-05-27 08:59 ID:Heaven [Del]

839 Name: Anonymous : 2010-06-15 14:28 ID:oDRdPdM6 [Del]

hi all
I'm totally noob and just installed Wakaba on my host. How can I make many boards on it, instead of a single one?
And is there a way I can add an age-rating for images? (I've seen this on few imageboards, it's like 15+, 18+ marks when uploading images)

840 Name: Anonymous : 2010-06-15 19:31 ID:Heaven [Del]

>>839

  • by installing it more than once.
  • you would have to write code for that. it is possible, and that's an easy task if you know how to program.

841 Name: Anonymous : 2010-06-29 12:42 ID:agHEGDJF [Del]

How to make user remain in thread after replying, not redirected to the main page?

842 Name: Anonymous : 2010-07-01 10:17 ID:Heaven [Del]

>>841
By adding the feature yourself.
Look for where it sends a redirect (search for 303), and change that line.

843 Name: Anonymous : 2010-07-05 06:56 ID:gpkxzm5C [Del]

>test

844 Name: Anonymous : 2010-07-06 05:34 ID:Heaven [Del]

>>841
There are several patches for it posted on this board.

845 Name: Anonymous : 2010-07-06 06:32 ID:DdfYk4Ym [Del]

>>844
where can i find it?

846 Name: Anonymous : 2010-07-06 17:19 ID:Heaven [Del]

>>845
There's one in the "Wakaba/Kareha Patches" thread. Click All Threads at the top of this page.

That should get you started. Browse around.

847 Name: Anonymous : 2010-07-07 20:27 ID:dQf5hF71 [Del]

My host is really stupid and does not allow profanity. How would I go about installing a wordfilter? Thanks :3

848 Post deleted by moderator.

849 Name: Anonymous : 2010-07-08 07:39 ID:Heaven [Del]

>>847
Get a less stupid host.

850 Name: Anonymous : 2010-07-11 00:59 ID:Heaven [Del]

>>847
make a list of everything that is profanity (without including anything that isn't profanity).
once you've completed that impossible task, turning it into a regex and adding a die 'no profanity, please.' if $comment =~ /.../; line is trivial.

851 Name: Anonymous : 2010-07-12 14:08 ID:nQGKjvz/ [Del]

I finally got everything to work, but the only way it will work without giving me permission errors is if i set the folder's user to apache's username/group (apache:apache).

I have a feeling this is quite insecure. I have gone through all the threads here as well as multiple other ones throughout the internet.

I also noticed that the only way the test.pl file will work is if i append -w to the #!usr/bin/perl.

852 Name: !WAHa.06x36 : 2010-07-12 14:30 ID:Heaven [Del]

>>851

For more security, you should set up Apache to switch to another user account before running scripts, using something like suexec. I'm no Apache expert, so don't ask me for particulars on that, though.

853 Name: Anonymous : 2010-07-12 14:55 ID:nQGKjvz/ [Del]

I ended up switching the apache user/group in httpd.conf to user/group "nobody".

This has solved my problems. Thanks for the suexec tip, it's what led me to this solution

854 Name: Enthree : 2010-07-14 09:51 ID:IVaU0LhX [Del]

Okay, I have a single question. I see to have multiple boards you must install wakaba more than once, but how do you create links to all the boards at the top or on the side like a normal chan website?

If this involves very difficult coding, then I am looking for someone to help me out in their spare time.

855 Name: Anonymous : 2010-07-14 21:33 ID:Heaven [Del]

>>854
Write it yourself, it's just an html frame.

856 Name: Enthree : 2010-07-15 12:02 ID:IVaU0LhX [Del]

>>855

Yep, cause if I knew how to do that, I would've done it without asking, now wouldn't I. I don't know how to do that! Besides I've got kusaba now, so If you guys still want to help me, Id be willing to go back over to wakaba, but I just need some help.

857 Name: Anonymous : 2010-07-15 14:49 ID:Heaven [Del]

>>856
if you don't know how to do that, you shouldn't be running a web site. if you knew anything at all, you wouldn't touch kusaba with a 10-lightyear pole.

858 Name: !!hClRCwQo : 2010-07-18 00:40 ID:uisBsqfu [Del]

how to delete the 1st thread by the user who created this thread himself ,and not effect the following reply ?

In my board, if the user delete the first thread which he've created, all the replies in this thread would also be deleted.this make all discussion disappear.I think this is not a good method.

so,how to setup kareha ?

Thanks all !

859 Name: Anonymous : 2010-07-18 07:34 ID:Heaven [Del]

>>858
Edit config.pl. Look for "delete".

860 Name: !!hClRCwQo : 2010-07-18 07:57 ID:uisBsqfu [Del]

>>859

thank you very much for answer the question !
Will wakaba and kareha update future ?

861 Name: Anonymous : 2010-07-24 04:32 ID:Heaven [Del]

>>856
Edit include/header.html. If you don't know how to create HTML links, look it up on w3schools.

And as previously mentioned, Kusaba is shit and a security nightmare.

>>860
I think Waha is pretty much done with Wakaba/Kareha. Updates are normally just various bug fixes.

862 Name: Anonymous : 2010-07-25 02:08 ID:eh+cYn7S [Del]

Just wondering, can this software be uploaded to any free host such as Webs?

863 Name: Anonymous : 2010-07-25 04:11 ID:Heaven [Del]

>>862
No. The host must have proper support for Perl scripts with MySQL/SQLite bindings. There are (probably) free hosts out there which support these things, but you're better off using payed shared hosting with Perl support. NearlyFreeSpeech supports Wakaba/Kareha just fine and their prices are fairly cheap.

864 Name: hime : 2010-08-01 03:57 ID:/6JlWvZ2 [Del]

Hi, I'm not a coder or anything, I suggested the idea of a word filter for a joke to an admin of an image board running wakaba, and he said it's not possible.

I've checked around and couldn't find any information besides perl scripting, which I'm not sure if that's what I'm looking for.

To be short, is it possible to word filter on wakaba? And if it is, could anyone tell me?

865 Name: Anonymous : 2010-08-01 07:11 ID:Heaven [Del]

>>864
It's tremendously stupid, and you ought to be well aware of the myriad reasons for that, but of course it's possible. Since Wakaba doesn't supply a pre-packed filter (and for very good reason) you'll have to do it by hand, but it's seriously not hard. Just put some s/from/to/; before the >>1 substitute in sub format_comment. But word filters are really really dumb, and you should consider otherwise.

(If you have trouble understanding that, you shouldn't be messing with the code.)

866 Name: Anonymous : 2010-08-02 00:12 ID:fvEOoS9f [Del]

Everytime I trying to run the .pl script it just takes me to a page with all of the code in text format. Oh and the server supports pearl and CGI. Do the files have to go into the cgi bin because I put them in the pulbic_html folder.

867 Name: Anonymous : 2010-08-02 05:51 ID:Heaven [Del]

>>866
No, you should definitely not put them in cgi-bin.

What you do need to do is figure out how to get your server to execute Perl.

868 Name: Anonymous : 2010-08-02 13:15 ID:Heaven [Del]

>>866
Get a proper host. If it's your server, configure it properly.

869 Name: hime : 2010-08-04 08:37 ID:/6JlWvZ2 [Del]

Oh I know I shouldn't be messing with code, I'm just a secretary or sorts since admin is busy. I appreciate your help, even though you think it's silly. I honestly think filters are silly too, I just want to joke around for a day.

I hope he can understand that though, blargh.

Thanks!

870 Name: Anonymous : 2010-08-08 09:25 ID:Heaven [Del]

Is it actually possible to parse the code in network includes? I am using <const get_http("http://www.example.com/include/header.html")> in Kareha's header.html (which is on another server, hence the reason I need this the first place), but the template code doesn't get processed.

I suppose I could always use crontab to fetch the file automatically or put the template code in templates.pl, but I'd like to try getting the above-mentioned working first. Any ideas?

871 Post deleted by user.

872 Name: Frenzied : 2010-08-10 23:39 ID:IVaU0LhX [Del]

Okay, this might be a bit complicated, I would just like a basic idea of how to do it, but how would I go about setting up an email field, fully functional, and be able to add noko, for thread replies, like on popular chans.

Sorry if this is a dumb question, but I didn't see it after I set wakaba up.

873 Post deleted by user.

874 Post deleted by user.

875 Name: Chris : 2010-08-11 03:43 ID:XTzvxUeL [Del]

Hi,
How do i moderate/manage bans? I'm using Kareha, image mode. I can see the 'ban ip' link next to posts in the admin screen, but how do i keep track of bans, lift them, etc.?

876 Name: Anonymous : 2010-08-11 07:41 ID:Heaven [Del]

>>875
Ideally you're banning people you don't want around, so lifting bans should be a rare event. Kareha handles bans by writing to .htaccess and letting the server handle it. (which also means it's not useful out of the box unless you're running Apache, incidentally) So, edit that file on the server, find the "Deny from" for the IP, and delete that line.

877 Name: Chris : 2010-08-11 14:39 ID:XTzvxUeL [Del]

thx... new prob, I can't find htaccess, not at root, not in the folder i have my kareha folder. It's not there. I have an old one in another subfolder (which is doing a 301 for a domain I don't use anymore). hidden files are set to visible...

878 Name: Chris : 2010-08-11 14:45 ID:XTzvxUeL [Del]

maybe it creates .htaccess when i do my first ban?

879 Post deleted by user.

880 Name: Chris : 2010-08-11 14:59 ID:XTzvxUeL [Del]

and i don't want to ask a lot of dumb questions I can answer just by trial and error... but last thing, how do I add text/images/banners above or below the input fields? I've edited the 'rules' file a little (basically i want to tell readers what's up, not to post snuff, in the long run maybe add a ad banner) but editing that file is inelegant. is there a better way?

881 Name: Anonymous : 2010-08-11 17:28 ID:Heaven [Del]

>>880
How is that inelegant? That's what the file is for.

882 Name: Anonymous : 2010-08-11 20:08 ID:Heaven [Del]

Kareha has an option which allows editing files from the admin interface (hint: ADMIN_EDITABLE_FILES.) You can use that if you're too lazy to edit rules.html/.htaccess/whatever from FTP, but read the safety warnings first.

883 Name: Anonymous : 2010-08-11 21:13 ID:XTzvxUeL [Del]

well i'll get it going either way, thx for your help. board works great.

884 Name: Chris : 2010-08-11 21:35 ID:XTzvxUeL [Del]

btw here is my implementation so far: http://sidemission.com/theboard/index.html

as far as IDs are concerned do you have a suggested way of telling my readers to ID themselves as the 'real' one?

885 Name: Anonymous : 2010-08-12 08:28 ID:Heaven [Del]

Telling the users to use tripcodes is enough, isn't it? You could also activate forced IDs which should be able to prevent impersonation as long as the poster retains the same IP.

886 Name: Anonymous : 2010-08-12 13:50 ID:Heaven [Del]

How do i pass variables to the template file? I've managed to pass them to POST_PANEL_TEMPLATE from wakaba.pl, but I also need to pass the same variable to MANAGER_HEAD_INCLUDE, to use it with <var $foo>, and I can't seem to find out how.

887 Name: Anonymous : 2010-08-12 17:25 ID:Heaven [Del]

>>886
Oh, and I forgot to say that this is Wakaba I'm talking about.

888 Name: Frenzied : 2010-08-12 20:18 ID:IVaU0LhX [Del]

I have a couple questions.
How do I activate an email form with noko.

And, there is a problem where all teh thumbnails are working, it just shows "No Thumbnail" with a link to the image. Can anyone help me?

889 Name: Chris : 2010-08-12 22:47 ID:XTzvxUeL [Del]

is there a way for users to add links to images and embed youtube?

890 Post deleted by user.

891 Name: Anonymous : 2010-08-13 01:17 ID:Heaven [Del]

>>886
>>887
Never mind, I figured it out.

>>888
It's fairy simple, you just edit the function post_stuff to look for "noko", and if it's there redirect to the thread/post instead of to the board index.

As for your problem with thumbnails, imagemagick may not be installed properly.

892 Name: Frenzied : 2010-08-13 02:10 ID:IVaU0LhX [Del]

>>891

Thanks but if you could be just a bit clearer on where I should put noko?

Oh and also, I don't have access to the host, so I can't install imagemagick. Unfortunately. (It does have to be installed on the server right? Not just the ftp I have?)

893 Name: Anonymous : 2010-08-13 06:33 ID:Heaven [Del]

>>892
You don't understand servers, and should probably stay away from anything resembling installing software.

As for noko, there's no "right" answer as long as it works. I'd probably stuff it before the forced_anon check, because anything below that won't guarantee the existence of $email. (although I really wonder why that's checked before running clean_string / decode_string)

something like:

if ($email=~/noko/i) { $email=''; $noko=1; }

then at the bottom of that function,

if ($noko) { $where=(the url to that thread); } else { $where=HTML_SELF; }
make_http_forward($where,ALTERNATE_REDIRECT);

You could do it 1000 other ways too, but that's probably the least intrusive.

894 Name: Frenzied : 2010-08-13 12:58 ID:IVaU0LhX [Del]

>>893
That's kind've why I I started trying to do this. To learn. So if you could just let me know if it's possible for me to fix the problem of no thumbnail.

If you have any questions first just let me know, really appreciate the help thus far, thanks.

895 Name: Anonymous : 2010-08-13 19:23 ID:Heaven [Del]

>>894
Well, to start: there's nothing special about a system-wide installation of something. If you can get Wakaba to work, you can (typically) get anything to run. You need to (a) identify what platform you're running on (Linux, FreeBSD, Winshit, etc. which libc version is installed; is it x86, amd64, or something weird; etc.), and (b) compile a version of ImageMagick -- specifically the convert program -- that'll run on that system. Once you accomplish that, you can put it wherever you want. Then fix the config.pl to point to where you've uploaded it and it "should" work.

This sort of thing is way easier if you have a shell login, particularly if you're running on a server that has a C compiler installed. (Of course, pretty much anything is easier with a login than screwing around with ftp.)

896 Name: Anonymous : 2010-08-13 19:39 ID:tWNY9/j1 [Del]

How do I use the ALTERNATE_REDIRECT option in the config? Do I change the '0' to 'javascript' or what? Sorry if this has been asked before/I'm extremely naive but I've googled and don't know how to do it

897 Post deleted by moderator.

898 Name: Anonymous : 2010-08-14 06:42 ID:Heaven [Del]

>>896
You can set it to 1, or "javascript", or "magical purple hyenas" for that matter.

But if your board is working, don't touch it.

899 Post deleted by user.

900 Name: Anonymous : 2010-08-14 09:01 ID:Heaven [Del]

fwiw: I posted a proper patch implementing >>893 in the patch thread (http://wakaba.c3.cx/sup/kareha.pl/1256252904/10)

This thread has been closed. You cannot post in this thread any longer.