Please tell me how to add a paypal button to the top of my wakaba pages; putting it in the rules section and clicking just brings up the error of "no file selected"...not optimal behavior.
Is it some kind of form element? The rules section might be inside the posting form... That's maybe not optimal, though, I should change it. Lacking a better alternative, go edit futaba_style.pl and add it where it fits.
yep, it's a form...I was hoping I wouldn't have to messthe perl, since I have no pearl knowledge whatsoever...le sigh
futaba_style.pl is mostly just templates, though, and those are pretty much just HTML code with some extensions, so it's easy enough to mess with.
*_cries and whines_*
OK, new webserver for me ( http://www.servage.net ), paid, 162~odd GB transfer/month ++nice!
Problem: wakaba.pl refuses to generate the needed html files. When I run wakaba.pl ( http://www.humblefool.com/art/wakaba.pl ), there's a flash and i'm looking at a 404 for http://www.humblefool.com/art/wakaba.html . HELP! Only changes to config.pl are passwords and SQL, permissions should all be set to 775 (all directories).
Ok, that's weird. If it can't create the file, it should throw an error. This seems to imply that it's generating the file somewhere ELSE.
Try searching for wakaba.html. Also, try adding this at the top of the script, after the use CGI::Carp ...
line:
use Cwd; die getcwd();
Strageness continues; I can access the admin panel by manually typing the address (?task=admin), and when I attempt to rebuild caches, wakaba tells me that the dir is unwritable.
Your script add returns an error message telling me of an error at line 3, other than that, nothing.
Well, that's progress - at least it's properly saying the directory is unwriteable and not just failing silently.
Is the /art/ directory ITSELF set to 775, then?
yes, it is. I've also submitted a support ticket, so we'll see where that goes.
WAHa, is there a bit of perl I could incert that would allow me to see, when it returns a "directory not writable" error, what directory isn't writable to it?
Please say yes.
Let's see... Find this line in the file wakautils.pl
and in the function write_array()
:
open FILE,">$file" or die "Couldn't write to directory";
And change it to:
open FILE,">$file" or die "Couldn't write to file $file";
Maybe I should change that in the distro too, it's more informative.
IT WORKS NOW!
What changed, I don't know. Perhaps the .htaccess file was turned on? I know they said that it might take a while for that to happen... anyway, here's the new boards, for immidate linking to wakachan:
http://www.humblefool.com/art/wakaba.html
http://www.humblefool.com/news/wakaba.html
http://www.humblefool.com/spt/wakaba.html
http://www.humblefool.com/music/wakaba.html
Other ones will be added on request.
Post on the Wakachan board about them, they'll get more attention there.
What's the no-cache bit that has to go in the .htaccess file? Mine doesn't seem to be working very well...or is this firefox's fault for being smart and user-side caching?
And is naming it example.htaccess and leaving it in the individual board files OK?
It needs to be named just .htaccess
. Leaving it in the individual board directories is OK, but it won't work unless the right modules are loaded in the Apache config, like mod_header
.
time to revive my personal problem thread:
Now I'm bandying about with adsense on http://humblefool.com/spt/wakaba.html . Only problem is, it doesn't work! http://humblefool.com/spt/include/footer.html shows the ads, but not the main page? What the hell!
looks like the problem is that google doesn't like the code changed - in any way. wakaba's flattening to one line breaks the code: is this integral, or is there anyway around it?
Like without adding a IEFRAME.
Wow, that's pretty dumb. I guess you could comment out a line in wakautils.pl
... Let's see...
In compile_template()
, comment out this line:
$str=~s/\n\s*/ /sg;
WAHOOO!
So much for don't be evil, ya?
Steps for those interested:
-In wakautils.pl, comment $str=~s/\n\s*/ /sg;
-Then insert the ad in futuba_style.pl; it cannot be in an inculde due to squashing. Mine are right above the </body></html> tag.