Commit Graph

541 Commits (9af602fe17e6346360e640e403843494c84ecca0)

Author SHA1 Message Date
Dries Buytaert ce358d8c7a - Patch by maynich: added missing t() function. 2007-02-01 21:44:36 +00:00
Dries Buytaert 489903a08e - Patch by chx: first crack at re-implementing tabs. 2007-01-31 21:26:56 +00:00
Dries Buytaert 1126d5cfe9 - Patch by Wesley: made it easier to theme the forum overview page. 2007-01-31 16:01:17 +00:00
Dries Buytaert 05a708fb06 - Patch by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks. 2007-01-31 15:49:26 +00:00
Dries Buytaert 3b543c18f5 - Rollback of E_ALL patch. Too much extra breakage. 2007-01-25 22:14:06 +00:00
Dries Buytaert 89c8b3feaf - Patch by webchick: prevent double-escaping. 2007-01-25 21:49:32 +00:00
Dries Buytaert 03752e35a4 - Patch by chx et al: faster menu system. HEAD is temporary broken and there is no upgrade path yet. 2007-01-24 14:48:36 +00:00
Dries Buytaert 74e3c74b81 - Always check the username. 2007-01-10 15:17:51 +00:00
Steven Wittens 365439ffdf : Code consistency, capitalization of class names. 2007-01-05 05:32:23 +00:00
Neil Drumm 3111774ef7 by edkwh. Make forum and container names links in forum administration. 2006-12-25 22:22:42 +00:00
Dries Buytaert fdef98345a - Patch by dww: fixing forum topic teasers. 2006-12-23 19:30:46 +00:00
Dries Buytaert bdf5dc9d1d - Patch by yched: path node/add/[poll|forum|blog] defined twice. 2006-12-10 20:34:03 +00:00
Steven Wittens 47f527fbbe Fixing commit of (thanks webernet) 2006-12-01 23:17:26 +00:00
Steven Wittens 0ea4e1c5f6 : Conditional loading of (some) module.css files 2006-12-01 22:47:53 +00:00
Dries Buytaert f94622db5d - Patch by neclimdul: added some help text. 2006-11-28 09:48:45 +00:00
Neil Drumm b5bf8a8f47 by Gurpartap. Move enclosing elements outside of their t(). 2006-11-26 02:20:01 +00:00
Neil Drumm 0b61aef454 by webchick. Remove misleading links. 2006-11-25 09:07:26 +00:00
Dries Buytaert 6ae6dc0d85 - Patch by webchick, neil, dww et al: show version numbers on modules page. 2006-11-21 20:55:36 +00:00
Dries Buytaert b004f328ee - Patch by webchick and neclimdul: clean up documentation that is superseded by the new 'by module' administration dashboard. 2006-11-21 20:14:19 +00:00
Neil Drumm 392041edf6 by m3avrck. Better display for long book page and forum topic titles. 2006-11-14 06:30:10 +00:00
Steven Wittens 36d44fbfb0 : Use 'Sentence capitalization' for menu items, page titles, form items, etc 2006-10-22 08:28:47 +00:00
Dries Buytaert 18b297abf8 - Patch by merlinofchaos, webchick, moshe, neclimdul et al: added package support to the modules page. 2006-10-05 15:47:57 +00:00
Neil Drumm 772d7624ba by Wesley Tanaka. Clean up some PHP notices. 2006-10-04 06:07:05 +00:00
Steven Wittens f24e304fa3 : Dependency system for core 2006-10-02 16:49:08 +00:00
Neil Drumm 030f9741b7 by edkwh. Interim fix for being able to delete forums and forum containers. 2006-09-23 08:10:40 +00:00
Neil Drumm 66fe517e0b by chx. Redirect back to the forum when logging in from there. 2006-09-05 02:48:33 +00:00
Dries Buytaert 6c406e39a1 - Patch by beginner, eaton et al: fixed problem with editing container description of forums. 2006-09-03 14:42:12 +00:00
Neil Drumm 94098f7e93 by webchick and neclimdul. Uninstall module API. 2006-09-01 07:40:08 +00:00
Dries Buytaert 49fa25fb76 - Rollback of patch : clean up node submit hooks. Needs more thinkering.
Restores the old node API.
2006-08-31 21:58:36 +00:00
Dries Buytaert c64db1da29 - Patch by earl, webchick, neclimdul et al: .info files 2006-08-31 20:22:37 +00:00
Dries Buytaert 5524604a95 - Patch by Moshe et al: clean up node submit hooks. 2006-08-29 18:43:26 +00:00
Neil Drumm bceaf8f0da Eaton and chx. Replace $_POST['edit'] with $_POST. 2006-08-29 09:12:03 +00:00
Neil Drumm 07ad89db03 by pwolanin. Forum last post time was considering non-forum items. 2006-08-26 00:19:02 +00:00
Neil Drumm 6ea9204889 by webchick. Fix forums. 2006-08-25 08:55:04 +00:00
Dries Buytaert 2d05938082 - Patch by m3avrck: Consolidate the drupal_add_link() calls. 2006-08-23 07:23:09 +00:00
Neil Drumm a58d877108 by m3avrck. Put all the feed icons in the same place. 2006-08-23 05:55:38 +00:00
Dries Buytaert 7178f2f99e - Patch by Chris Johnson: remove int display width declarations from MySQL create table statements. 2006-08-20 06:38:50 +00:00
Steven Wittens 55eec8f66f : module_exist() -> module_exists() 2006-08-20 05:57:41 +00:00
Dries Buytaert 7de41539df - Patch by chx, eaton, moshe, et al: enable programmaticaly submitted forms via the pull model. 2006-08-18 18:58:47 +00:00
Steven Wittens 81938a3cdc : Introduce placeholder magic into t()
See: http://drupal.org/node/64279#t-placeholders
2006-08-18 12:17:00 +00:00
Neil Drumm bf3487c0b1 by sammys, sync posgres install and change unsigned annotation. 2006-08-15 05:25:20 +00:00
Neil Drumm 3cc2b1e3d7 by m3avrck and timcn, split up drupal.css by module. 2006-08-14 07:14:50 +00:00
Dries Buytaert ce85b7c7f8 - Patch by Eaton, Royboy, chx, et al: building $node->body with arrays like FAPI for viewing.
Once again, we're paving the path for CCK in core ... :)
2006-08-10 15:42:33 +00:00
Dries Buytaert 729fa6c11b - Patch by timcn: corrected various paths in the documentation. 2006-08-07 15:04:16 +00:00
Neil Drumm 129c8eb18c by chx, webchick, Jaza, Eaton, mathieu, and myself. Configurable node types. 2006-08-06 23:00:42 +00:00
Neil Drumm 5c57a53165 by pwolanin, allow non-forum category changes while leaving a shadow copy 2006-08-05 01:42:56 +00:00
Neil Drumm cd430165d7 by RobRoy, various code cleanup. 2006-08-05 00:26:36 +00:00
Neil Drumm 6839ce965f by paranojik, fix a bug preventing editing of forums 2006-08-05 00:13:06 +00:00
Dries Buytaert a7f67e01de - Patch by sammys: PostgreSQL support for install system. Woot! :) 2006-08-04 06:58:44 +00:00
Dries Buytaert b138793b68 - Patch by Earl et al: give Drupal an overall administration page ... :-) 2006-07-31 11:25:55 +00:00
Dries Buytaert 3a7b64ae03 - Patch by timnc: remove message_na(). 2006-07-29 17:56:41 +00:00
Neil Drumm 7d9f57ff63 by Flanker, add missing CVS Ids. 2006-07-14 01:05:10 +00:00
Dries Buytaert 1c75a210bd - Patch by chx, jeremy, steven, eaton, webchick, amazon, neil, nedjo et al: an initial install system for Drupal core. 2006-07-13 13:14:25 +00:00
Neil Drumm eaf5f2e029 by wtanaka, properly break words 2006-07-11 07:04:34 +00:00
Dries Buytaert 58752cfaa2 - Patch by me:
+ reorganized ?q=admin/settings
   + deprecated the _settings hook
