Commit Graph

55 Commits

Author SHA1 Message Date
Mateusz Uzdowski
6e9a91efca BUGFIX Fixing the comment's author website url being converted to lowercase: now case is not affected.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@84380 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:26 +13:00
Will Rossiter
44e5b0a89a BUGFIX: fixed spelling of spam protector
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@78452 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:24 +13:00
Will Rossiter
fbac34c7c7 BUGFIX: set when ajax is disabled for commenting that we redirect manually down to the comment form
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75785 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:18 +13:00
Sean Harvey
15f18179d4 BUGFIX Fixed PageCommentInterface $this->class being NULL because parent::__construct() wasn't called
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75654 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:15 +13:00
Normann Lou
44fcc58c35 APICHANGE: add documentation to changeset r74858.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74901 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:12 +13:00
Normann Lou
900595c80d APICHANGE: pass argument $includerelations into DataObject::fieldLabels() default as true;
APICHANGE: BulkLoader::getImportSpec() call DataObject::fieldLables() with $includerelations as false, so that the relations is separated from column fields

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74858 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:12 +13:00
Will Rossiter
6b0ab830dd BUGFIX: redirect user down to their posted comment if it was not posted via AJAX
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@73016 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:08 +13:00
Will Rossiter
5e5a06d8e9 MINOR: fixed whitespace issue and added SessionID to page comment
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@72903 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:08 +13:00
Will Rossiter
8c27499cd0 FEATURE: added ability to disable AJAX commenting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@72771 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:07 +13:00
Will Rossiter
5759314893 BUGFIX: show flash icon and box if flash file exists. MINOR: created a default editor.css file which has base css styles for the CMS.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70691 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:03 +13:00
Will Rossiter
fe4e18bc0e MINOR: merged patch from keeny. Put comment data into Cookie and load if user fails maths spam question. Clear comment cookie on successful posting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70530 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:57 +13:00
Will Rossiter
1c7895683f MINOR: added empty statics to PageComment to allow for decoration
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70408 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:56 +13:00
Sean Harvey
6eea8c657f BUGFIX Make sure the website URL that the commenter posts has a correct "http://" or "http://" bit at the start of the string
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@68999 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:49 +13:00
Brian Calhoun
709e352bbc Added ability for comment authors to leave a URL as a separate form field
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@68326 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:46 +13:00
Sean Harvey
74545e682c MINOR Removed whitespace after ?> end PHP tag
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@67468 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:44 +13:00
Ingo Schommer
18912d2cb7 ENHANCEMENT Added fieldLabels() overloading to various DataObject subclasses. Use this method instead of directly calling _t() in getCMSFields(), and use fieldLabel('MyField') to get the label for a specific FormField. This way, we can transparently support formfield scaffolding and re-use the labels for search fields automatically.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65073 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 20:04:26 +00:00
Sam Minnee
dd8b5bafa4 API CHANGE #2857 - Renamed RequestHandlingData to RequestHandler
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64954 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-30 22:03:32 +00:00
Ingo Schommer
c3244cc821 BUGFIX typo mentioned in #2775
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63611 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-03 09:54:59 +00:00
Ingo Schommer
b464952522 BUGFIX wrong jsparty PATH references
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63295 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-29 18:49:35 +00:00
Ingo Schommer
a322fbd59f ENHANCEMENT Introduced constants for system paths like /sapphire in preparation for a more flexible directory reorganisation. Instead of hardcoding your path, please use the following constants: BASE_PATH, BASE_URL, SAPPHIRE_DIR, SAPPHIRE_PATH, CMS_DIR, CMS_PATH, THIRDPARTY_DIR, THIRDPARTY_PATH, ASSETS_DIR, ASSETS_PATH, THEMES_DIR, THEMES_PATH
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63175 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-28 13:12:20 +00:00
Will Rossiter
578e957901 MINOR: fixed comment on MathSpamProtection
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@61840 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-01 22:57:08 +00:00
Will Rossiter
cdb19344bf BUGFIX: fixed Member name not being saved in database with ReadonlyField()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60897 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-18 00:10:26 +00:00
Sam Minnee
6c404e4df7 Fixed page comment system for new URL handler
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60841 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-15 03:37:26 +00:00
Sam Minnee
387b5edd21 Merged changes from branches/2.2.2-assets:
Static publishing
Ability to lock down comments to logged-in members only

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60470 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-12 02:59:27 +00:00
Ingo Schommer
a894ad377d MINOR Unified @package PHPdoc (added where missing, removed duplicates)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@56212 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-06-15 13:33:53 +00:00
Sam Minnee
e395446f66 Merged revisions 52296 via svnmerge from
http://svn.silverstripe.com/open/modules/cms/branches/2.2.2

