summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Discussions.pm
AgeCommit message (Collapse)AuthorFilesLines
2018-12-06Increase maximum post board lengthYorhel1-1/+1
2018-02-08Store d+ pages in the DB as versioned entries + use markdownYorhel1-2/+2
This touches a bunch of things: - Adds a new first-class database entry type - Removes the d+.+.+ BBCode link syntax, adds a new d+#+ and d+#+.+ link syntax (references have been updated where possible) - Adds a new dependency on Text::MultiMarkdown
2017-01-25Ignore duplicate board IDs in threat editYorhel1-1/+1
https://vndb.org/t2520.209
2016-04-11Handler::Discussions: Increase boards limitYorhel1-1/+1
2016-01-23L10N: Intern all VNDB::Handler::* stuffYorhel1-65/+65
Most of these replacements were automated. This ended up being less work than I had anticipated. I also fixed a few minor bugs along the way, but probably introduced more than I fixed.
2016-01-20L10N: Intern all VNDB::Util::* stuffYorhel1-3/+3
With some related edits in other parts of the code, mostly due to interface changes to htmlRevision() and htmlFormError(). Trivial replacements were automated by a super awesome script.
2016-01-19Move some VNDB::L10N stuff to VNDB::Func + intern VNDB::FuncYorhel1-9/+7
2016-01-17L10N: Intern blood_types/genders/(char|staff)_roles/discussion_boardsYorhel1-15/+15
I definitely needed the Tie::IxHash thing for these.
2016-01-14Handler::Discussions: Some search query normalization fixesYorhel1-0/+3
2015-11-26Handler::Discussions: Fix display of username when editing postYorhel1-1/+1
2015-11-11Misc poll improvementsYorhel1-101/+99
- Merged polls table into threads table. Not much of a storage/performance difference, and it's a bit simpler this way. - Merged DB::Polls into DB::Discussions. Mainly because of the above change in DB structure. - Add option to remove an existing poll. - Allow preview and recast to be changed without deleting the votes - Set preview option by default. Because personal preferences. :) - Minor form validation differences
2015-11-10Merge branch 'poll' of https://github.com/morkt/vndb into pollsYorhel1-1/+160
2015-11-10various fixes.morkt1-45/+46
2015-11-10Show full date/time at edit history and thread listingsYorhel1-1/+1
Having the time display is quite useful. It does make the listings look more cluttered, but meh.
2015-10-18discussion board polls.morkt1-1/+159
2015-09-20Update usage kv_validate() to upcoming TUWF 1.0Yorhel1-2/+2
And added new 'page' and 'id' templates for more strict validation.
2015-09-17Handler::Discussions: Add search box to non-item thread listsYorhel1-22/+31
As requested at https://vndb.org/t6862.28
2015-09-07Handler::Discussions: Fix two bugs introduced in last commitYorhel1-1/+1
2015-09-07Handler::Discussions: Use ts_headline() to format search resultsYorhel1-3/+13
And also fix strip_bb_tags() to be case-insensitive and fix a bug in converting the query into a tsquery.
2015-09-07Handler::Discussions: Remove formcode from search formYorhel1-1/+1
It's not verified and only uglifies the URLs.
2015-09-07Implement discussion board search functionYorhel1-7/+112
Inspired by wakaranai's implementation at https://github.com/morkt/vndb/commit/b852c87ad145fdaaa09c79b6378dd819b46f7e87 This version is different in a number of aspects: - Separate search functions for title search and fulltext post search. Perhaps not the most convenient option, but the downside of a combined search is that if the query matches the threads' title, then all of the posts in that thread will show up in the results. This didn't seem very useful. - Sorting is based purely on post date. Rank-based sort is slow without a separate caching column, and in my opinion not all that useful. Implementation differences: - Integrated in the existing DB::Discussions functions, so less code to maintain and more code reuse. - No separate caching column for the tsvector, a functional index is used instead. This is a bit slower (index results need to be re-checked against the actual messages, hence the slowdown), but has the advantage of smaller database dumps and less complexity in updating the cache. Things to fix or look at: - Highlighting of the search query in message contents. - Allow or-style query matching
2015-02-03Disallow editing your own post after one weekYorhel1-3/+9
2014-12-22DB: Merge name/title fetching in main fetching functionsYorhel1-1/+1
And call bbSubstLinks() from Handler::Discussions rather than DB::Discussions - it's not a transformation that the DB layer should do, IMO.
2012-01-25Do most of the table striping in CSSYorhel1-5/+3
Using CSS3 selectors. This is a more elegant approach, and since browser support for CSS3 selectors isn't as crap as it used to be I can finally make use of them.
2011-08-24Handler/Discussions.pm: thread creation limit lowered to 5QCyph1-1/+1
2011-08-22Don't allow regular users to create more than 10 threads a dayYorhel1-0/+5
This prevents a naive spambot from doing much damage.
2011-04-29Bugfix: Allow unhiding of posts by modsYorhel1-1/+1
2011-03-09Don't allow users to edit their post when it was deletedYorhel1-1/+2
2011-02-02Added /t/all - a listing of all recently replied to threadsYorhel1-6/+7
2011-01-27TUWF: Added tag name to several end() callsYorhel1-5/+5
Haven't found any bugs this way, yet. I doubt there'll be any problems, but it's a nice new feature that could help quite a bit. :-D
2011-01-25TUWF: Initial convert from YAWF to TUWFYorhel1-18/+18
There may still be some bugs present and I've only converted the points where TUWF is incompatible with YAWF. The new TUWF features are not in use yet, I'll do that later on. Note that, in order to run the new code, TUWF must be installed on your system. The configuration for the TransAdmin plugin has also changed. Other than that there shouldn't be any issues.
2010-12-23Converted the show_list pref. to users_prefs and inverted the valueYorhel1-1/+1
In the users_prefs table, the default value should evaluate to 'false' in Perl, so show_list had to be inverted to hide_list.
2010-12-20Added advanced page-browsing tabs to threadsYorhel1-2/+2
2010-12-13Disable "Don't update last modified field" by default for modsYorhel1-1/+0
2010-12-10Added a "general discussions" boardYorhel1-8/+9
So that the "db" board is useful again.
2010-11-28Merge branch 'beta'Yorhel1-2/+2
Conflicts: lib/VNDB/Handler/Discussions.pm
2010-11-16Handler::Discussions: Added 'noindex' meta tag to all discussion pagesYorhel1-3/+3
According to my HTTP logs, google searches are commonly used by spammers to find threads to spam. Not having the discussion board indexed also removes the reason for spammers to spam in the first place. Unfortunately, this is a long-term change; search engines don't update their index that fast. :-(
2010-11-13Added <link> elements for the related atom feeds to some pagesYorhel1-2/+2
2010-11-11Handler::Discussions: Fixed formcode bug with the quick reply featureYorhel1-0/+1
2010-11-06Fixed cross-site request forgery vulnerabilitiesYorhel1-1/+2
2010-11-03Handler::Discussions: Increased thread number display at /t for db and vYorhel1-1/+1
Those boards are most active.
2010-11-03Handler::Discussions: Only display board names different from the filterYorhel1-5/+6
Looks cleaner now.
2010-11-03Compressed the thread listing into one row per threadYorhel1-14/+11
2010-01-26Made a start on the notification systemYorhel1-6/+0
The current setup should be able to handle all kinds of notifications, though only PMs are implemented at this point. More to come.
2009-11-27DB: Abstracted all ORDER BY clauses in the DB abstraction layerYorhel1-2/+2
The ORDER BY was previously specified using an 'order' argument, which would then be directly inserted into the query. The new method is the same as what I used for the public API: two 'sort' and 'reverse' arguments. This should be less error-prone and more readable. This changes quite a lot of code, so I hope I haven't forgotten to update something along the way.
2009-10-24Discussions: Don't allow bots to index user discussion indexesYorhel1-1/+1
2009-10-10Display number of unread posts in user menuYorhel1-0/+5
Instead of displaying the total number of threads. Posts are marked as read when the thread is opened.
2009-09-12Handler::Discussions: Full reply button + larger textareaYorhel1-2/+7
2009-09-12Added reminders to write English to several form fieldsYorhel1-2/+5
2009-08-18htmlForm(): Don't generate subform id from the titleYorhel1-1/+1
The subform id is now passed to htmlForm() as first formpart item. This way the id won't change even if the title does, which will be the case with the interface translation.