summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/FormHTML.pm
AgeCommit message (Collapse)AuthorFilesLines
2018-02-08Store d+ pages in the DB as versioned entries + use markdownYorhel1-1/+3
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
2016-07-02Validate release dates + move validation out of vndb.plYorhel1-0/+1
2016-01-20L10N: Intern all VNDB::Util::* stuffYorhel1-30/+34
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.
2015-11-11Misc poll improvementsYorhel1-2/+2
- 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 'master' into pollmorkt1-2/+2
2015-11-01Switch to HTML5 doctype + s/acronym/abbr/ + s/ / /eYorhel1-2/+2
I'd have preferred to stick with XHTML 1.0, but unfortunately browsers won't allow you to use modern Javascript APIs with an older doctype. Note that most pages don't actually validate correctly as HTML5, I'm relying on browsers to be lenient. In either case, I'd like VNDB to stay valid XML (XHTML5, then), and luckily that shouldn't be a problem.
2015-10-18discussion board polls.morkt1-0/+2
2015-10-03Handle JSON data natively when processing form dataYorhel1-3/+4
No more need for extra json_encode/json_decode calls, and the form_compare() function is more lenient w.r.t. integer/string comparison. This is the improvement I described in commit ed86cfd12b0bed7352e2be525b8e63cb4d6d5448
2015-10-01VNEdit: Give error on duplicate alias + improved msg on id/page errorYorhel1-1/+2
2015-09-20formValidate: Created templates for gtin and editsum fieldsYorhel1-2/+7
2015-09-07Handler::Discussions: Remove formcode from search formYorhel1-3/+6
It's not verified and only uglifies the URLs.
2015-09-07Implement discussion board search functionYorhel1-1/+2
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
2014-10-20Fix tabindex on edit summaryYorhel1-1/+1
Per https://vndb.org/t5864
2014-10-16Fix tabindex on the date selectorYorhel1-1/+1
2014-10-16Add a positive tabindex to all generated form elementsYorhel1-12/+16
This should result in a more natural tabbing order, skipping over any links around the forms.
2011-12-29Added duplicate check when adding VNsYorhel1-5/+12
2011-05-17Bugfix: Don't allow duplicate trait names/aliasses within the same groupYorhel1-1/+6
This makes the denied trait listing useful again.
2011-04-30Cleaned up permissionsYorhel1-5/+1
- Removed 'hist' and 'mod', weren't used at all - Merged 'del' and 'lock' into a single 'dbmod'
2011-01-27TUWF: Added tag name to several end() callsYorhel1-6/+6
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-27TUWF: No need for manual XML-escaping in textareas anymoreYorhel1-12/+2
TUWF::XML does not automatically convert '\n' to '<br />' anymore, so it's now safe to pass the contents of the textarea to its HTML function.
2011-01-25TUWF: Initial convert from YAWF to TUWFYorhel1-2/+4
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 notify_announce and notify_dbedit preferencesYorhel1-1/+1
And renamed notify_dbedit to notify_nodbedit, since the default is to provide a notify on a database edit. Also fixed a few bugs along the way.
2010-12-23Converted the show_nsfw preference to use the users_prefs tableYorhel1-1/+1
2010-12-17Check for editsum = description and give an easier to understand errorYorhel1-1/+1
The check is quite basic and you can easily get around it. It's just intended to warn about common mistakes.
2010-11-06Fixed cross-site request forgery vulnerabilitiesYorhel1-2/+6
2010-01-24Versioned the deleting and locking of database entriesYorhel1-1/+13
This is implemented by adding ihid (item hidden) and ilock (item locked) columns to the changes table, The (vn|release|producer).(hidden|locked) columns now work as a cache, refering to the changes.(ihid|ilock) columns with changes.id = (vn|release|producer).latest. The cached columns are updated automatically each time a new revision is inserted. This is a pretty large change, bugs are quite likely.
2009-09-12Added reminders to write English to several form fieldsYorhel1-1/+4
2009-09-06L10N: Converted Util::FormHTMLYorhel1-76/+14
Removed the idea mapping field names to readable strings, it was never really a clean solution. The messages did become less readable now, but oh well...
2009-08-18htmlForm(): Don't generate subform id from the titleYorhel1-5/+4
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.
2009-08-15More sensible placing of the submit button on /v+/tagmodYorhel1-17/+17
2009-08-04Implemented double-post prevention3dB1-0/+1
-- Created a subroutine to check for any recent posts made by a user -- Added double-post checking and error messages to the form handler & html generator
2009-07-05Added spoiler options for tag filters on VN searchYorhel1-2/+10
2009-07-04Implemented copy-add release featureYorhel1-0/+1
2009-07-04Implemented support for multilingual releasesYorhel1-5/+6
The 'language' column in releases_rev has been replaced with a releases_lang table. As this is quite a big change, there may still be bugs floating around somewhere.
2009-05-22<optgroup> support for the select input type in FormHTMLYorhel1-2/+10
The third argument in the options item list is considered as the label for the optgroup the item is in.
2009-05-21Implemented the date selector in JavaScriptYorhel1-15/+1
This way, we can just use our internal database date format for client-side communication as well. The calculation is now done in a centralized place in script.js, rather than all over the place in the Perl code. This'll also make it possible to make the date selector more interactive. But that doesn't have a very high priority at the moment, the good old three-selection-boxes-thing works fine. Current implementation has only been tested on FF3, though I doubt other browsers will complain.
2009-05-10Moved date input field from Handler/Releases.pm to Util/FormHTML.pmYorhel1-0/+19
2009-03-22Merge branch 'tagging' into betaYorhel1-2/+12
Conflicts: lib/VNDB/DB/Discussions.pm util/updates/update_2.3.sql
2009-03-21Replacing all occurences of 'discussion tags' with 'discussion boards'Yorhel1-2/+2
Which is a more accurate description, and doesn't confuse with the tagging system. Note than even all internal uses of the word 'tag' have been replaced, as I'm not a huge fan of different terminology in the code and UI. This update might break some things related to the discussion board.
2009-03-14Separated table for tag aliases + proper checking of unique aliases and namesYorhel1-1/+7
2009-02-28Improvements in vntagmod table layout, and saving votes in the DB worksYorhel1-0/+2
And a "Don't forget to submit" text, and various important bugfixes, and... geez, time for a coke with some cookies!
2009-02-22Renaming tags.aliases to tags.aliasYorhel1-1/+0
Consistent with all other aliases field
2009-02-21Link to CSS entry on Wikipedia to the user profile pagesYorhel1-1/+3
...for the clueless people.
2009-02-15Check for existing tag with the same name on tag creation or editYorhel1-0/+3
2009-01-10Fixed message when uploaded VN image >500kBYorhel1-1/+1
2009-01-10Limit account creation to one account a day per IPYorhel1-0/+1
This would at least annoy the people who'll try to manipulate the rankings, and will make finding duplicate users a bit easier. (Not that it's really a problem at the moment)
2008-12-26'All items' tab to multi-tab formsYorhel1-0/+3
2008-12-14Fixed all XHTML validation bugs I could findYorhel1-2/+2
With two exceptions: - Empty browse tables (/u1/list, /u3/hist, ..) - Empty <tbody> on /v+/edit and /v/new I'm not purist enough to work around those bugs. (well, maybe I'll fix the empty browse table thing, as it's not really user friendly either)
2008-12-09Code cleanup: removed leading spaces and combined ↵Yorhel1-1/+1
DB/{Votes,VNList,WishList}.pm into ULists.pm
2008-12-06Send -> sentYorhel1-1/+1
(21:22:44) Bigblah: "Form could not be send:" (21:22:51) Bigblah: i suggest "sent"