Commit Graph

464 Commits

Author SHA1 Message Date
Bharat Mediratta
8bf388a6f6 Incremental improvement in comment moderation:
1) Akismet now detects when we change a comment's published state and submits
   info back to akismet.com as appropriate

2) We now show 4 different queues (all / approved / unapproved / spam) and let you
   move messages between the queues

3) We track and display "spam caught" stats.

4) You can delete comments entirely.
2009-01-08 02:50:23 +00:00
Bharat Mediratta
10ff87621b The SpamFilter module is superceded by the Akismet module. 2009-01-07 19:51:53 +00:00
Bharat Mediratta
f8802d438a Properly handle the case where the akismet backend doesn't return a true/false
value.  Add phpdoc.
2009-01-07 19:50:27 +00:00
Bharat Mediratta
01dcbbcda5 Add very basic comment listing which shows the different queues
(approved, unapproved, spam).
2009-01-07 09:08:53 +00:00
Bharat Mediratta
8bcc3de28d Listen for comment creation, and run it through Akismet. Make the
akismet stats page take up as much room as possible.
2009-01-07 08:20:22 +00:00
Bharat Mediratta
17c8e14753 Properly check comment permissions. Don't show comments that aren't
published.  Fix _form_add to take an item id.  Oh and email address is
no longer required.
2009-01-07 08:18:15 +00:00
Bharat Mediratta
9460e08da8 Create a new "fragment" page type to use when we're not sending back a fully themed page. 2009-01-07 07:42:38 +00:00
Bharat Mediratta
ba052c0cc9 Extract the Akismet driver from the Spam_Filter module into a module
in its own right.  Clean up the tests, streamline the code and improve
the admin interaction.  Add a working stats page.
2009-01-07 07:36:48 +00:00
Tim Almdal
af3882cd34 Forgot to add the unit tests, which probably don't work anymore with some of the latest
changes.
2009-01-06 23:42:20 +00:00
Tim Almdal
8e16931afd The Akismet driver. This will now verify the api key and attempt to check the comment
as spam.  For some reason, it is always returning all comments as spam.
2009-01-06 23:40:17 +00:00
Tim Almdal
4645c459e1 Add a catch around the call to the spam filter and if the spam filter check fails set the comment
state to unpublished.
2009-01-06 14:36:20 +00:00
Bharat Mediratta
4ee24a6645 Put up an error if you rename a user to an already existing name. 2009-01-06 10:05:08 +00:00
Bharat Mediratta
fa1ccbd86d Fix up all the various little forms to have submit buttons, fieldset legends, etc etc. 2009-01-06 09:22:29 +00:00
Bharat Mediratta
fd3db57778 Add a submit button to the login form 2009-01-06 08:34:07 +00:00
Bharat Mediratta
532996d62f Merge in Forge from upstream r169 which converts Forge::submit() into
an actual <input type="submit"> instead of a <button>.
2009-01-06 08:27:44 +00:00
Bharat Mediratta
2b92fef5ab Fix bad redirects; we only have feeds for albums not photos 2009-01-06 04:08:44 +00:00
Bharat Mediratta
c41194a6e7 add fileSize attribute to thumbnail/resize/full images 2009-01-06 04:03:15 +00:00
Bharat Mediratta
5dbb8a4874 Wrap content in htmlspecialchars so that we don't break the RSS feed 2009-01-06 03:40:15 +00:00
Bharat Mediratta
3381f1d01a Put up an error if you try to reuse an existing tag name 2009-01-04 22:58:18 +00:00
Chad Kieffer
fe16cd65ee Wrap div with another div instead of a paragraph 2009-01-04 18:37:13 +00:00
Bharat Mediratta
1eeb6efd72 Move slideshow link from sidebar_top() into the photo and album menus. 2009-01-04 09:01:39 +00:00
Bharat Mediratta
92ceef27da Allow renaming of tags using a modal dialog. Put up a confirmation
dialog for deleting tags.  Remove the 4 character restriction on tags
(it was getting ignored by the add form anyway since it was mistakenly
referred to as tag_name there).
2009-01-04 08:44:06 +00:00
Bharat Mediratta
625d078557 Extend Theme_View to look in modules for photo and album menus. Move
"view comments" link to the comment menu helper.
2009-01-04 07:40:37 +00:00
Bharat Mediratta
2c27469412 Simple admin tags interface. 2009-01-04 01:55:59 +00:00
Bharat Mediratta
64384a21c2 Update preambles. 2009-01-04 01:47:41 +00:00
Bharat Mediratta
7e7093d0be Rename views to be consistent with our admin view naming scheme. 2009-01-04 01:41:10 +00:00
Bharat Mediratta
d36996fb14 Remove unnecessary comments. 2009-01-04 00:39:54 +00:00
Bharat Mediratta
2f44c2b269 Update description. 2009-01-04 00:31:28 +00:00
Bharat Mediratta
6399081494 Update description. 2009-01-04 00:30:05 +00:00
Chad Kieffer
bdff96bd54 Added a jump to comments button with a scroll to effect. 2009-01-03 19:09:32 +00:00
Chad Kieffer
a57ede2f96 Added default user avatar. Comment thread updates, including display of avatar. Sidebar block display white space updates. Combined gLoginMenu and gCredits css. 2009-01-03 01:11:20 +00:00
Bharat Mediratta
8595b75d9b Restructire site admin menu a bit:
Rename menu "General Settings" -> "Settings"
  Rename "Comments Moderation" -> "Comments"
  Move "Content" -> "Configure Spam Filtering" -> "Settings" -> "Spam Filtering"
