Commit graph

505 commits

Author SHA1 Message Date
12309653a5 * Decentralized markgettext() calls by moving them from i18n.js to the places where the messages actually are defined
* Added markgettext_macro()
 * Readjusted Admin.dropdown_macro() and the global defineConstants() methods to work with the modified markgettext() calls
 * Updated Members.properties and added SQL patch for lowercasing all membership status due to the modified margettext() calls
 * Added Membership.role_macro() as convenience method
 * Removed syntactic sugar from HopObject.link_macro() and moved it to the compatibility layer to prevent current layouts from breaking
 * Removed obsolete permission for non-existing Image.replace_action()
2010-04-25 17:31:44 +00:00
d6ca04c34f Replaced common date format string with equivalent constant 2010-04-23 19:52:34 +00:00
eab69cd022 Fixed bug causing duplicate display of replies. (No clue how this slipped in.) 2010-04-05 14:14:57 +00:00
Christoph Leutner
b7ad105819 Added information to the tags input forms (because 'separated by commas' is usually translated as 'durch Komma getrennt', I chose that over the plural (Kommata)); fixed typos 2010-04-03 22:16:39 +00:00
a2ff97c588 * Added checks for invalid characters in Skins.create_action() and User.register() methods
* Added Tag.DELIMITER constant used in Story.getFormValue() and Story.tags_macro()
 * Fixed flag in $Skin#listItem skin
 * Added ancestor call to Skin.getFormValue() method
2010-02-06 21:38:49 +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
33ef009f20 * Moved all direct SQL statements as constants into Sql object
* Removed redundant call for HopObject.log() in Admin.update() method
2010-01-19 22:01:39 +00:00
5523ab28d2 * Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features
* Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype
 * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites
 * Renamed Root.getScopes() method to Admin.getNotificationScopes()
 * Renamed User.getScopes() method to Admin.getCreationScopes()
 * Added Admin.getPhaseOutModes() method
 * Removed obsolete code
 * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection
 * Finally added simple and reasonable quota implementation
 * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments
 * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used
 * Fixed some i18n messages
 * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen
 * Completely rewrote HopObject.notify() method (hopefully fixing issue 49)
 * Check free disk space before invoking create_action() of Files and Images prototypes
 * Modified output of Membership.toString() method
 * Fixed some linebreaks in Membership.skin
 * Added option to set session.data.error for additonal information in $Root#error skin
 * Slightly modified output of $Root#health skin
 * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode
 * Removed qualifyingDate property from Root
 * Renamed Root.qualifyingPeriod property to Root.probationPeriod
 * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root
 * Added replyTo property to Root
 * Rewrote Root.getCreationPermission() method
 * Added #notify_blocking and #notify_deletion skins to $Site.skin
 * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified
 * Added Site.diskspace_macro() returning the free disk space in MB
 * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
32c52791fe * Refactored code and skins in respect for comprehensive i18n
* Refactored and unified remove() methods and calls for greater flexibility as well as reliability
 * Added option to remove all comments by a user to Comment.remove() method and $Comment#delete skin
 * Added global #listItemFlag skin as well as listItemFlag_macro() for rendering vertically written text of items in a list view (e.g. closed)
 * Fixed bug in gettext_macro() and ngettext_macro() causing incorrect whitespace
 * Refactored timezone and locale handling
 * Modified automatic translation of untitled links in HopObject.link_macro()
 * Added honeypot to login and registration forms
 * Fixed client-side JavaScript to be evaluated when login or registration form is submitted, not only when the submit button is clicked
 * Removed redundant filter expression from DB mapping of Membership.images collection
 * Added Membership.content collection
 * Changed terminology from open to running polls, thus renaming Polls.open_action() method and Polls.open collection
 * Moved a lot of CSS used in root or administration sections from Site#stylesheet to $Root#stylesheet skin
 * Added Root.updateDomains() method (most likely already obsolete)
 * Removed Root.processHref() method (only necessary for very advanced setup) and obsolete comments
 * Fixed Root.xgettext() method to correctly read UTF-8 encoded data
 * Fixed Site.deleted_macro() to return the date object for late formatting
 * Refactored Site.processHref() for more convenient custom domain name mapping
 * Renamed Skins.advanced_action() method to Skins.all_action()
 * Removed redundant filter from Stories.comments collection
 * Removed unnecessary filter from Story.comments collection
