Commit graph

28 commits

Author SHA1 Message Date
ed3e431d74 Refactored site search 2015-01-06 16:58:06 +01:00
a586efcc8c Refactored member search 2015-01-01 20:49:18 +01:00
d12e2a1d65 Refactored membership handling for UIKit support 2014-12-14 23:40:05 +01:00
ab8560b057 Updated license header and unified comments 2014-07-04 17:16:51 +02:00
a70d7e9029 Replaced most double ticks with single ones 2014-07-04 15:44:41 +02:00
c7d78eba65 Reduced line indent from 3 to 2 spaces 2014-07-04 15:32:18 +02:00
3e769d3d6e Cleaned up whitespace with Sublime Text 2 2014-07-04 15:30:46 +02:00
ebbfd2235f Added and/or completed missing documentation 2012-05-19 17:39:37 +00:00
8f788da1b2 Fixed the Sql.SEARCH query to be compatible with PostgreSQL, too 2011-06-06 14:53:21 +00:00
a72fd7e1ee Fixed Sql.SEARCH query to only output distinct IDs to prevent redundant results 2011-06-06 14:31:23 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
9f855af0b0 Slightly modified Sql.SEARCH string 2011-02-20 22:08:47 +00:00
441230321d Slightly optimizd SQL statements for Archive prototype 2011-02-20 16:13:56 +00:00
98bfd954b9 Updated site search to work with new Metadata 2011-02-20 16:10:37 +00:00
d163136d04 Added option to execute and traverse SQL queries in test (or debug) mode 2010-05-24 19:28:40 +00:00
2505612a37 Switched to PostgreSQL as database of choice and added compatibility files to db/my.compat 2010-04-24 14:27:31 +00:00
e47cbe348d Make search really case-insensitive. Fixes issue 86. 2010-02-07 18:41:08 +00:00
da47d03b24 Reverted last changes in Sql.SEARCH statement back to using “like” insted of regular expressions 2010-02-06 17:20:52 +00:00
e0d45711b6 * Rewrote Sql.SEARCH statement to search for regular expression pattern in text and title field of stories and comments
* Modified Site.search_action() to filter comments of closed stories and increased result limit to 50

Fixes issue 38
2010-02-06 17:03:30 +00:00
896f5daf28 * Added Membership.comments collection to fix a bug causing display of the number of comments of a user throughout the whole installation instead of those of the member of the site only
* Replaced custom SQL query in Comment.remove() with code using new Membership.comments collection
 * Removed obsolete Sql.COMMENTS statement
 * Added getConfirmText() method to Comment, File, Image, Layout, Membership, Poll, Skin and Story prototypes – which is used in HopObject.delete_action() for more convenient feedback about what is going to be deleted (fixes issue 37 for now)
 * Fully enabled translation in global breadcrumb_macro()
 * Removed obsolete Layout.getTitle() method
 * Disabled translation in HopObject.toString() methods
 * Fixed and added some i18n messages to ease translation
2010-02-06 15:13:39 +00:00
3d3bfe7ee0 Lowercase column names in SqlData prototype to prevent errors with case-sensitive H2/PostgreSql databases 2010-01-20 15:22:25 +00:00
b2be44fabf * Rewrote direct Database access in Archive.stories_macro(), Archive.getSize(), Archive.getFilter(), Members.search() and Root.mrtg_action() methods using the Sql prototype and trying to make the statements work in all MySql, PostgreSql and H2 databases
* Added default setting for root.replyTo when first setup is encountered in Root.main_action()
 * Renamed user table to account in User.properties (“user” is a reserved keyword in PostgreSql)
2010-01-20 14:28:17 +00:00
b20a414727 Had to move the Sql constants to Sql.js due to Sql being undefined in Global (files are compiled in alphabetical order!) 2010-01-19 22:06:40 +00:00
c495dca93c * Added logger for writing to helma’s SQL log
* Renamed SqlData.update() method to SqlData.next()
2010-01-09 14:30:50 +00:00
dcc9cbcfc8 * Added basic doctags to the code
* Removed obsolete code
2009-11-02 16:16:41 +00:00
deadad31c0 Added Sql.toString() method 2008-06-12 15:41:15 +00:00
4539635476 Fixed bug in Sql.js causing exception when there's now result set at all 2008-05-15 16:01:08 +00:00
af8b05d1bd * Added HopObject.log() method currently caching referrers of story and site requests
* Modified LogEntry to fit into the new logging mechanics
 * Added commitRequests(), commitReferrers() and purgeReferrers() to Root prototype
 * Added referrers collection to Root
 * Re-added Site.spamfilter property for now
 * Refactored Site.referrers_macro() and Story.referrers_macro() (formerly backlinks_macro, but compatibility is granted)
 * Removed obsolete method Stories.flushRequests()
 * Reactivated referrers (thus, including backlinks) for privileged users for testing purposes
 * Added global nightly() method which is called from a new cronjob at 5 am
 * Added calls for referrer purge and commit methods in Root to scheduler
 * Added Story.count() method to increment the request counter; overwrites Helma's built-in HopObject method but it's anyway redundant with HopObject.size()
 * Added utility methods for database access in Sql.js
2008-05-15 12:58:26 +00:00