2006-07-10 19:27:52 +00:00
Dries Buytaert e93f8be871 - Patch by nedjo: upper-cased all TRUE/FALSE/NULL constants. 2006-07-05 11:45:51 +00:00
Neil Drumm 59aa2ae8e8 by Steven, remove # prefix from link array keys. 2006-07-04 08:59:05 +00:00
Neil Drumm af6c897056 by killes, remove an extra condition. 2006-06-12 03:44:54 +00:00
Dries Buytaert 226eed7047 - Patch by webchick: make sure that the forum vocabulary shows up first. 2006-06-06 15:35:39 +00:00
Dries Buytaert cf3bfe006b - Patch by Morbus: fixed taxonomy links. 2006-05-29 12:58:19 +00:00
Dries Buytaert 1b291a2917 - Patch by Ber, m3averck et al: allow overriding of links returned by modules 2006-05-18 14:58:57 +00:00
Dries Buytaert e1304697c4 - Patch by hunmonk: fixed problem with deleting forum containers. 2006-05-08 15:16:16 +00:00
Neil Drumm 9cff02e91b by Zen, Double spaced sentences clean up 2006-05-07 00:08:36 +00:00
Gerhard Killesreiter d6a164c400 , drupal_get_destination, pager and tablesort array handling, patch by Steven 2006-04-13 08:25:27 +00:00
Steven Wittens 9794b5538e - : Generic, permissive admin XSS/HTML filtering for mission/footer/...
- Clean up some raw output
2006-04-07 15:32:17 +00:00
Gerhard Killesreiter 3000db0d13 , adding new forum topic, forum not pre-selected in pull down menu., fix by Jonas Kvarnstrom, patch by drumm 2006-04-06 18:36:57 +00:00
Steven Wittens be0b774cbc - : Make taxonomy delete vocabulary consistent with other taxonomy hook ops 2006-04-06 04:21:12 +00:00
Steven Wittens ec04325bb2 - Make forum_hot_topic scale a bit more logical 2006-04-06 04:18:30 +00:00
Gerhard Killesreiter 603a6618ee , Forum vocabulary does not handle standard vocabulary features correctly, removed these features by means of formapi, patch by profix898, with some love by dopry and chx 2006-03-31 06:43:46 +00:00
Gerhard Killesreiter 002fee7aae , remove title validation, already enforced by #required, patch by Moshe 2006-03-27 18:02:48 +00:00
Gerhard Killesreiter 0ed9f460dc , missing {}, patch by Cvbge 2006-03-25 10:52:40 +00:00
Gerhard Killesreiter 717d6e30c5 , forum "last post" column show oldest, not most recent, patch by Zen. 2006-03-24 10:13:10 +00:00
Gerhard Killesreiter d11c07502d , Forum and taxonomy term delete work only superficially, patch by Zen 2006-03-23 21:46:35 +00:00
Gerhard Killesreiter 40e2a3b379 , Moving forum post leaving shadow copy results in warning, patch by Zen/webchick 2006-03-08 22:11:54 +00:00
Dries Buytaert 7add598ee2 - Patch by chx, webchick et al: fixed various problems with db_rewrite_sql, made db_rewrite_sql slightly more robust. 2006-03-08 15:13:20 +00:00
Dries Buytaert d2865f2a99 - Patch by Zen: fapi conversion + minor fixes
* converts forum_admin to fapi.
    * handles invalid terms in hook_menu
    * adds comments, fixes typos etc.
    * reorganises functions a little bit - moves hook_menu to the top.. groups hooks together and forms together
