summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Tags.pm
AgeCommit message (Collapse)AuthorFilesLines
2011-01-27TUWF: Added tag name to several end() callsYorhel1-18/+18
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: 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-43/+47
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-04Added checkboxes to VN tagmod and implemented the overrule logicYorhel1-10/+56
This finalizes the moderation tag vote overrule. And Damnit, the logic behind saving the tags to the database isn't fun, I hope I haven't made any mistakes there.
2011-01-03Added tag overrule indicators to tag link browser and VN tag editorYorhel1-2/+3
This is the second step in adding support for overruling tag votes by moderators. This required a different approach to calculating the score in dbTagStats(). For some reason this approach turns out to be slightly faster as well...
2011-01-01Added saving notes to filter selector and applied filFetchDB()Yorhel1-2/+3
This finalizes the permanent filters feature.
2010-12-22Don't allow page > 100 or sorting on username or title on tag link browserYorhel1-4/+4
Performance. Those featues are hardly used, but they can block other visitors when used in bad combinations.
2010-12-21Pass VN tag filters by ID rather than nameYorhel1-6/+10
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-12-14Handler::Tags: Added noindex to /g/linksYorhel1-1/+1
It's mostly a moderation thing, shouldn't get indexed.
2010-12-13Added links to /g/links from /g and /g+Yorhel1-0/+2
That should be all relevant pages, I guess.
2010-12-13Added "who voted on this tag"-links on /v+/tagmod (to /g/links)Yorhel1-2/+6
2010-12-13Removed /u+/tags and replaced/added links to /g/links?u=XYorhel1-83/+1
The new tag link browser has replaced the crappy old user-tags-browser.
2010-12-13Added advanced tag link browserYorhel1-0/+117
Still need to add some links to the browser to parts of the site.
2010-11-06Fixed cross-site request forgery vulnerabilitiesYorhel1-0/+2
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-03-13Handler::Tags: Re-added /g/debugYorhel1-0/+31
2010-02-10Handler::Tags: Increased maxlength of the tag descriptionsYorhel1-1/+1
2010-01-24Handler::Tags: Only allow tagmods to create top-level tagsYorhel1-1/+1
The current error message isn't really intuitive, though...
2010-01-11Tags: Another bugfix in the parent tags SQL query and displayYorhel1-8/+3
It should work perfectly now...
2010-01-10Handler::Tags: Fixed major bug with parent tag display on tag pagesYorhel1-14/+22
2010-01-09Handler::Tags: Don't display empty VN listYorhel1-1/+1
Minor bug introduced in e69b417f
2009-11-29Tags: Replaced tag_tree() with WITH .. SELECT queries, and removed /g/debugYorhel1-51/+11
The return value of dbTagTree() is also somewhat easier to work with.
2009-11-27DB: Abstracted all ORDER BY clauses in the DB abstraction layerYorhel1-17/+9
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-64/+28
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-27Changed VN score on tags pages to display plain averagesYorhel1-1/+1
For three reasons: - Speed tag_vn_calc() is now more than 10 times faster (granted, it could have been a lot faster even with the bayesian rating, but whatever) - Consistency with the tag scores displayed on the VN pages (which are raw averages as well) - It didn't always make sense
2009-11-16Handler::Tags: Fixed warning about undef in multiplicationYorhel1-1/+1
Forgot that c_popularity was used there as well.
2009-10-21Handler::Tags: Increased tag dropdown search results to 15Yorhel1-1/+1
2009-10-19Use 'no spoilers' as default spoiler level for tagsYorhel1-1/+1
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-10-05JS: Moved, rewrote and improved VN tag linkingYorhel1-16/+17
- You can now click the spoiler column to scroll through the options - Or mouse-over the spoiler column to see a JS dropdown with the options (no more select box, which introduces several more clicks to do the same)
2009-10-03JS: Rewrote and generalized row group expand codeYorhel1-3/+3
2009-09-24Replaced all uses of monthstr() with datestr()Yorhel1-1/+1
Interface consistency.
2009-09-13Handler::Tags: Don't show "create childtag" link on denied tag pagesYorhel1-1/+1
2009-09-03L10N: Converted Handler::TagsYorhel1-101/+86
2009-08-18htmlForm(): Don't generate subform id from the titleYorhel1-2/+2
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-17L10N: Moved some functions from Func.pm to L10N.pm and added Russian quant() ↵Yorhel1-4/+4
and age()
2009-08-17L10N: Converted platform namesYorhel1-1/+1
2009-08-17L10N: Converted user ranks and language namesYorhel1-1/+1
User ranks are easy... but the language names are used everywhere!
2009-08-15More sensible placing of the submit button on /v+/tagmodYorhel1-1/+2
2009-08-11Improved styling of the threeboxes layoutYorhel1-47/+52
It's still not perfect, though: - New version is table-based - meh. - Uses negative margins more than once - meh! - Only works if any of the columns has enough content to wrap. If all content fits in the columns without wrapping, the total table width falls back to the "min-width: 100%" statement - which, with the negative margins, isn't really 100%. MEH! Still... it looks better than the previous solution. So far tested on FF3.5, Opera 9.something, and some semi-recent version of webkit. Reported to work fine on IE7 as well.
2009-08-08Added note on g+ pages about cachingYorhel1-0/+1
Ideally, that shouldn't be necessary, but I can't think of a way to keep the tags_vn_bayesian table up-to-date without a huge performance penalty.
2009-08-05Removed last traces of the shared memory processing queueYorhel1-1/+0
Everything has now finally been converted to use the PgSQL LISTEN/NOTIFY feature. This commit removes the last Tie::ShareLite dependency.
2009-07-08Keep track of users who requested tagsYorhel1-1/+3
2009-05-31Tabs on v/r/p/g search fieldsYorhel1-9/+3
This should make a nice connection between the few kinds of database entries we have.
2009-05-10Added search field on release browserYorhel1-4/+4
2009-05-03Don't allow tag modification of hidden VNsYorhel1-1/+1
2009-04-05Show 'denied tags' link on /gYorhel1-14/+16
2009-04-05Bugfix: allow users to actually select the filter to browse deleted tagsYorhel1-1/+1
2009-04-05Refer to the tag guidelines on requesting a new tagYorhel1-3/+8
2009-04-05Allow normal users to browse deleted tagsYorhel1-4/+2
If they can view them, hiding the tags doesn't really make much sense.