summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/LayoutHTML.pm
AgeCommit message (Collapse)AuthorFilesLines
2016-11-03Add duplicate check to producer entryYorhel1-4/+4
2016-01-20L10N: Intern all VNDB::Util::* stuffYorhel1-39/+45
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-17L10N: Intern all Javascript strings and rename main JS fileYorhel1-1/+1
This has been mostly automated.
2016-01-16L10N: Remove all translationsYorhel1-5/+2
TODO: Intern strings again to simplify the code. The immediate effect of this commit is that starting the util/vndb.pl script and generating the JS file is much faster now and that vndb.pl uses less memory. Translations have already been disabled on the main VNDB for a week now.
2015-11-01Util::LayoutHTML: Suppress warning when $o{search} isn't definedYorhel1-1/+1
2015-11-01Use HTML5 'placeholder' attribute for main search boxYorhel1-1/+1
Instead of the JS hack.
2015-11-01Switch to HTML5 doctype + s/acronym/abbr/ + s/ / /eYorhel1-5/+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-11-01Remove deprecated 'staffedit' permission flagYorhel1-3/+1
2015-09-20Use the new reqQuery() + update usage of reqPath() for TUWF 1.0Yorhel1-2/+1
2015-07-19Remove reliance on Referer header for the login formYorhel1-2/+5
2015-05-13Add staff statistic to main menuYorhel1-1/+1
2015-01-25staff: Add staff edit permission + alias layoutingmorkt1-1/+3
2014-12-22Initial implementation of a staff/seiyuu databasemorkt1-0/+2
2014-12-01Don't use inline script tag to pass pref_code to JSYorhel1-11/+4
This also simplifies the code a bit, as the value of the preference data was never used so doesn't need to be included now. Primary reason for this change is to work towards disabling inline JS with a CSP header. There's still more stuff to fix before the CSP header can be applied, though.
2014-10-21Use TUWF's reqBaseURI() instead of $self->{uri} on site linksYorhel1-1/+1
TUWF properly detects HTTPS and includes this in the returned URL, so this change ensures that all URLs adopt properly to HTTP and HTTPS.
2014-10-16Completely get rid of the old charedit perm flagYorhel1-2/+0
2014-08-29Strengthen formcode for non-logged-in visitors + CSRF protect login formYorhel1-14/+4
formcode is strengthened by including the IP (-prefix) into the hash, ensuring that the code can't be obtained by someone on a different network. I also removed the login form of every page. Felt kinda pointless.
2011-12-29Added duplicate check when adding VNsYorhel1-1/+1
2011-05-01Don't show some contribute links when you can't contributeYorhel1-3/+7
2011-04-30Replaced user ranks with a permission systemYorhel1-1/+0
This is far more flexible.
2011-04-08Added char/tag/trait stats to database statistics boxYorhel1-1/+1
2011-03-20chardb: Added character link to main menu + improved organisationYorhel1-2/+3
2011-03-19chardb: Added 'Add character' linkYorhel1-0/+1
2011-02-14chardb: Added trait index and searchYorhel1-0/+1
2011-02-03TUWF: Replaced reqParam() with reqGet() or reqPost() where applicableYorhel1-1/+1
Cleaner this way. Also found two occurences of manually HTML-escaping text for textareas, which isn't necessary anymore.
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: Replaced ugly html() redefine hack with the new html() optionsYorhel1-2/+6
2011-01-25TUWF: Initial convert from YAWF to TUWFYorhel1-3/+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.
2011-01-01More infrastructural changes to accomodate for the permanent filtersYorhel1-2/+13
- 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
2010-12-23Added users_prefs table and removed users.(skin|customcss)Yorhel1-3/+3
Will convert the other preferences later.
2010-12-19Added tab and link for /u+/votes to user tabs & main menuYorhel1-0/+1
2010-12-13Removed /u+/tags and replaced/added links to /g/links?u=XYorhel1-1/+1
The new tag link browser has replaced the crappy old user-tags-browser.
2010-11-25JS: Split script.js into a separate file for each languageYorhel1-1/+1
This greatly reduces the size of the Javascript file. The compressed size has been reduced with about 9kB, and is now a total of 14kB for en.js. A nice property of this is that more translations can be added without increasing the JS size. While I was at it, I made jsgen.pl also replace mt() function calls in cases where an exact TL string was requested without any additional arguments and/or formatting codes. This helped reduce the compressed size by about 1kB. My aim is to keep *all* the JS code of VNDB smaller than the jQuery core library, as a general "fuck you" towards users of large and bloated JS libraries. We must keep the VNDB page loading times lower than that of other sites, after all!
2010-11-13Added <link> elements for the related atom feeds to some pagesYorhel1-1/+3
2010-11-06URL change: /u/logout => /u$id/logoutYorhel1-1/+1
Also fixes a cross-site request forgery vulnerability. Not as strong as the others but it's not very crucial anyway.
2010-02-05Merge branch 'master' into betaYorhel1-3/+3
Conflicts: data/lang.txt
2010-02-01Made the "My notifications" link less easier to ignore when n>0Yorhel1-2/+1
2010-01-31Removed #vndb link from the main menuYorhel1-3/+3
Too many "HEY CAN YOU RECOMMEND ME .." people going around. The channel is crowded enough now.
2010-01-26Made a start on the notification systemYorhel1-2/+2
The current setup should be able to handle all kinds of notifications, though only PMs are implemented at this point. More to come.
2009-10-10Get unread posts count in htmlHeader() instead of Util::AuthYorhel1-1/+2
This way the counter resets itself immediately when opening the unread thread page, which is more intuitive.
2009-10-10Make "My Messages (n)" stand out when n>0Yorhel1-1/+1
Not very obstructive now that number will automatically reset itself after opening the threads.
2009-10-07Changed language selector into a Javascript dropdownYorhel1-6/+2
2009-10-05JS: Moved, split and rewrote release <-> VN & producer linkingYorhel1-3/+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-02JS: Moved <script> tags to bottom of the page and removed DOMLoad()Yorhel1-6/+3
Time to clean up the javascript code a bit, this is a start...
2009-09-24L10N: Translated the 'ALL' char and fixed footer TL bugYorhel1-2/+2
2009-09-08Added random VN link in menuYorhel1-0/+1
2009-08-17L10N: Converted two homepage items and use key for site titleYorhel1-1/+1
2009-08-17L10N: Converted user ranks and language namesYorhel1-2/+2
User ranks are easy... but the language names are used everywhere!
2009-08-17L10N: Converted everything in Util::LayoutHTML and use non-English keysYorhel1-37/+29
I just can't believe using the English text as keys actually works, English is useless without context.
2009-08-17L10N: Russian TL for site title and main menuYorhel1-11/+11
Things are looking good so far.