Commit Graph

302 Commits (89db09746fbcebeb3f5a886792d1287fb9d75818)

Author SHA1 Message Date
Steven Wittens b2f8787c90 Comment deleting broken 2004-10-18 20:10:18 +00:00
Dries Buytaert a423eefe95 - Patch #11670 by TDobes: comment.module did not properly set a breadcrumb for creating/previewing new comments. The node on which your commenting and its location within the menu is not displayed. Instead, there is only a "Home" link. This is especially apparent when the "add new comment" form is set up to display on a separate page. 2004-10-17 19:09:09 +00:00
Dries Buytaert 7ebd772f41 - Patch #10664 by TDobes: fixed collapsed comments + updated the code comments. 2004-10-16 07:22:26 +00:00
Dries Buytaert 7cf0e9af33 - Patch #9252 by TDobes: admins should be able to edit anonymous commenters' names. 2004-10-15 16:57:20 +00:00
Dries Buytaert 49dcf84fdf - Patch #11605 by TDobes: if a user happens to have uid=0 defined in their database, the name assigned to that user will always override any name submitted by an anonymous commenter. Checking against $user->uid instead of $user->registered_name fixes this problem. 2004-10-15 11:13:11 +00:00
Dries Buytaert dfb3c3aec4 - Patch #11577 by drumm: changed t('ago') -> t('%time ago', ...) to make it
translatable in languages such as Spanish.
2004-10-15 05:10:35 +00:00
Steven Wittens 9e4399aae8 #10677: Confirmation when deleting a block + unifying confirmation screens. 2004-10-14 15:28:24 +00:00
Steven Wittens b5806c7595 #11503: Fixing bad t() 2004-10-13 20:29:12 +00:00
Steven Wittens a185443ed3 #11503: consistency improvements by Stefan 2004-10-12 16:16:22 +00:00
Steven Wittens 2c4a82bda2 #11503: (more) missing t() 2004-10-12 16:10:54 +00:00
Dries Buytaert 5407b630e3 - Orphaned the node_link() hook as per #9769. 2004-10-10 11:12:57 +00:00
Dries Buytaert bc5ec8ea09 - Fixed critical bug #10664: made comment in collapsed mode work. One more down. 2004-10-10 10:56:59 +00:00
Dries Buytaert f8e532f714 - Patch #4925 by erikhopp: comment module emits too many id="comment"s, so the comment form's one has been renamed to 'comment-form'. This is also more consistent with the 'node-form' one. 2004-10-09 06:43:50 +00:00
Steven Wittens bd7d38bd5b Hopefully fixing all filter issues with comments. 2004-10-07 14:33:54 +00:00
Dries Buytaert f9b92e0f68 - Patch #11316 by ankur: added missing %d in INSERT-query. 2004-10-05 21:42:58 +00:00
Steven Wittens c539391656 Fixing problems with filter formats and comments. 2004-10-05 19:45:32 +00:00
Dries Buytaert 407af36656 - Patch #11286 by Neill: fixed broken link in form description. 2004-10-05 05:08:01 +00:00
Dries Buytaert f97999d1a4 - Patch #10920 by jhriggs: fixed bug with comment moderation. 2004-09-30 18:13:25 +00:00
Steven Wittens 1298d2b9c9 Modified version of #10230: Put placement of filter format selector in a module's hands, and move it below the relevant textarea. 2004-09-28 19:13:03 +00:00
Dries Buytaert fc3676d50b - Patch #10977 by Gerhard: added node permission checks to the SQL queries.
NOTE: I had to modify the book module patch for it to work -- it was throwing SQL errors at me.
2004-09-27 20:10:29 +00:00
Dries Buytaert 002f6c9361 - Patch #10722 by drumm: the user's signature was not remembered when the 'my account' form was found to be invalid. 2004-09-20 20:02:42 +00:00
Dries Buytaert 5c7983c4de - Patch #8179 by JonBob: reintroduced menu caching. 2004-09-16 07:17:56 +00:00
Dries Buytaert 1606163718 - Fixed SQL problem in _comment_update_node_statistics(). 2004-09-14 20:29:34 +00:00
Dries Buytaert c09158c3f3 - Patch #10308 by Bart Jansens/ccourtne: fixed shadow copies.
- Patch #10308 by ccourtne: performance improvements: comment statistics are now cached in a new SQL table which significantly improves performance of the forum block and the forum pages.  These pages are about 3 times faster now!
2004-09-14 05:48:02 +00:00
Dries Buytaert 841d5a0cf8 - Bugfix: comment subject where not always enabled by default because the default value of comment_subject_field varies. 2004-09-11 13:45:23 +00:00
Steven Wittens 42f1c0c93c Comment.module:
Comment previewing was broken since 1.263, resulting in a double page.
2004-09-05 10:29:38 +00:00
Steven Wittens 51cf18e531 - #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly broken. 2004-08-22 17:03:42 +00:00
Dries Buytaert 94e30bf776 - Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks. 2004-08-21 06:42:38 +00:00
Dries Buytaert fa25c7a0ca - Code improvements by Stefan: use capital letters for header titles (and added some missing t() functions). 2004-08-19 15:41:57 +00:00
Dries Buytaert 83a739bd89 - Code improvements by Stefan: made all status messages consistent (and easier to translate). 2004-08-18 19:57:27 +00:00
Dries Buytaert 2f33b939c5 - Patch #9983 by Stefan: usability improvement: made sure all status messages start with a capital letter. 2004-08-16 18:02:48 +00:00
Steven Wittens cb36ef37cc #10033: by Jonbob, make sure no filter check is done until the first preview. 2004-08-13 18:17:10 +00:00
Steven Wittens 660f99287d The Input formats - filter patch has landed. I still need to make update instructions for modules and update the hook docs.
Here's an overview of the changes:
1) Multiple Input formats: they are complete filter configurations (what filters to use, in what order and with which settings). Input formats are admin-definable, and usage of them is role-dependant. For example, you can set it up so that regular users can only use limited HTML, while admins can free HTML without any tag limitations.
The input format can be chosen per content item (nodes, comments, blocks, ...) when you add/edit them. If only a single format is available, there is no choice, and nothing changes with before.

