Commit Graph

80 Commits

Author SHA1 Message Date
Aram Balakjian
99cf501393 NEW Only add comments to SiteTree objects if needed 2015-03-23 16:59:05 +00:00
Damian Mooyman
7f1005ed06 Provide better temporary location for HTMLPurifier cache files 2015-01-12 14:00:20 +13:00
Stevie Mayhew
bba7a84bd1 UPDATE: explicitly provide permissions for comment administration 2014-11-12 10:38:50 +13:00
Will Rossiter
6de470125b Link to comment parent page. (Fixes: #13) 2013-12-21 17:05:37 +13:00
Will Rossiter
5f6336646a NEW: Add BulkEditing tool for managing comments. (Fixes #9) 2013-12-21 12:19:11 +13:00
Will Rossiter
5cfa476264 Remove relation to comments (Fixes #76) 2013-12-19 19:56:46 +13:00
Will Rossiter
5a8de05ea7 FIX: #73 If moderation enabled, ensure spam responses aren't included. 2013-11-28 21:29:11 +13:00
Will Rossiter
877537c284 FIX: resolve Controller not failing over to an extension method (Fixes #76)
Currently an issue exists that when a controller calls a method which exists on an extension (i.e Comments()) it incorrectly classed as a relation instead of a method resulting in a SQL error.

This patch works around that issue by directly invoking the method.
2013-11-28 21:28:09 +13:00
Will Rossiter
b448232423 Merge pull request #65 from catcherdev/master
Prevent errors when comments' parent pages have been removed
2013-07-26 15:11:40 -07:00
CheeseSucker
dd8f2796fd Fix: Not all fields in the CMS was translatable 2013-06-20 15:40:25 +02:00
catcher
2df8c2b1c3 Prevent errors when comments' parent pages have been removed 2013-06-11 14:13:50 -06:00
catcher
a5e00eccd7 -added config option 'require_moderation_nonmembers' - when set, only comments posted by non-members will require moderation
-comment bodies now populate with previous value after validation errors (i.e. spam protection)
2013-06-04 14:12:16 -06:00
Ingo Schommer
ea3fc6ad2b 3.1 compat 2013-04-11 14:23:03 +02:00
jaredkipe
1787bfc430 Implemented Gravatar config. 2013-03-26 09:17:34 -07:00
jaredkipe
bc9bbea0eb Added defaults for more Gravatar Config. 2013-03-26 09:15:56 -07:00
Will Rossiter
29ae717aa6 FIX: Object::add_extension() is deprecated in 3.1 2013-03-20 22:53:57 +13:00
Ingo Schommer
25561d17a8 API Removed ajax comment submission
The JS logic didn't account for edge cases like scrolling
to the inserted comment, or attaching the comment in the right sorting logic,
on the right pagination page. It also doesn't show any "loading" indication,
so is bad usability for the majority of users. A standard form submission
does the same job better in this case. Note that this doesn't affect
the ability to moderate/delete comments via ajax.

Replaced 'use_ajax_commenting' with 'include_js',
since its important for behaviour other than comment submission itself,
e.g. showing previews (doesn't work without JS)
2013-03-19 11:21:29 +01:00
Gordon Anderson
255d961b09 ENHANCEMENT: Added gravatar size to the configuration options 2013-03-06 16:09:32 +07:00
Gordon Anderson
b961b16910 ENHANCEMENT: Enabled change of gravatar icon size via configuration 2013-03-06 16:09:11 +07:00
Gordon Anderson
d4cc737878 ENHANCEMENT: Added gravatar method to get the URL for the gravatar from the email address submitted with the comment 2013-03-06 15:50:49 +07:00
Gordon Anderson
652ddb938f ENHANCEMENT: Add use gravatar flag, but default to false to maintain current non gravatar functionality 2013-03-06 15:49:59 +07:00
Will Rossiter
3a4a1dd4b4 FIX Ensure comments are escaped in RSS feeds.
FIX Also fix up preview to only output the comment content rather than the whole template.

FIX Hide preview after posting comment.

API Move AllowHtml to field to prevent issues with altering Html configuration after comments have been posted.

FIX If moderation is turned on for commenting, still render comments in preview mode.
2013-03-05 22:01:42 +13:00
Will Rossiter
f38b9daebd Use newlines in comments. 2013-03-05 21:37:00 +13:00
Will Rossiter
567c2236db FIX Nicer fallback if Parent is not set correctly. 2013-03-05 20:39:13 +13:00
Ingo Schommer
0cf5f66783 NEW Comment previews 2013-03-04 12:10:59 +01:00
Ingo Schommer
e450807b1c NEW Optionally allow (sanitized) HTML in comments 2013-03-04 12:10:56 +01:00
Will Rossiter
857b78314b Merge pull request #44 from phptek/ChangeRawIDs
Change raw IDs
2013-02-21 23:14:00 -08:00
Shea Dawson
ca638e367a ENHANCEMENT clientside validation messages sourced from customisable serverside code. Several small bugfixes also 2013-02-20 19:40:53 +13:00
Shea Dawson
967c6ed78d Check to see if use_ajax_commenting is set before including the ajax javascript 2013-02-20 19:40:53 +13:00
Shea Dawson
6a0323415b Completed the ajax commenting functionality 2013-02-20 19:40:53 +13:00
Damian Mooyman
fc03b89d0f BUG Unless moderation has been explicitly done on a comment, spam comments should not be shown to those who cannot authorise comments 2013-01-17 14:45:47 +13:00
Russell Michell
c38ca52ab7 MINOR: Removed ability to select parent and replaced with hidden-field 2013-01-16 09:51:34 +13:00
Russell Michell
c89a8d02ce BUGFIX: Modded getParentClassName() for when $this->BaseClass is not set 2012-12-19 15:07:18 +13:00
Russell Michell
ce3af93a50 BUGFIX: Fixed calls to Comment::get() to be compatible with PostGres
MINOR: Modified docs with basic composer info, typos, grammar etc
ENHANCEMENT: Hid the existing 'BaseClass' textfield making a hidden field. There should be no need to manually change this.
2012-12-19 08:47:34 +13:00
Simon Welsh
dda00c5452 Update to use filter() instead of where() 2012-12-16 17:31:53 +13:00
Will Rossiter
bfa06bee18 Pass parent controller through to template for helper functions 2012-12-16 17:31:53 +13:00
Gordon Anderson
3b321bcabc BUGFIX: Added missing onAfterPostComment hook 2012-11-27 19:56:21 +07:00
Sean Harvey
a47efa518d Fixing CommentsExtension to use the correct Config API for adding statics 2012-10-11 11:01:14 +13:00
Kirk Mayo
7689623503 BUG: Fixing moderation on the comments module 2012-08-09 23:13:02 +12:00
Saophalkun Ponlu
6eccca879c FIX: Fix an issue where migration process ignores setting the Moderated flag 2012-08-01 14:09:05 +12:00
Will Rossiter
6d3597095f FIX: Implement paginated list for RSS feed. Fixes #31.
Includes functional tests for the RSSFeed but currently commented out until that feature lands in the main framework.
2012-07-31 20:45:29 +12:00
Ruud Arentsen
9e96d43e04 fixed pagination
for me, pagination worked when i added this code. somehow, the list
didn't get the getvar and always remained on the first page. The
$list->MoreThanOnePage() fixes an issue where the links didn't appear in
the template.
2012-07-26 09:40:57 +02:00
Ruud Arentsen
d606187ab7 fixed the issue that the form wouldn't submit
fixed the issue that the form wouldn't submit on require_login = true.
E-mail field needed to be hidden as well.
2012-07-26 09:12:05 +02:00
Will Rossiter
a3328641e7 FIX: use template for storing pending comment message. 2012-07-22 13:50:17 +12:00
Will Rossiter
8819fb8381 FIX: use pagination on comments 2012-07-22 13:44:30 +12:00
Will Rossiter
c50740846c FIX: exclude pending comments in RSS feed. 2012-07-22 13:43:42 +12:00
Will Rossiter
65c687a237 FIX: use moderated status, needs moderation flag has been removed. 2012-07-22 13:32:01 +12:00
Will Rossiter
95667fdf41 FIX: restore spam, rss, delete, approve and ham controller actions on the front end. 2012-07-22 13:30:33 +12:00
Will Rossiter
715576797f FIX: include separate grid fields for unmoderated and moderated comments.
Extended GridField configuration to include pagination, searching and filtering of comments as well as deleting and editng.
2012-07-22 12:47:59 +12:00
Will Rossiter
235b309cae Remove custom classes replaced by built in methods. 2012-07-22 11:11:45 +12:00