2009-01-02 20:18:44 +00:00
Tim Almdal
9644dcc480 1) Removed the published boolean database field
2) Replaced it with a string field (state) which contains the state of the comment. i.e. published, unpublished, spam.  Unsure if we want to create constants in comments.php to standardize the valid values... thoughts?
3) synchronized the spamfilter and comment unit tests with the current functionality
2009-01-02 18:54:37 +00:00
Tim Almdal
277e7f8db2 Remove old code that was commented out 2009-01-02 18:32:47 +00:00
Tim Almdal
206edb59b9 Update the api to allow each driver to specify validation rules and generate the appropriate form content. Add a callback so if the driver changes in the driver selection dropdown, then the api form fields are updated with the new form fields for that driver 2009-01-02 18:31:23 +00:00
Bharat Mediratta
cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00
Tim Almdal
bd8884d3ac Ignore the SpamFilter.php as a valid spam filter. 2008-12-31 15:04:57 +00:00
Bharat Mediratta
77bb22a65c Mollon -> Mollom 2008-12-31 07:17:50 +00:00
Tim Almdal
517ddf5388 First look at the spam filter module. At this point, it does not connect to any spam services. But you can go into the admin screen and choose the driver and set the api key. 2008-12-31 06:19:35 +00:00
Chad Kieffer
246139cf1f Tabs to spaces. 2008-12-31 03:29:25 +00:00
Bharat Mediratta
ad719b9b6f Fully implement the view_full permission. 2008-12-31 00:18:24 +00:00
Andy Staudacher
1cacf769d1 Make the url parameter optional in comment::create() (according to the comment model) 2008-12-30 21:00:47 +00:00
Bharat Mediratta
f29aad03a6 Make some columns smaller so that multi-column keys don't exceed 1024
bytes on some systems.
2008-12-30 01:37:09 +00:00
Chad Kieffer
79e2c4bd47 Fixed indents 2008-12-30 01:21:09 +00:00
Bharat Mediratta
1b53073b55 Mark the "website" field as hidden. 2008-12-29 23:36:58 +00:00
Tim Almdal
f5136051c9 Filter on published in Comment_Controller::_index() 2008-12-29 22:59:44 +00:00
Bharat Mediratta
6ab195854d Remove rest::JSON content type; it's causing lots of problems and it doesn't directly help since text/html works just as well for our JSON communications 2008-12-29 22:41:53 +00:00
Bharat Mediratta
776123496b Add transparency support 2008-12-29 22:30:19 +00:00
Tim Almdal
69603ede7a Implemented bharat's suggestions to the comment module in preparation for the spam_filter module 2008-12-29 21:09:44 +00:00
Bharat Mediratta
8102d8ea77 Clean up _update_graphics_rules() to make it more robust 2008-12-29 20:17:24 +00:00