The default install (and the upgrade) contains a basic set of formats which should satisfy the average user's needs.

2) Filters have toggles
Because now you might want to enable a filter only on some input formats, an explicit toggle is provided by the filter system. Modules do not need to worry about it and filters that still have their own on/off switch should get rid of it.

3) Multiple filters per module
This was necessary to accomodate the next change, and it's also a logical extension of the filter system.

4) Embedded PHP is now a filter
Thanks to the multiple input formats, I was able to move the 'embedded PHP' feature from block.module, page.module and book.module into a simple filter which executes PHP code. This filter is part of filter.module, and by default there is an input format 'PHP', restricted to the administrator only, which contains this filter.
This change means that block.module now passes custom block contents through the filter system.
As well as from reducing code duplication and avoiding two type selectors for page/book nodes, you can now combine PHP code with other filters.

5) User-supplied PHP code now requires <?php ?> tags.
This is required for teasers to work with PHP code. Because PHP evaluation is now just another step in the filter process, we can't do this. Also, because teasers are generated before filtering, this would result in errors when the teaser generation would cut off a piece of PHP code.

Also, regular PHP syntax explicitly includes the <?php ?> tags for PHP files, so it makes sense to use the same convention for embedded PHP in Drupal.

6) Filter caching was added.
Benchmarking shows that even for a simple setup (basic html filtering + legacy URL rewriting), filtercache can offer speedups. Unlike the old filtercache, this uses the normal cache table.

7) Filtertips were moved from help into a hook_filter_tips(). This was required to accomodate the fact that there are multiple filters per module, and that filter settings are format dependant. Shoehorning filter tips into _help was ugly and silly. The display of the filter tips is done through the input format selector, so filter_tips_short() no longer exists.

8) A more intelligent linebreak convertor was added, which doesn't stop working if you use block-level tags and which adds <p> tags.
2004-08-10 18:34:29 +00:00
Dries Buytaert 821c6d2d17 - Patch #9812 by Adrian: fixed some PostgreSQL/ANSI SQL compabitibility
problems created by the new comment and node access permissions code.
2004-08-06 21:00:43 +00:00
Dries Buytaert c6b1eaa20d - Patch #9775 by TDobes: consistency operation. Changed to "edit foo," "delete foo," and "view foo" links into simply "edit," "delete," and "view". 2004-08-05 05:40:53 +00:00
Dries Buytaert 254256de82 - Partial patch #9643 by Bart:
+ the confirmation before deleting a comment was missing a check_output.
   + after editing a comment, two pages were shown (two calls to theme('page',..)), replaced this by a drupal_goto.
