I want to design forum just like this one. Any advise on how to go about it?
What do you mean by "design"? Do you mean setup your own Spirit instance in some host/VPS/cloud?
Yes, is there a documentation that I can use to set this up?
No, there is not. If you know how to deploy a Django project, then you know how to deploy Spirit. There are plenty of tutorials out there for every possible cloud/VPS/hosting. The local installation instructions is all there is, and all you should need to get started.
That said, if all you want is to push a button and get Spirit deployed, then try spirit-heroku. I believe that still works. Heroku is pretty expensive, though, but you can try it for free.
Does a forum post has a delete button ?
Admin/mods can delete a post. Regular users cannot.
@nitely, Hi thanks for the reply, I am actually designing a forum like this in Django from scratch. Is there any list of features available so that I can implement all the necessary features in my forum app?
@agentx, yes, see https://spirit.readthedocs.io…
Hi @nitely, thanks for the reply. I have a question regarding marking comments as read. I am currently marking comments as read when a user visits a topic. Is there any better method to Implement this?
@agentx, for bookmarking?, I save the first comment when a page is visited (because the user may have JS disabled), and then save the rest using JS and the waypoints library. To mark a notification as read, I do it when visiting the topic.
@nitely, Hi thanks for the tips. Do you know the upper limit of topics and comments that the user can post in a day. Or you do have a mechanism for preventing spam?
There's nothing built-in sadly. I rely on users reporting comments, and then delete them using the shell. There is a rate-limit but it only prevents post flooding. To prevent real spam (not from legit users) I'd like to create a system that flags users that have a low quantity of posts if they post links. I guess requiring mod/admin approval for the first few user messages would work for small forums too, and a queue where trusted users can approve messages would work for bigger forums (that's what stackoverflow does).
That doesn't stop bad users though. I like the slashdot moderation system: https://slashdot.org/moderati… , but it' overkill for small/medium forums, which is what Spirit is going is to be used for anyway.
okay, I have been trying to use this https://django-ratelimit.read… library for rate-limiting but it is not working. Any solution for that ?
No idea, I implemented my own solution, and it's part of Spirit and undocumented. IIRC it's very similar to that library.