ansiwave / wavecore

ANSIWAVE BBS server
The Unlicense
18 stars 1 forks source link

The ability to delete postings #3

Open lostfile1 opened 2 years ago

lostfile1 commented 2 years ago

Maybe some sort of interface that lets moderators delete posts or stop someone from posting for a period of time or move them to another subboard also I think maybe the ability to upload . ansiwave files to sub boards or your profile banner so say you're working on something offline and you can just plop it on the server once you're done with it

lostfile1 commented 2 years ago

http://brokenansi.ddns.net/#board:a9hVjJDW9Sh3rq8K-dWFYEZ2uuqJ_d2qUzSaUmzQPrE Here's the link to my board. You can only use the client to log in at the moment but I got it partly working

oakes commented 2 years ago

Nice, i connected to it. Yeah i need to add a way to delete (rather than hide) individual posts. You can add modpurge to a user but that'll delete everything they wrote. I just need to make it work on individual posts too.

You can upload ansiwave files but only via the web version right now (it has the + file button). I wanted to add it to the terminal version but i need to figure out the UI since you can't show a file picker dialog box there.

lostfile1 commented 2 years ago

Maybe make a way without using the UI. Maybe somehow passing a few parameters through the client. You can just upload it that way for example Ansiwave -u [destination URL]

lostfile1 commented 2 years ago

I also came up with another cool idea. Maybe add some sort of way to have like animated or moving ansi art using some form of scripting nah That might be going a little too crazy

oakes commented 2 years ago

I even want to allow making games eventually, using wavescript to write them (the existing music language). The idea is that you could draw images as ansi art and write code directly next to it. With that kind of system you could make ansi art animations too.

lostfile1 commented 2 years ago

Oh cool

lostfile1 commented 2 years ago

https://youtu.be/mE0bqZ6MyT4

oakes commented 2 years ago

NICE! If you want the web version to work, you can build it here by running nimble emscripten. However, you will first want to change the default board in wavecore on this line. After editing that, you can nimble install in the wavecore project, then build ansiweb. All the frontend files will end up in ansiweb's build folder, and you just need to copy all of them into your bbs directory. Since nginx is serving that directory, you should be able to see it when you open http://brokenansi.ddns.net

lostfile1 commented 2 years ago

Screenshot_2022-06-25_12-44-02 build failed even after i did nimble emscripten

oakes commented 2 years ago

Seems like it is using an old copy of ansiwave, can you try deleting the ~/.nimble/pkgs directory?

oakes commented 2 years ago

Ah fuck that looks like a mistake I made, actually. I will fix it tonight but I'm not at my computer right now

lostfile1 commented 2 years ago

Ah fuck that looks like a mistake I made, actually. I will fix it tonight but I'm not at my computer right now

It was the ansiweb I was trying to compile

oakes commented 2 years ago

@lostfile1 if you pull the latest commit from ansiweb it should compile now.

lostfile1 commented 2 years ago

got it to build

lostfile1 commented 2 years ago

Screenshot_2022-06-26_08-00-26 this happends every time i try to post some thing

oakes commented 2 years ago

Are you posting from the terminal or the web version?

lostfile1 commented 2 years ago

Are you posting from the terminal or the web version?

Web

oakes commented 2 years ago

I forgot that you also need to change this line. It's still pointing to my server. Just make it an empty string like "" then re-install wavecore and rebuild ansiweb. Hopefully that will help.

lostfile1 commented 2 years ago

I forgot that you also need to change this line. It's still pointing to my server. Just make it an empty string like "" then re-install wavecore and rebuild ansiweb. Hopefully that will help.

All right, I'll give it a try

lostfile1 commented 2 years ago

do i have to remove all of the post, urls or no

oakes commented 2 years ago

Just the one on line 11 should be good, it just need to be an empty string.

lostfile1 commented 2 years ago

Just the one on line 11 should be good, it just need to be an empty string.

himm it still doesnt work i will just pull a fresh copy from github and try again

lostfile1 commented 2 years ago

himm everytime i edit or post some thing on the web interface it would set the url to /#

oakes commented 2 years ago

Do you see any errors in the dev console of your browser?

lostfile1 commented 2 years ago

Do you see any errors in the dev console of your browser?

i rebuilt wavecore and webansi and that fixed it

oakes commented 2 years ago

Nice, good to hear.

oakes commented 2 years ago

FYI i updated ansiweb so you can set the defaults in the config.nims file, so you don't need to edit/reinstall wavecore like before. Basically you just need to edit ansiweb's config.nims to have this at the top:

switch("define", "defaultGetAddress:")
switch("define", "defaultPostAddress:")
switch("define", "defaultBoard:YOUR_BOARD_KEY_HERE")
lostfile1 commented 2 years ago

thanks

lostfile1 commented 2 years ago

my site should be up and running heres the meta board http://brokenansi.ddns.net/#type:post,id:WnOVZbC5i2_nePyUsOJLwoZrGcR43OfpiXm5exkOUeaughKnORz6gs3MNKBRGLvHfPGcPOHWPfQ54mnMEtYsDA,board:a9hVjJDW9Sh3rq8K-dWFYEZ2uuqJ_d2qUzSaUmzQPrE