Heyuri / Uploader

2ちゃん uploader!
MIT License
2 stars 0 forks source link

teh intergration is near! #20

Closed hachikuji-san closed 5 months ago

hachikuji-san commented 5 months ago

Thanks to pen-san for writing it, we now haev a user upload board creation that is organized rlly well. The imp0rtant part for now is making it ez to update into up and fitting in with the existing files. User boards are now stored in /var/location/of/script/user/boards which should make updating easy. Kaguya-san can copy all the pre-existing boards into the new board directory if he wants, but it isn't necersarry, it's just that newly created boards using the new script will be in the boards directory.

I've just pushed a modified version of pen's board creation script that should be easy to update into up if it ever needs to be.

Here are some screenshots, they are touched up versions of pen's scripts.

  1. Audio and video use default thumbnails, the thumbnails are just shitty clipart i found, you should probably change them on your end to something custom. https://up.heyuri.net/src/3473.png
  2. Board creation script pen made but with slight modifications and different css https://up.heyuri.net/src/3474.png
  3. And finally this is the board index (it only shows listed boards). Rather than having a mess of html it reads from the boards directory instead, thus making it automatic. Therefore making moderation easier because when you delete a spammer's board it wont show up on the index anymore and you dont have to manually delete the html. https://up.heyuri.net/src/3475.png
hachikuji-san commented 5 months ago

maek sure to clear cookies

kaguy4 commented 5 months ago

All sounds good! I think it needs a little more explanation in the admin panel, but that should be just a matter of adding some html.

but what is this error I get while trying to create a user board?

Failed to write configuration. contact the admin

hachikuji-san commented 5 months ago

but what is this error I get while trying to create a user board?

check permissions. It sounds liek it tries to create the board but fails bcoz it doesn't have perms to do it.

kaguy4 commented 5 months ago

u were right. Seems it's pretty much perfect functionality wise, I'll open source soon if you confirm it's ready ヽ(´∇`)ノ One thing that is missing from user boards is the custom CSS option, it's not a major feature but is it possible to re-implement?

kaguy4 commented 5 months ago

it's also missing the "Password for Upload" option, which is a little more important

kaguy4 commented 5 months ago

and file prefixes (´・ω・`)

hachikuji-san commented 5 months ago

Most recent commit adds both of those (prefix and password for upload). I'll write something for custom CSS soon.

kaguy4 commented 5 months ago

Naisu, thx!

File prefixes should probably allow alphanumeric only ( and _ ) while creation, special characters b0rk files (and possibly cause security issues?)

hachikuji-san commented 5 months ago

i added the stuff for custom css, which is implemented roughly the same as Nakura did it originally for simplicity sake. There's one more thing to do and then you can maek it open source, but i'll do that after i take my nap.

kaguy4 commented 5 months ago

yay!

but something in ?goingto=ownersettings seems to be b0rk for me image

hachikuji-san commented 5 months ago

ah that's because i didn't finish it b4 i went to bed. commit https://github.com/Heyuri/Uploader/commit/092a739885f822104ac7649bec0b01490b7c44d0 should implement it fully. in any case i think this is ready to open-source when ur ready to do so.

kaguy4 commented 5 months ago

everything looks good, thx! I have one more thing in my mind, will create a seperate issue for it