Wondering how to allow for uploading of other filetypes (mp3, swf, etc) for use with the different icons and disabling renaming them. Messing with ALLOW_UNKNOWN and MUNGE_UNKNOWN didn't work, so.
FILETYPES is probably what you want... it's at the end of config.pl...
Yes. Some slightly older versions didn't have any useful examples for FILETYPES, but the latest versions do.
Well, it should be fairly obvious from the examples in the newest config files.
I'm looking at 2.0.4. If it was so obvious I wouldn't need to ask.
Well, you have something like this:
use constant FILETYPES => (
mp3 => 'icons/audio-mp3.png',
ogg => 'icons/audio-ogg.png',
swf => 'icons/flash.png',
);
And then you make sure those image files exist in the icons/
directory. The rest should be magic.
I tried that before, it sticks me with a 'file type not supported' message.
Oops, it seems there is a bug there. It'll work if you set ALLOW_UNKNOWN to 1, but not otherwise. This is not intended; I'll fix it and pack up a new version.
Aha, there it goes. But.. it's not showing the icons.
Ah.. I got it. Need to set it as extras/icons/blah.png, it's only icons/blah.png by default.
Fixed version here: http://wakaba.c3.cx/sup/kareha.pl/1108157572/25
Kareha 2.03 still exhibits this bug...
also (whilst i'm here and people may read the gripes)
2. The default password is the admin password! Any user can just go to any page, tick the box next to any post, and click the bottom "Delete" button. PAFF! its gone.
> Kareha 2.03 still exhibits this bug...
Yes, I know, it's supposed to be fixed in the mythical next update.
> 1. The "manage" link doesnt appear on any pages.
> 2. The default password is the admin password! Any user can just go to any page, tick the box next to any post, and click the bottom "Delete" button. PAFF! its gone.
Uh, neither of those should be true. Especially not the second. I think you are definitely being confused there.
Actually, if you're running in mode_image, the first is true because there is no management page in Kareha. You delete stuff by putting the admin password in the password entry for the delete button.