2004-08-03 17:36:46 +00:00
Dries Buytaert 4aefe695fb - Fixed broken link + removed redundant form descriptions (there is no point
in repeating the title).
2004-08-01 19:20:19 +00:00
Dries Buytaert 9b49f01f11 - Patch #7466 by TDobes: comments module would add a link of register even if "user_register" was set to 0. 2004-07-14 05:44:36 +00:00
Dries Buytaert dbd1c4f1da - Patch #9253 by Morbus: fixed bug that manifested itself with a duplicate page when a user has submitted a comment that goes into the moderation queue. Part of the problem seemed to be that the "your comment is in the moderation queue" message was set as a theme print, as opposed to a drupal_set_message(). This patch fixes that, as well as adding a drupal_goto() to redirect the user back to where they came. 2004-07-13 20:51:29 +00:00
Dries Buytaert bbb41d0f71 - Patch by JonBob: updated the comment module to take advantage of the latest
menu system improvements.
2004-07-10 18:11:18 +00:00
Dries Buytaert e21f238ad7 - Patch 8756 by Morbus:
* improves the doxygentation and help text.
* deletes comment_admin and comment_page; using proper callbacks instead.
* related/modified callbacks/menus/functions were tweaked to not use arg() at all.
* the "settings" subtab was weighted to -10 so it'd appear first (in prep of JonBob's local default).
* moderation pages weren't properly showing defined votes or thresholds; fixed.
* when moderation votes or thresholds didn't exist, no error stating as such was shown; fixed.
* we show "submit votes" on the moderation votes page only when votes actually exist.
* fixes the (broken in CVS) comment/reply and comment/edit features.
* fixes the (broken in CVS) "save settings" for comment view options and comment moderation.

In addition I:

* fixed a couple warnings introduced by Morbus' patch.
* fixed a couple translation bugs.
* fixed comment_node_url().

I also found that:

* the collapsed comment views (i.e. 'threaded list - collapsed) are broken.
2004-07-10 07:58:47 +00:00
Dries Buytaert 82c9fab7c7 - Patch #9010 by Morbus: reorganized the order of functions in the comment
module.
2004-07-08 19:58:10 +00:00
Dries Buytaert 898bdeffaf - Marked required fields on the node (story, book, page, blog) and comment
forms using the $required argument of the form_ functions.

- Replaced all Optional's and Required's from the taxonomy forms with proper
  use of the form_ functions.

Please check your contributed modules too!
2004-07-08 15:24:30 +00:00
Dries Buytaert 3568ed57e1 - Moving the title.module from core to contrib as discussed on the mailing list. 2004-07-07 20:18:22 +00:00
Dries Buytaert 4bbc277881 - Patch #9046 by asimmonds: comment signature option was not displayed. 2004-07-05 05:42:06 +00:00
Dries Buytaert fe2b3e7c00 - Patch by Steven and me: refactored the form handling of nodes. The node system is now using form_set_error() and friends like the rest of Drupal does. This makes for both a consistent user experience and consistent code. It simplifies the forms and validation code, however, it does change the node API slightly:
* The _validate hook and the _nodeapi('validate') hook of the node API (1) no longer take an 'error' parameter and (2) should no longer return an error array. To set an error, call form_set_error().

    * The _form hook of the node module no longer takes a form hook and should not worry about displaying errors. Ditto for _nodeapi('form_post') and _nodeapi('form_pre').
2004-07-04 16:50:02 +00:00
Dries Buytaert 23142e0efb - Patch #8757 by Morbus Iff: fixed redirection after comment moderation. 2004-06-23 05:41:16 +00:00
Dries Buytaert ad3c6f345e - Patch #8681 by asimmonds: more help text updates 2004-06-21 08:26:20 +00:00
Dries Buytaert bd49f9d1b3 - Patch #8681 by Stefan: more help fixes. 2004-06-20 20:12:00 +00:00
Dries Buytaert 4b449a7e5d - Patch #8670 by asimmonds: spelling fixes. 2004-06-20 19:43:28 +00:00