summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Discussions
AgeCommit message (Collapse)AuthorFilesLines
2019-12-08Discussions: Add exception for uid 2 in sql_visible_threads()Yorhel1-0/+1
Turns out the recent update didn't allow me to moderate private threads anymore. :( I decided not make it a boardmod feature this time, one person for moderating private threads is enough.
2019-12-05v2rw: Convert thread reply form to ElmYorhel1-17/+33
So we can apply the new preview functionality. I got rid of the "Go advanced" button, because there's really nothing advanced about it.
2019-12-01Discussions: Do not highlight post when nagivating to the "last post"Yorhel2-4/+11
That behavior was more distracting, especially when the intention of the link isn't to link to that post in particular, but just to the more recent part of the thread. As an additional advantage, this doesn't rely on the t#.# redirect anymore, this making browsing the forums slightly faster.
2019-12-01v2rw: Convert thread display + poll votingYorhel3-12/+215
I did not reimplement the 'poll_recast' and 'poll_preview' settings, these actions are now always permitted. Updated CSS a little bit to highlight the linked post and fix the double border at the bottom. The nice thing about the sql_visible_threads() function I wrote earlier is that is can also be used for access control on a single thread. More code re-use. \o/
2019-11-19Minor refactor: Use dbPage() in scalar context where applicableYorhel1-2/+2
Requires the latest git version of TUWF.
2019-11-19Discussions: Fix index linkYorhel1-1/+1
2019-11-19Fix consistency between discussion counter in the dbentry tabs and actual ↵Yorhel1-5/+9
listing i.e. private and hidden threads are now included in the counter if you can see those threads.
2019-11-19v2rw: Convert discussion board listings + change link structure a bitYorhel4-11/+84
A board-wide "tab"-like structure rather than breadcrumbs, has a more consistent feeling.
2019-11-15Discussions::Lib: Use same WHERE clause for counting and listingYorhel1-3/+3
2019-11-15Move pubskin fetching responsibility to VNWeb::HTML::framework_Yorhel1-2/+2
Requiring callers to fetch the right fields and pass it along to framework_() just seems brittle. This implementation requires an extra query but does make an effort to avoid fetching the skin and css when it's not needed.
2019-11-15threadlist: Automatically hide threads the user should not see + display ↵Yorhel3-5/+11
hidden/private flags
2019-11-15v2rw: Convert discussion board indexYorhel3-64/+129
Not super happy with the layout of the thread listing table, maybe I'll revisit that after converting the board listings. Also not super happy with the overall (lack of) structure in the board listing pages, should be able to find something for that as well.
2019-11-15v2rw: Convert discussion board searchYorhel1-0/+210
With minor styling improvements and full pagination for thread title search. I did combine a few queries which I initially separated for performance reasons. A few quick benchmarks show that it's fast enough, but I'll have to see how it performs in production.
2019-10-30v2rw: Convert /u+/postsYorhel1-0/+72
Simple conversion, no real changes other than that the new version has full pagination.