2006-03-07 19:03:02 +00:00
Dries Buytaert d7e9371e94 - Removing whitespace 2006-03-03 08:37:47 +00:00
Gerhard Killesreiter 1d865eb4c4 , forum.module forms ignore proper form submission path, patch by merlinofchaos 2006-02-28 13:36:59 +00:00
Dries Buytaert 19afd2ceb7 - Patch : it was impossible to create shadow topic. (Today's critical bugfix #2.) 2006-02-23 12:21:15 +00:00
Dries Buytaert 3603fe1bd8 - Patch : www.drupal.org -> drupal.org. (Today's critical bugfix #5.) 2006-02-21 18:46:54 +00:00
Dries Buytaert f030164bcb - Patch by Morbus: fixed double encoding issue. 2006-02-15 20:47:35 +00:00
Dries Buytaert 91152ba7af - Patch by m3avrck: clean up forum topic navigation. Bring it in line with book.module. 2006-02-10 05:05:44 +00:00
Dries Buytaert 88490f6413 - Patch by Cvbge: quickfix postgresql 2006-02-09 08:52:03 +00:00
Dries Buytaert a723204ee4 - Patch by wtanaka: performance improvement for _forum_topics_read. 2006-02-09 08:09:55 +00:00
Dries Buytaert 87f5947e51 - Patch by wtanaka: performance improvement: active topics block selects an unused column. 2006-02-04 09:56:04 +00:00
Dries Buytaert 31293d5a2e - Patch by stmind: fixed problem with node-level permissions and forums. 2006-02-01 14:19:44 +00:00
Dries Buytaert 8c02d4ec93 - Patch by Morbus: filter_form shouldn't default to #weight 0
When a form element doesn't specify a #weight, it is assumed internally as #weight 0. However, to ensure that our form elements display visually *as they were defined in the array* we, in form_builder, count the number of elements, divide by 1000, and set that as the weight:

# Assign a decimal placeholder weight to preserve original array order
if (!isset($form[$key]['#weight'])) {
  $form[$key]['#weight'] = $count/1000;
}

The above code will set the #weights of elements that have not defined a weight to something like 0 (first element in array definition), 0.001, 0.002, and so on. However, anytime a form element *explicitly* defines a #weight of 0, that #weight is kept at exactly 0, which would cause that form element to appear BEFORE the elements that didn't have a #weight defined (and thus received a #weight such as 0.002).

Consider the following pseudo example:

$form['game_title'] = array(
    '#type' => 'textfield',
    ...
    );
$form['game_description'] = array(
    '#type' => 'textarea',
    ...
    );
$form['game_format'] = filter_form(variable_get('game_format', NULL));
return $form;

Here, we're not definiing weights on our two textfields. We then add an filter_form. The second parameter of the filter_form is $weight, which defaults to 0. After this $form hits form_builder, we have weights 0 (game_title), 0.001 (game_description), and 0 (filter_form) respectively. This is then sorted by weight, which causes filter_form (the third element in the array) to appear BEFORE game_description (0 is lighter than 0.001).

The short lesson is: explicitly defining #weight 0 for a form element is probably a bad idea. This patch changes the default #weight of filter_form to NULL, instead of 0, and also removes any other explicit setting of #weight to 0 in core.
2006-01-20 09:04:34 +00:00
Dries Buytaert 10d7f7731b - Patch by chx: made categories with forum topics work again. 2006-01-19 17:55:54 +00:00
Dries Buytaert e84a98a22b - Patch by Morbus Iff: input filters aren't sorting correctly infForms API. 2006-01-19 08:54:41 +00:00
Dries Buytaert 52507806eb - Patch by Morbus: corrected the weight of form item titles of nodes. 2006-01-18 19:29:17 +00:00
Dries Buytaert 92acb92699 - Patch by Ber and Moshe: bugfix + code improvement: clean up some of the taxonomy loading code. 2006-01-10 12:35:20 +00:00
Dries Buytaert b170d83d14 - Removed global . 2006-01-09 10:12:30 +00:00
Dries Buytaert 4e35060451 - Patch 42591 by Simon/me: fixed problem with deleting forum and book revisions. 2005-12-31 13:04:40 +00:00
Dries Buytaert 799ceae29b - Patch by Cvbge: added missing format_plural(). 2005-12-31 11:21:32 +00:00
Dries Buytaert ea2d791095 - Patch 41169 by Chris: got rid of expensvie object 2 array casts. 2005-12-31 10:48:56 +00:00
Steven Wittens 79a193a2d2 - : Use standardized feed icon for RSS 2005-12-29 04:46:40 +00:00
Dries Buytaert 1ef56e36a0 - Patch by wulff: added 2 missing t() functions. 2005-12-26 11:26:21 +00:00
Dries Buytaert 544aefad8a - Modified patch : improved themability of forum icons (makes it possible to use animated gifs) + removed forum setting. 2005-12-11 12:44:39 +00:00
Dries Buytaert 99e27195e8 - Patch by Gerhard: assign default forum when adding a forum topic from within a forum. 2005-12-10 19:58:40 +00:00
Dries Buytaert 32d9af4916 - Patch by Gerhard: fixed problem with taxonomy terms not being selected. 2005-12-06 12:20:24 +00:00
Dries Buytaert c4c5ce122d - Patch by Gerhard: delete extra data when a revision is deleted. 2005-12-05 16:07:18 +00:00
Dries Buytaert 28fdb3975e - Patch by chx: obliterate nodeapi op form in favor of the forms API's way of doing things. Tested with help from webchick. 2005-12-05 09:11:33 +00:00
Dries Buytaert 94f290c8ee - Patch by wtanaka: forum icon does not display as locked (aka closed) if comments are "disabled" instead of "read only". 2005-12-03 10:02:23 +00:00
Dries Buytaert 272c6b95fa - Patch by killes: fixed typo in function call: _forum_get_vid -> _forum_get_vid(). 2005-12-02 15:38:58 +00:00
Dries Buytaert 26bd449860 - Patch by chx: rename '_execute' to '_submit' and '#execute' to '#submit'. 2005-12-02 15:21:01 +00:00
Dries Buytaert 90535c33aa - Patch by wtanaka: fixed XHTML validation problem. 2005-11-26 19:45:31 +00:00
Dries Buytaert d4692d569c - Patch by webchick: fixed the sizes of the textareas on the node edit forms. 2005-11-23 16:18:28 +00:00
Dries Buytaert aeed4cd8e4 - Patch by webchick: forms API simplificiations. 2005-11-12 11:26:16 +00:00
Steven Wittens 85492ae9a5 : node_validate was called twice 2005-11-12 02:54:13 +00:00
Dries Buytaert b4644f8e66 - Patch by hunmonk: admin batch delete broken, node_delete needs reworked.
This commit changes the node_delete() API.  A list of affected modules is available at http://drupal.org/node/36250#comment-52963.
2005-11-04 19:40:28 +00:00
Dries Buytaert a8b218827a - Patch by webchick / Kieran / documentation team: improved admin help of core modules! / 2005-11-01 10:17:34 +00:00
Dries Buytaert da1de1df9f - Patch by stefan: removed some deprecated code from forum.module! Yay. 2005-10-28 13:56:26 +00:00
Dries Buytaert 0f37358003 - Patch by Cvbge/ntosi: fixed SQL query problem on PostgreSQL 8. 2005-10-28 13:40:17 +00:00
Steven Wittens 9f143557a3 - : Forum form api typo 2005-10-28 00:42:55 +00:00
Steven Wittens 6777fdb193 - : Make forum taxonomy links redirect to forums rather than taxonomy pages. 2005-10-21 11:12:46 +00:00
Dries Buytaert 75fe6b6c0a - Patch by chx, adrian, et al: another batch of form API changes/fixes. 2005-10-11 19:44:35 +00:00
Dries Buytaert a1ae4da70b - Removing tabs and trailing whitespaces. 2005-10-07 06:51:43 +00:00
Dries Buytaert 7e1527ee61 - Patch : new form API by Adrian et al.
TODO:
  + The contact.module was broken; a new patch for contact.module is needed.
  + Documentation is needed.
  + The most important modules need to be updated ASAP.
2005-10-07 06:11:12 +00:00
Dries Buytaert 9981e4326d - Patch by beardedstoat and tostinni: always add a secondary sort order so the newest comments are on top. 2005-10-01 13:30:06 +00:00
Dries Buytaert cba3391b1f - Fixed spaces 2005-09-27 15:06:35 +00:00
Dries Buytaert 67e68fc679 - Patch by Neil: move pagers out of table. 2005-09-24 07:53:26 +00:00
Dries Buytaert 61740bd8ee - Patch : allow the node title forms to be customized. 2005-09-23 08:47:13 +00:00
Dries Buytaert 2dddd9e532 - Patch by menesis: fixed typo/left-over in switch-statement. 2005-09-08 19:22:28 +00:00
Dries Buytaert 16262e03d5 - Patch by Neil: improved the HTML/CSS of the user login block. 2005-09-07 20:56:00 +00:00
Dries Buytaert 67de4f67d2 - Usablity improvement: check whether the comment module is enabled. If not,
show an error message.
2005-09-06 19:38:56 +00:00
Dries Buytaert d9d6a6e05c - Patch by Gerhard: improved node revisions!
All node revisions were stored in a serialized field in the node table and retrieved for _each_ page view although they are rarely needed. We created a separate revisions table which would be in principle identical to the node table, only that it could have several old copies of the same node.  This also allows us to revision-related information, and to provide log entries to non-book pages when a new revision is being created.

TODO:

1. Provide upgrade instructions for node module maintainers!
2. Upgrade modules that implement node types.
3. Provide an upgarde path for revisions.  Dependency on the upgrade system.
2005-08-30 15:22:29 +00:00
Dries Buytaert 246274eb16 - Renamed _node() to _node_info()! We reserve _node for _nodeapi. 2005-08-29 19:58:49 +00:00
Dries Buytaert 8f32c39db2 - Patch by chx: fixed bug in forum module and tidied up the taxonomy_save_*() functions. 2005-08-28 15:58:52 +00:00
Dries Buytaert c9fc300b1f - Patch by Chx: multiple node types were broken so we refactored
part of the node system!  If you have a module that implements node
  types, you'll have to udpate its CVS HEAD version.

  We replaced _node_name() and _node_types() by _node().  The new _node()
  hook let's you define one or more node types, including their names.
  The implementation of the _node() hook needs to:

   return array($type1 => array('name' => $name1, 'base' => $base1),
                $type2 => array('name' => $name2, 'base' => $base2));

  where $type is the node type, $name is the human readable name of the type
  and $base is used instead of <hook> for <hook>_load, <hook>_view, etc.

  For example, the story module's node hook looks like this:

    function story_node() {
      return array('story' => array('name' => t('story'), 'base' => 'story'));
    }

  The page module's node hook module like:

    function page_node() {
      return array('page' => array('name' => t('page'), 'base' => 'page'));
    }

  However, more complex node modules like the project module and the
  flexinode module can use the 'base' parameter to specify a different base.

  The project module implements two node types, proejcts and issues, so it
  can do:

    function project_node() {
      return array(
       array('project_project' => array('name' => t('project'), 'base' => 'project'),
       array('project_issue' => array('name' => t('issue'), 'base' => 'project_issue'));
    }

  In the flexinode module's case there can only one base ...

  This hook will simplify the CCK, and will make it easy (or easier) to merge
  the story and page module.

  In addition, node_list() became node_get_types().  In addition, we created
  the following functions: node_get_name($type) and node_get_base($type).
2005-08-28 15:29:34 +00:00
Dries Buytaert 7b8a409675 - Patch by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert 97bc92f6b9 - Patch by DriesK: forum vid remains when vocabulary is deleted. Prevents forum topics from getting lost. 2005-08-18 21:53:55 +00:00
Dries Buytaert 7625a4e91a - Patch by Gerhard: format_name($object) -> theme('username', $object).
Usernames can now be themed; eg. an icon/avatar could be added.

  TODO: update contributed modules + update the migration docs.
2005-08-01 05:14:05 +00:00
Dries Buytaert 87e5399a9e - Patch by Morbus/drumm: fixed bugs with taxonomy_save_xxx() functions.
TODO: update image module too?
2005-07-18 19:31:16 +00:00
Dries Buytaert 58aee8cdad - Patch by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
2005-06-27 18:33:33 +00:00
Dries Buytaert f12d5c5347 - Patch by budda/Robin: forum icons are broken when you change the forum icon path. TODO 1: the forum icons should probably be configurable on a per-site or per-theme basis. TODO 2: I spent 5 minutes looking for this setting. 2005-06-19 08:43:59 +00:00
Steven Wittens a597354bcb - Code cleanup: improve format_plural usage, add some missing placeholder/check calls, and introduce API for <link> tags. 2005-05-31 21:14:27 +00:00
Steven Wittens f3cbb10d8e - : Improved forum admin texts. 2005-05-25 06:41:51 +00:00
Steven Wittens 0ff0af1601 - : Only show forum blocks if there are topics to list. 2005-05-25 03:59:38 +00:00
Dries Buytaert 235a39e589 - Removing the /*! USE INDEX */. It actually degrades performance significantly. 2005-05-20 11:04:06 +00:00
Steven Wittens 89ae34de47 - : More sensible status messages for forum admin ("created forum" instead of "created term"). 2005-05-07 01:48:06 +00:00
Steven Wittens 85bf4a010b - Oopsie 2005-05-06 06:41:59 +00:00
Steven Wittens 0d134850d9 - Missing theme placeholder in forum delete message. 2005-05-06 06:32:13 +00:00
Dries Buytaert 2debcfb1ef - Patch by Stefan and Djun: improved status messages.
TODO: we should write down a couple guidelines for these document them in
        the PHPDoc code of drupal_set_message()!  .
2005-05-05 22:22:46 +00:00
Dries Buytaert a76a1e1f3f - Patch 20910 by chx: centralize print theme page. 2005-04-24 16:34:36 +00:00
Dries Buytaert c9c947619f - Added missing {}. 2005-04-12 18:55:33 +00:00
Dries Buytaert d0d5b52ac1 - Patch by Robin Monks: added help text for ?q=admin/forum/configure 2005-04-11 18:21:59 +00:00
Dries Buytaert 5c56cd5b33 - Patch by nysus: improved the forum module help texts. 2005-04-11 17:54:13 +00:00
Dries Buytaert 38eef18e98 - Patch by chx: fixed problem forum container getting lets when editing a forum. 2005-04-08 11:07:57 +00:00
Dries Buytaert a3e9b35afc - Patch by JonBob: improved consistency of module descriptions. We should write guidelines for this -- maybe in the PHPDoc code of the _help hook. 2005-04-01 15:55:02 +00:00
Dries Buytaert 7bdcba1720 - Patch by Uwe: corrected many typo's in the documentation and code comments 2005-03-31 21:18:08 +00:00
Steven Wittens be14203534 - : Clean up plain-text checking (see drupal-devel!) 2005-03-31 09:25:33 +00:00
Steven Wittens bbae5e815d - : Display message to forum admin if there are no forums yet. 2005-03-27 22:51:47 +00:00
Dries Buytaert 571369c62f - Patch by nysus and Morbus: improved the forum module's help texts. 2005-03-23 21:53:10 +00:00
Dries Buytaert 8e1dd1d625 - Added XML-icons on forum listings. Many people will find this useful to track updates/changes. 2005-03-21 19:45:35 +00:00
Steven Wittens c3f1f7345e - (Stefan): Always use paragraph tags around page help text. 2005-03-18 07:07:04 +00:00
Dries Buytaert 82565266b8 - Patch by Periastron: as one navigates down through the forum taxonomy, the title used to change to the current term, but now it always just displays the vocabulary name. I have attached a patch that restores the previous behaviour. It looks like the regression may have been introduced in some changes to theme_forum_display. 2005-03-16 21:07:59 +00:00
Dries Buytaert 3b70f0015f - Patch by nysus: when trying to delete a forum or container, multiple instances of a Drupal page appear nested inside of each other when the confirmation of deletion page is displayed. 2005-03-13 21:04:43 +00:00
Dries Buytaert 743b10078a - Patch by nysus: improved the forum container explanation. 2005-03-09 14:07:24 +00:00
Steven Wittens 198ec98f75 : Unify confirmation messages (and make them themable) 2005-03-03 20:51:27 +00:00
Dries Buytaert 749f15e7c0 - Modified patch by Neil: currently the two forum topic blocks share a number of topics in block setting. This is a bit confusing since configuring one blockshould not affect another block. Fixed some indentation as well. 2005-03-03 20:02:07 +00:00
Steven Wittens 84b7defc07 - Bugfix: admin/forum tabs should not appear on edit forum/container pages. 2005-03-03 05:10:28 +00:00
Dries Buytaert 39adda1687 - Patch by Adrian: more PostgreSQL fixes. Committed part of the patch:
1. Removed a duplicate line from the changes to update.inc.
   2. Excluded the session.inc changes: they did not make sense to me.
   3. Excluded the search related changes in the node and search module. According to Steven these are not correct.
2005-02-27 15:40:35 +00:00
Steven Wittens fb4b224a37 : Move forum settings to configure tab (drumm) 2005-02-26 23:53:39 +00:00
Dries Buytaert f228b1cb9c - Patch by kbahey: separated the forum block for sake of consistency with other blocks. 2005-02-10 19:14:50 +00:00
Dries Buytaert 993ea0c6c5 - Patch by chx: generalized node_rewrite_query to db_rewrite_query. 2005-01-29 22:02:37 +00:00
Dries Buytaert 92320b2b21 - Patch by ccourtne and walkah: added admin screens to maintain forums instead of forcing the user to add a taxonomy. 2005-01-28 15:47:03 +00:00
Dries Buytaert 7415e0b1c8 - Patch by Neil: moved the submission guidelines found in forum, story, and blog and the minimum number of words found in story and blog (blog had a slight bug) into the node module. 2005-01-26 22:59:41 +00:00
Dries Buytaert cdc4ca816d - Patch by Neil: made the forum module suggest a menu item. 2005-01-24 21:01:57 +00:00
Dries Buytaert aacfec0fc1 - Patch by Drumm: code improvement: theme_forum_display() has no business calling theme_page(). Lets have it return the output and then forum_page() can put it in a page. 2005-01-22 08:38:25 +00:00
Steven Wittens 09bd156ba2 - Fix tracker pager count query being wrong (it did not return a count but a set, and it counted nodes with more than 1 comment as multiple nodes).
- Clean up various SQL queries: removing literally inserted data (db_escape_string is evil!), fixing single "%" which should be "%%", fixing integers being compared as strings.
2005-01-19 01:46:25 +00:00
Steven Wittens e7edb55d63 - The real code fixes ;) 2005-01-17 19:00:03 +00:00
Dries Buytaert 971a0e24aa - Patch by chx: made it possible to rewrite node queries. 2005-01-16 18:44:49 +00:00
Dries Buytaert fc143ca3af - Modified patch by killes: fixed some PHP5 problems. 2005-01-04 20:54:23 +00:00
Dries Buytaert 2b17b3a966 - Patch by Neil: less ways to set the page title.
* Less logic in theme code.
   * Encourages use of the menu system.
   * Easier to find where a title or breadcrumb comes from in other people's code because there are less places to look. Look in menu and then grep for the appropriate set function. Looking for calls to theme_page() is hard because there are too many of them.
   * Very slightly more efficient.
2004-12-15 21:19:42 +00:00
Dries Buytaert 4726c93156 - Patch by Moshe: got rid of the semi-implemented 'page link' feature. All themes currently support primary and secondary links so page links are now deprecated. Check your contributed modules and update them accordingly. 2004-11-24 22:56:21 +00:00
Dries Buytaert 9574766ad8 - Patch by Stefan: wrapped the help texts in <p></p> tags. Helps improve consistency. 2004-11-23 22:20:41 +00:00
Dries Buytaert fa97839088 - Patch 13180 by chx: renamed check_query() to db_escape_string() and implemtented it properly per database backend.
Read the manual for pg_escape_string:  "Use of this function is recommended instead of addslashes()." Or read sqlite_escape_string: "addslashes() should NOT be used to quote your strings for SQLite queries; it will lead to strange results when retrieving your data."
2004-11-21 08:25:17 +00:00
Dries Buytaert 9979aceab0 - Patch by Stefan: various small consistency/usability improvements. 2004-11-15 11:16:39 +00:00
Dries Buytaert 7a5884cd74 - Patch : added 'edit own forum topics' permission. 2004-11-07 19:28:24 +00:00
Dries Buytaert 6f7aa2a095 - Patch by killes: forum topics could be displayed multiple times when node-level permission were used. 2004-11-06 11:59:48 +00:00
Dries Buytaert 1821eb13e6 - Removed some dead code. 2004-11-06 11:54:09 +00:00
Dries Buytaert b3e3f8ae37 - Updated forum_block() to pass comment_count's to node_title_list(). This eliminates up to 10 SQL queries (sometimes less) for each non-cached page view on drupal.org. Derived from ccourtne's patch. 2004-11-04 21:05:06 +00:00
Dries Buytaert 4fa64b57c2 - Patch by Axel: fixed typo in SQL query: h.hid -> h.nid 2004-11-03 22:46:53 +00:00
Dries Buytaert b3adcf05a3 - Patch by Neil Drumm: block module configuration improvements.
The primary goal of this patch is to take the 'custom' and 'path' columns of the block overview page and make them into something understandable. As of Drupal 4.5 'custom' lacked an explanation which wasn't buried in help text and path required dealing with regular expressions.

Every block now has a configuration page to control these options. This gives more space to make form controls which do not require a lengthy explanation. This page also gives modules a chance to put their block configuration options in a place that makes sense using new operations in the block hook.

The only required changes to modules implementing hook_block() is to be careful about what is returned. Do not return anything if $op is not 'list' or 'view'. Once this change is made, modules will still be compatible with Drupal 4.5. Required changes to core modules are included in this path.

An additional optional change to modules is to implement the additional $op options added. 'configure' should return a string containing the configuration form for the block with the appropriate $delta. 'configure save' will come with an additional $edit argument, which will contain the submitted form data for saving. These changes to core modules are also included in this patch.
2004-10-31 07:34:47 +00:00
Dries Buytaert f1a087e376 - Patch by Moshe: deprecated the _content hook.
TODO:
   + Update Doxygen hook list (if required).
   + Document this in the developer's upgrade section.
2004-10-23 17:18:23 +00:00
Dries Buytaert 10f329c057 - Patch by Uwe Hermann: fixed some typos in the code comments, Doxygen documentation and screen output.
Uwe: I dropped the 'iff' chunks as 'iff' stands for 'if and only if'.
2004-10-19 18:02:31 +00:00
Dries Buytaert 8ce9d2aca4 - Patch by nato: the function _forum_topics_read was not returning only nodes of type 'forum' resulting in the forum overview listing counting all node types as topics; attached patch modifies queries to return counts of only 'forum' type nodes. 2004-10-12 19:44:16 +00:00
Dries Buytaert 2aae0af5d7 - Patch : the forum module generated an empty table for forums with no child forums. 2004-10-09 17:15:55 +00:00
Dries Buytaert 5f5b02af92 - Patch by Robert Douglass: removed redundant 'global $user' from forum_insert(). 2004-10-07 19:07:57 +00:00
Steven Wittens 1298d2b9c9 Modified version of : 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 ff17aa0b94 - Patch by Stefan: improved consistency of node modules:
+ made the helptext under the 'Explanation or submission guidelines', more the same (blog & story);
  + made the form_set_error() texts consistent when the body of a blog/story does not match or exceeds the specified minimal numer of words.
  + used the $options for form_select() and form_radios() inline like we do in the rest of drupal;
  + made the textarea sizes for the submission pages the same for all node types and also for the 'Explanation or submission guidelines';
2004-09-27 20:15:54 +00:00
Dries Buytaert 7823ee8afd - Patch by Philippe: the forum submission guidelines were not always shown. 2004-09-22 17:46:44 +00:00
Dries Buytaert 5c7983c4de - Patch by JonBob: reintroduced menu caching. 2004-09-16 07:17:56 +00:00
Dries Buytaert c09158c3f3 - Patch by Bart Jansens/ccourtne: fixed shadow copies.
- Patch  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 b84b6e42cf - Patch by JonBob: documentation improvements: fixed some typos and improved consistency to the use of Doxygen/api.module commands in the comments. 2004-09-09 05:51:08 +00:00
Steven Wittens 51cf18e531 - : 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 83a739bd89 - Code improvements by Stefan: made all status messages consistent (and easier to translate). 2004-08-18 19:57:27 +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 d6a91bddcf - Patch by Bart Jansens:
+ The 'previous topic' / 'next topic' links skipped topic without comments (changed one inner join back to a left join).
  + The default order setting in admin/settings/forum had no effect.
  + The 'first new topic' link jumped to the first unread topic ever instead of the first unread topic since NODE_NEW_LIMIT.
  + This also removes the unused $offset param from theme_forum_display and theme_forum_topic_list, so any themes using these functions should be updated (i checked the core themes but none of them used these functions).
2004-08-09 18:54:49 +00:00