........
  r52296 | aoneil | 2008-04-08 12:28:37 +1200 (Tue, 08 Apr 2008) | 2 lines
  
  Fix pagecomment links and feeds
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@53496 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-04-26 06:38:48 +00:00
Matt Peel
66c3db1e8e Reverted geoffm's accidental commit to /open
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@50107 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-02-25 02:10:37 +00:00
Geoff Munn
4475726ad6 First post
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@50105 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-02-25 01:06:39 +00:00
Andrew O'Neil
2259c8f6d9 simon_w: #2122 - Bug in PageComments class (Security)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47930 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-01-13 20:06:35 +00:00
Sam Minnee
d9ac1a1f85 Improved API documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47798 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-01-10 00:33:49 +00:00
Sam Minnee
bfc448fa7f Added package tags and docblock info for API documentation
Fixed whitespace

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47726 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-01-08 06:41:55 +00:00
Sam Minnee
cf31a3d4e6 rhalff: #1580 - i18n for comments system
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46723 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-12-12 22:57:29 +00:00
Ingo Schommer
4ff41983d3 added entity
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44648 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-12 06:18:46 +00:00
Andrew O'Neil
59dc14d010 #1472 - PageComment Spam is shown in RSS (merged from 2.1.1 branch, r43586)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44207 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-04 21:43:48 +00:00
Andrew O'Neil
614706f04d Improved static config methods on math spam protection (merged from 2.1.0 branch, r42467)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42937 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-10-02 05:13:32 +00:00
Jeremy Shipman
63ff9536d1 Created the option of having bbcode in comments.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42885 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-10-02 02:47:02 +00:00
Sam Minnee
9b43207884 Fixed svn:eol-style settings
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40456 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-18 02:33:28 +00:00
Sam Minnee
1c2f30978a Added HTTPResponse object, to encapsulate Controller responses for aid testing and other 'quirky' uses of Controllers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40390 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-17 03:09:46 +00:00
Jeremy Shipman
c0f872b8fe Improved spam protection question updating. Now refreshes immediately after posting the form, no matter if you get it right or wrong. More consistent notification if you get the question wrong (same box used as other notifications).
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39981 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-14 04:39:29 +00:00
Andrew O'Neil
1e02df02f9 Unmoderated comments have unmoderated css class on them
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39893 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-12 23:39:18 +00:00
Andrew O'Neil
d7ea506562 'Approving' a comment makes more sense than 'accepting' a comment
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39878 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-12 22:19:06 +00:00
Andrew O'Neil
ca4a3b91d8 Only show unmoderated comments if the user is an admin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39834 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-10 04:33:02 +00:00
Andrew O'Neil
a4aad537c3 Now that we have a management interface, it makes sense to save spam by default
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39820 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-10 02:14:56 +00:00
Andrew O'Neil
6de32f6edc Don't show unmoderated comments unless user is admin, add link to accept comment
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39818 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-10 01:29:09 +00:00
Andrew O'Neil
8c9f5900b5 Allowing marking of comment as spam, ham or accepted in cms
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39738 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-08 06:00:20 +00:00
Jeremy Shipman
3a805afecf Changed spam protection so that user is redirected back to comment form if they get the question wrong and don't use javascript.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39735 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-08 04:34:12 +00:00
Andrew O'Neil
9099fa1474 Allow setting of moderation in _config
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39719 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-07 23:18:30 +00:00
Andrew O'Neil
12069c6a96 Show a link for page comments on each page
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39684 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-07 04:59:19 +00:00
Andrew O'Neil
475b872eb8 Allow specifying the page in page comment rss feeds
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39681 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-07 04:32:52 +00:00
Andrew O'Neil
3e5a0968ae Fixed authors breaking rss feeds
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39611 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-06 01:07:41 +00:00