summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNBrowse.pm
AgeCommit message (Collapse)AuthorFilesLines
2011-02-03Cleaner and more efficient method of checking for the &fil= paramYorhel1-2/+2
With the new TUWF, kv_validate() returns undef when the param isn't present and an empty string if it is, but left empty. This is a more efficient way to differentiate between empty and nonexistent than the previous YAWF-method of grepping all param names.
2011-01-27L10N: Renamed _rbrowse_filters to _js_fil_filtersYorhel1-1/+1
2011-01-27TUWF: Added tag name to several end() callsYorhel1-1/+1
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: Use the uri_escape() provided by TUWFYorhel1-1/+1
2011-01-27TUWF: Made use of the new cookie_prefix featureYorhel1-1/+1
Configuration change: Make sure you more the cookie_prefix option from %S to %O. (It's now a TUWF option rather than a VNDB one)
2011-01-25TUWF: Initial convert from YAWF to TUWFYorhel1-12/+12
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.
2011-01-01V|R Browse: Don't apply saved filters when an empty filter string is givenYorhel1-1/+2
2011-01-01Bugfix: properly escape search query in links query stringYorhel1-2/+3
2011-01-01More infrastructural changes to accomodate for the permanent filtersYorhel1-2/+2
- Added a 'prefs' option to htmlFooter() to add preference data for use by Javascript. - Added an /xml/prefs.xml URL for setting preferences from JS. - Added 'filter_*' keys to the prefs_key ENUM - Load filters by default on VN and Release browser
2011-01-01Implemented filFetchDB() and converted the VN/Release browser to use itYorhel1-35/+14
This will correctly handle fetching stuff from the database when permanent filters are enabled. This update also removes compatibility with some old VN browse URLs. The old 'ti' and 'te' (tag include/exclude) query parameters are now ignored, and searching for a language in the query string (e.g. "q=English") won't enable the language filter.
2010-12-21Pass VN tag filters by ID rather than nameYorhel1-27/+13
This makes the UI slightly uglier and less intuitive. I'll see if I can find a way around that. This update is required for the permanent browsing filters to be fast and reliable.
2010-11-28Handler::VNBrowse: Fixed bug with assigning to $fil->{lang}Yorhel1-1/+1
This caused the search to break when no language filters were set.
2010-11-28VN Filter Selector: Added "original language" filterYorhel1-1/+1
The original language is the language of the first release of the VN, and is cached in vn.c_olang. (Geez, the vn table has more caching columns than actual information >.>)
2010-11-27Handler::VNBrowse: Apply search query and filters when changing first charYorhel1-1/+1
2010-11-27VN Filter Selector: Added "has anime" filterYorhel1-1/+1
Also requested several times before.
2010-11-27VN Filter Selector: Added length field filterYorhel1-1/+1
Has been requested quite often, now finally implemented.
2010-11-27Replaced old VN advanced options with the new filter selection systemYorhel1-76/+36
Had to fix some bugs here and there and add some new functionality to the abstractions at some places, but it appears to be working now. There are still a few TODOs left, I'll get to those in a bit.
2010-11-02Prefix all cookies with a configurable cookie_prefixYorhel1-1/+1
This replaces the "cookie_auth" setting, and applies to all cookies in use by VNDB.
2010-10-31Bugfix: only redirect VN search to VN page if page=1Yorhel1-1/+1
2009-11-27DB: Abstracted all ORDER BY clauses in the DB abstraction layerYorhel1-9/+1
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-11-27Display VN ratings on tag pages as wellYorhel1-46/+1
With this method I managed to reuse the VN list table code for the lists on both the VN browser and the tag pages. And optimized away the dbTagVNs() function while I was at it (dbVNGet() is powerful enough)
2009-11-14SQL: Allow NULL for vn.c_popularityYorhel1-2/+2
Sorting from least to most popular VN make sense now, you won't have to wade through those entries without any vote at all.
2009-11-14SQL: Cached bayesian VN rating and vote countsYorhel1-3/+11
Was a good idea after all...
2009-11-14Added bayesian rating and vote count to the VN listYorhel1-1/+7
It's even realtime! To my surprise this calculation isn't very heavy, or PostgreSQL is just extremely fast. The GetVN query on /v/all takes 100ms in the worst case (instead of the usual 30-60ms). Can always cache this later on.
2009-10-19Use 'no spoilers' as default spoiler level for tagsYorhel1-1/+1
2009-10-10List all known languages on /r and /v/all instead of only those in useYorhel1-1/+1
Performance improvement of ~15ms for all release and VN browse pages. There are in total 20 known languages in the DB, and 12 of them are actually used (i.e. a release in that language exists). Which means 8 of the listed language filters won't produce any results (yet), but I'd say that's an accaptable trade-off.
2009-10-05JS: Moved, split and rewrote release <-> VN & producer linkingYorhel1-1/+1
+ removed last traces of forms.js + converted code to use tables, as that is easier to expand more accurate for this purpose. The reason I probably didn't use tables before was that the innerHTML property doesn't work on tr elements. The split was mainly because the producer linking is going to be expanded with an additional field later on.
2009-09-24L10N: Translated the 'ALL' char and fixed footer TL bugYorhel1-1/+1
2009-09-24Replaced all uses of monthstr() with datestr()Yorhel1-1/+1
Interface consistency.
2009-09-05L10N: Converted Handler::VNBrowse and Handler::VNEditYorhel1-19/+22
2009-08-17L10N: Moved some functions from Func.pm to L10N.pm and added Russian quant() ↵Yorhel1-1/+1
and age()
2009-08-17L10N: Converted platform namesYorhel1-5/+5
2009-08-17L10N: Converted user ranks and language namesYorhel1-6/+6
User ranks are easy... but the language names are used everywhere!
2009-07-05Tag exclude filters on VN searchYorhel1-7/+15
2009-07-05Added spoiler options for tag filters on VN searchYorhel1-1/+3
2009-07-05Apply & clear buttons on advanced VN search + note about boolean andYorhel1-2/+7
2009-07-05Auto-complete the tag filters on VN searchYorhel1-1/+1
2009-07-05Made a start on the multiple-tag-VN-searchYorhel1-13/+51
TODO: - spoiler settings? - auto-complete tag names - exclude filter - Improved UI? current location isn't very intuitive - Improve previous tag browser to make use of the VN search?
2009-07-04Re-added language parsing in VN search boxYorhel1-2/+9
Because many people still link to things like /v/all?q=English. Platform searches are less common, so I doubt many people care about URL compatibility for that,
2009-07-04Separated VN search filters from search boxYorhel1-35/+24
It was a rather stupid and buggy idea...
2009-06-06Removed some leftover code of the category filters on /vYorhel1-1/+1
2009-05-31Tabs on v/r/p/g search fieldsYorhel1-4/+1
This should make a nice connection between the few kinds of database entries we have.
2009-05-24Removed category filters from /v/allYorhel1-32/+1
The tags work fine already. I'll keep the categories on the VN pages and in the history for now, though.
2009-05-10Added search field on release browserYorhel1-2/+2
2009-03-25Made search box match on g+Yorhel1-1/+1
2009-01-10Added VN popularity rankingYorhel1-2/+4
The following query should be run periodically to update the rankings: SELECT update_vnpopularity(); I'll fix Multi::Maintenance to do this automatically.
2008-12-14Fixed all XHTML validation bugs I could findYorhel1-3/+3
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-13Fixed HTML bug with the VN search filtersYorhel1-25/+25
2008-12-13FF2 style fixesYorhel1-4/+4
Three-box-layout didn't work very well together with the screenshots on the homepage and the CSS icon hack needed a &nbsp; to get rid of a strange top margin. With this, the following browsers should render all pages correctly: FF2, FF3 and the latest Opera, Safari and Chrome
2008-12-11Basic userpage + recent votes to VN pages + long-object-float bugfixYorhel1-1/+1
These changes are all pretty much related, so couldn't really do that in multiple commits.