2010-01-10 14:40:36 +00:00
f8974735e3 Revamped the backup/restore feature for the story editor 2009-12-27 17:51:19 +00:00
d0720d7c53 Fixed quotes to work with gettext 2009-12-27 14:31:28 +00:00
cca8f2c03a * Modified some res.data.title and res.messages assignments
* Added second argument to HopObject.remove() method; if set to true, any object will be removed without any checks for permissions or the like
 * Enhanced notfound and error screens
 * Removed obsolete Image.site property
 * Added missing LogEntry.remove() method
 * Added Site.deleted property
 * Fixed missing calls for remove() methods of some collections in Site.remove()
 * Added Root#stylesheet skin for future CSS classes necessary for GUI elements
 * Added missing Site.entries collection
 * Removed troublesome if condition in Skin.remove()
 * Generally deny access to Skin.main_action
 * Added missing Skin.getFormValue() method
 * Added check in Skin.update() if the Site#page skin contains the <% response.body %> macro 
 * Added Skins.onRequest() method checking if we are in-between two Skins objects
2009-12-13 22:29:21 +00:00
5ec14e5c06 Skin spring cleaning: unified and restructured skin parts and removed obsolete markup 2009-12-13 21:54:58 +00:00
dcc9cbcfc8 * Added basic doctags to the code
* Removed obsolete code
2009-11-02 16:16:41 +00:00
b86ea5c736 * Modified SQL statements for compatibility with H2 database (experimental)
* Hopefully fixed redirect loop bug of XSS check in HopObject.onRequest()
 * Added Root.xgettext() method as a more reliable way of extracting gettext call strings (esp. from skins)
2009-11-01 11:22:33 +00:00
2a9fddb66b Reduced length of res.data.title to 5 words in Story.main_action() 2009-10-28 01:13:06 +00:00
b34390b9a9 * Added missing code for a linked list of tags to Story.tags_macro() – fixes issue #33
* Fixed small issue with trailing colon in $Story#listItem skin
2009-10-27 16:29:34 +00:00
a4aac4fa93 * Moved Philipp’s RegExp pattern from validation methods to static String properties
* Added global default_filter() method as alternative (and fix in some cases) for the “default” macro parameter
 * Do not show a story’s summary in top stories view but instead try the title and apply the newly introduced default_filter() method with the clipped story text to it
2009-10-27 12:18:08 +00:00
b710a221f0 Display a story’s summary in top stories view instead of the title only 2009-10-27 11:15:56 +00:00
2ec2404b03 Encode referrer string before rendering the HTML as fix for issue #32 2009-09-21 15:29:12 +00:00
31251b6809 * Fixed notifcation skins in HopObject to prevent ugly "null" output; from now on only the ID of the created/modified object is displayed.
* Fixed bug in Story.summary_macro() preventing additional arguments from being used to render metadata content
 * Added root.sites to _parent mapping in Site.properties
2008-12-14 12:50:52 +00:00
7444d1b227 * Replaced <% comment.created %> with <% comment.creator %> macro in <% if %> macro of Comment#edit skin (fixes issue #27)
* Wrapped display of creation and modification dates in <% if %> macros in Comment#edit skin
 * Slightly reduced code in global formatDate() method
 * Modified HopObject.created_macro() to prevent creation dates of  transient objects from being displayed or formatted incorrectly
 * Modified HopObject.modified_macro() accordingly
 * Added width attribute to CSS definition for fieldset elements
 * Reduced macro code in Story#edit skin
