minilauta / miniboard

Minimalistic oldschool imageboard software
MIT License
7 stars 5 forks source link

Design & implement thread hiding #21

Closed Anonyymi closed 1 year ago

Anonyymi commented 2 years ago

Design and implement a mechanism for hiding threads.

Options:

Anonyymi commented 2 years ago

Partially blocked by https://github.com/Anonyymi/miniboard/issues/8 because this option must be available via the menu implemented in that issue.

ghost commented 2 years ago

Not quite sure what ur asking here... hope this helps tho. /////////// css is commonly used to hide and show stuff. All you have to do is make your php include a div or class (for example the php writes ( div class="myDiv"), then have the php write to it in order close out the div or class at the end of the post. then, you can simply use css to show or hide the div. https://www.w3schools.com/css/css_display_visibility.asp

https://www.w3schools.com/tags/tag_div.ASP

Anonyymi commented 2 years ago

This is a feature that implements user-specific hiding of threads. User can hide a thread from their view if they don't want to see it. The problem here is to keep track of hidden threads on a per user basis + still fill a page with threads even if user has hidden some.

ghost commented 2 years ago

ahhh vichan did that with js I believe. Not sure if it was persistent tho , like if user changed browser. I would highly suggest installing vichan somewhere, then get the js functions that you want working - then you could easily isolate and "borrow" the code.

Anonyymi commented 2 years ago

We don't want to borrow code. We simply write efficient minimalistic code to achieve our requirements.

ghost commented 2 years ago

That is very respectable. I always like to look and see how others do stuff tho :)

Anonyymi commented 1 year ago

I'm working on this at the moment. Using PHP Session ID cookie to distinguish clients and handle hiding in database with separate table. It's simple but requires refactoring and polish before I commit it.

Anonyymi commented 1 year ago

Done.