path: root/lib/VNDB/
AgeCommit message (Collapse)AuthorFilesLines
2020-09-02BBCode: Consolidate bb2html & bb2text + only convert ids in thread titlesYorhel1-69/+63
Fixing bb2html to only convert ids would complicate options a lot, adding a new formatting function to only convert ids would make sense, but then all formatting functions kind of look alike, so I figured a single bb_format() to support all use cases may be a better approach. Trigger for this was that people do (understandably) put [spoiler] in thread titles, and that should not be interpreted as the spoiler tag.
2020-08-31BBCode: Add support for w+ and w+.+ dblinksYorhel1-2/+2
2020-08-24reviews: Get rid of summary field & split mini/full reviewsYorhel1-7/+7
Much to my disappointment, people don't write proper summaries and, as such, summaries are not useful to be considered a "short review" on their own right. This necessitates splitting the reviews onto different pages.
2020-07-22BBCode: Add support for [b], [i], [s], and [u] formatting codesYorhel1-13/+46
2020-02-13v2rw: WIP: Convert character pagesYorhel1-4/+11
This uses an alternative (non-JS) approach to spoiler hiding, which is both much simpler to implement and properly handles all cases. Downside is that it requires a page reload. It also allows direct linking to a character page with a particular view, but I'm not entirely sure if this is a welcome feature. This is a WIP because it doesn't display instances yet.
2019-11-09BBCode: Fix resolving of staff aliasesYorhel1-1/+1
2019-10-16v2rw: Convert staff adding/editing formYorhel1-2/+49
This is the first major editing form to be converted, so I'm expecting a little breakage. A good chunk of this code has been copied from v3. In terms of the UI there has been a small change: aliases that are still referenced do not have the 'remove' link and instead have a flag that shows that they are still referenced. This ought to be a bit friendlier than throwing an error message after the user has submitted the form. Some other things I'd like to improve in this form: - BBCode preview - Pasting in external links and letting the form figure out the Pixiv ID, etc. - Or perhaps even: Integrate AniDB/Wikidata search/autocompletion.
2019-09-26Disallow usernames that look like DB identifiers + minor BBCode fixYorhel1-1/+1
A '-' before or after a DB identifier now counts as a "word character", meaning in "d5-something" won't turn that "d5" into a link.
2019-06-21CSS-based character descriptionszx141-1/+1
Squashed commit of the following: commit bfc1de9f73f93981445b3451ba6087ef1de9ce36 Author: zx14 <> Date: Thu Jun 20 20:19:39 2019 +0659 Fix issues, pointed out in commit c2b250b24e87d1b5c9589770fcff65f848f2e8f0 Author: zx14 <> Date: Sat Jun 15 22:27:21 2019 +0659 CSS-based character descriptions
2018-02-08Store d+ pages in the DB as versioned entries + use markdownYorhel1-4/+4
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
2018-01-08BBCode: Fix parsing of tags in [something[url=..]Yorhel1-5/+5 The old bb2html() blindly replaced [url=..] anywhere inside the matched token, and did not require that the [url=..] was itself the token. I've made the tag matching more strict to make sure that [something[url=..] is now properly tokenized. This also affects other tags, so it's likely that there's some input that the old bb2html() would still have handled differently.
2018-01-06BBCode: Fix word boundary check when dblink is the first tokenYorhel1-2/+2
2018-01-06Add bb2text() and use it for release notes & open graph tagsYorhel1-1/+24
2018-01-06Rewrite bb2html() to be more flexibleYorhel1-0/+229
This is based on the API that I described in It's mostly bug-compatible with the old bb2html(), main differences: - <br /> -> <br> for no reason - Doesn't sporadically add a wrong </div> - $rmwhitespace now also after [/code] Most of the test cases were contributed by flan <>