2008-12-11 18:08:51 +00:00
e65c6fce47 Limited output of story title in to 15 words in Story.main_action() 2008-10-09 19:26:03 +00:00
c94de58429 Fixed display of creation date by checking for <% story.creator %> instead of <% story.created %> 2008-07-22 18:40:56 +00:00
59c8556288 * Fixed formatDate() method to use per-site date format patterns
* Fixed Story.skin to display creation date only if available
2008-07-22 18:21:30 +00:00
7e4a668489 Also add story referrers to site log 2008-06-17 10:31:32 +00:00
b4c6ad38f8 Fixed and cleaned up admin section 2008-06-15 20:28:25 +00:00
5d0205b4fa Re-enabled Story.backlinks_macro() method for site owners 2008-06-12 15:46:36 +00:00
065828abf5 Fixed implemenation of backup/restore feature for stories and comments 2008-06-12 15:33:11 +00:00
f00e94e3f8 * Renamed Story.backlinks_macro() method to Story.referrers_macro()
* Replaced "story" handlers in a few Story skins with "this" as otherwise comments won't be correctly rendered in history or RSS output  (which I think is due to the recent changes in Helma related to fixing bug #617)
2008-06-12 14:57:39 +00:00
4c4e26e5e8 * Renamed Site.queueCallback() method to Site.callback()
* Added output of queued requests and referrers to Root.health_action()
 * Fixed POST arguments in Root.invokeCallbacks() method
2008-06-12 14:41:30 +00:00
b0b126a992 * Replaced all occurrences of "webHook" with "callback"
* Dropped obsolete Site.webHookCalled property
 * Renamed Site.hitchWebHook() method to Site.queueCallback()
 * Renamed default callback method Root.default_hook_action() to Api.callback_action()
 * Implemented callback queue in favor of immediate invocation
 * Added basic documentation about callbacks
2008-06-12 14:02:42 +00:00
d0b76c130a Wrapped result of Story.getTitle() method in String() call to prevent "Unsupported Java type: class org.mozilla.javascript.NativeString" XML-RPC exceptions; furthermore return "..." ellipsis instead of "this". 2008-06-12 09:19:54 +00:00
1e54c789f0 Fixed bug causing "undefined" to disappear next to a image rendered by a <% story.content as="image" %> macro 2008-05-16 10:12:31 +00:00
6be2921814 Removed call for logRequest() from Story.comment_action() 2008-05-15 15:27:29 +00:00
1aa5e7f25e * Rounded up LogEntry
* Slightly modified #referrer and #referrers skins of Site and Story
2008-05-15 13:02:50 +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
e8c6ca163c Added option to escape URL from being linked automatically by prefixing it with a exclamation mark: !http://antville.org 2008-05-13 14:48:54 +00:00
62b00107d5 Fixed order of filter methods applied by default in Story.format_filter() 2008-05-13 12:28:53 +00:00
d44e34dd1d * Renamed User.pushLocation() method to User.setLocation() and User.popLocation() to User.getLocation()
* Modified location setting and getting to achieve adequate redirection after logging in, unsubscribing etc.
 * Removed obsolete code
2008-05-12 17:37:17 +00:00
781b050cc7 Removed debug messages 2008-05-12 15:39:26 +00:00
4522c3b308 Re-imported the regular expression for URLs from AntvilleLib's String.activateURLs() method 2008-05-12 15:35:38 +00:00
7ce924ead0 * Fixed res.handlers.membership when sending notifications
* Removed obsolete code
2008-05-12 15:06:20 +00:00
78fb0eddfa Reverted back to format() call in Story.format_filter (otherwise HTML structures in stories/comments will be compromised) 2008-05-12 13:05:18 +00:00
c02f667a55 Fixed missing linebreaks in Story.format_filter() method to compensate previously removed call for global format() method 2008-05-12 11:46:28 +00:00
1f4c87e4d1 * Removed final format() call in Story.link_filter(); if we are lucky we do not need any HTML entities anymore anyway thanks to UTF-8
* Removed obsolete code
2008-05-12 10:50:06 +00:00
05f475c3df Also set comment mode to default if user input is missing 2008-05-10 11:26:10 +00:00
c0534cfbb4 Set status and mode of a story to default values in case of no user input 2008-05-10 11:23:30 +00:00
85137389c5 * Fixed bug causing immediate or minor story and comment updates to wrongly set the modification dates
* Added casting and trimming to File.getName() method
 * Fixed permissions in Membership
2008-05-10 09:08:55 +00:00
50f052a305 Removed message about disabled backlinks; it's too invasive. 2008-05-08 00:36:06 +00:00