Commit Graph

2816 Commits (74e7bcdf7f2a6f088fa2ef76f8425b8379a9f7c5)

Author SHA1 Message Date
Dries Buytaert e03ce2f996 - Patch #28483 by Steven: JavaScript enabled uploading.
Comment from Steven: It does this by redirecting the submission of the form to a hidden <iframe> when you click "Attach" (we cannot submit data through Ajax directly because you cannot read file contents from JS for security reasons).  Once the file is submitted, the upload-section of the form is updated.  Things to note:

    * The feature degrades back to the current behaviour without JS.
    * If there are errors with the uploaded file (disallowed type, too big, ...), they are displayed at the top of the file attachments fieldset.
    * Though the hidden-iframe method sounds dirty, it's quite compact and is 100% implemented in .js files. The drupal.js api makes it a snap to use.
    * I included some minor improvements to the Drupal JS API and code.
    * I added an API drupal_call_js() to bridge the PHP/JS gap: it takes a function name and arguments, and outputs a <script> tag. The kicker is that it preserves the structure and type of arguments, so e.g. PHP associative arrays end up as objects in JS.
    * I also included a progressbar widget that I wrote for drumm's ongoing update.php work. It includes Ajax status updating/monitoring, but it is only used as a pure throbber in this patch. But as the code was already written and is going to be used in the near future, I left that part in. It's pretty small ;). If PHP supports ad-hoc upload info in the future like Ruby on Rails, we can implement that in 5 minutes.
2005-08-31 18:37:30 +00:00
Dries Buytaert d9d6a6e05c - Patch #7582 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 7e5d0c947a - Patch #20255 by Cvbge: simplified a query in the throttle.module. Fixes a PostgreSQL compatibility bug too. 2005-08-30 15:04:54 +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 307eefd1ce - Patch #29737 by m3avrck: fixed broken link in upload.module. 2005-08-29 19:01:18 +00:00
Dries Buytaert 469fa36420 - Patch #29506 by Nedjo: block regions were not initiated for newly enabled themes. 2005-08-28 18:17:47 +00:00
Dries Buytaert 8f71d8990e - Patch #16452 by chx: allow modules to rewrite taxonomy-related SQL queries much
like we do with node-related SQL queries.

  (chx promised to document this, check his documentation as soon it is available.)
2005-08-28 16:30:50 +00:00
Dries Buytaert 8f32c39db2 - Patch #29102 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 #29785 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 494e5ab97c - Renamed 'user comments' to 'comment options' for consistency.' 2005-08-28 15:16:58 +00:00
Dries Buytaert b5573842b8 - Patch #29593 by tostinni: fixed display of title on admin/settings/content-type/ pages. 2005-08-25 21:22:00 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert 078c99ca5d - Patch #21658 by Uwe: fixed broken link in help text. 2005-08-24 15:40:43 +00:00
Dries Buytaert 789dd294ff - Modified patch #22637: added OPML export for aggregator categories. 2005-08-23 05:45:08 +00:00
Dries Buytaert caf65e3953 - Patch #13941 by Promotheus6: Atom feeds have a CONTENT and/or SUMMARY tag instead of a DESCRIPTION tag. Currently, if both tags are present the aggregator appends the content of both fields to replace the content of the DESCRIPTION tag. 2005-08-23 05:16:50 +00:00
Dries Buytaert 6a4e6df36f - Patch #17592 by killes: improved access denied messages. 2005-08-22 20:39:43 +00:00
Dries Buytaert e0113d6788 - Patch #29275 by Uwe: I'm currently trying to get aggregator.module in shape for being used as a planet-like software for a Planet Drupal. Here's a patch which allows the site admin to specify which HTML tags are stripped from feeds (or not). This is hardcoded in aggregator.module right now, the attached 2-line patch (for HEAD) makes it configurable. 2005-08-22 19:45:42 +00:00
Dries Buytaert 3b8220e6f5 - Patch #29335 by jonbob: shuffled the case-statements around for performance's sake. 2005-08-22 10:11:15 +00:00
Dries Buytaert 75abab2451 - Patch #29274 by Jeremy: the "fuzzy cache" mechanism is supposed to enforce a minimum time before the cache table is flushed. Logical errors in the fuzzy cache implementation are leading to the cache table being flushed more frequently. Configuration is simplified by removing all references to "strict" and "loose" caches. Instead, the cache is either "disabled" or "enabled". Additionally, the site administrator can now configure the "minimum cache lifetime", the minimum amount of time cached data will remain cached. 2005-08-22 05:09:01 +00:00
Dries Buytaert 1836d3b365 - Patch #29002 by Neil: list_themes() currently returns all themes, not just enabled themes. This functionality is only used in one place- configuration for disabled themes. These configuration pages can be removed with a usability improvement since you shouldn't be able to configure things which are disabled. Additionally, this allows us to remove some extra logic in system_user(). And it it more consistent with the module API which only lists enabled modules.
list_themes() sorts the results by name. This uses filesort in MySQL since there aren't any indexes. Sorting is not used except in system_user(). This one use can be handled with ksort since it is not often executed (only on the user edit screen when multiple themes are enabled).

And a one line fix to remove a variable in system_user() is in here too.
2005-08-18 22:07:14 +00:00
Dries Buytaert 97bc92f6b9 - Patch #29133 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 29d6660149 - Patch #23620 by Robin: don't hard code forms into comment.module. Will be
depricated by form API patch though.  Hopefully helps migration.
2005-08-17 20:07:35 +00:00
Dries Buytaert 12c5614599 - Alternative solution for #28721: expand "File attachments"-group on node edit form when files are attached. 2005-08-17 19:27:03 +00:00
Steven Wittens 85c151cdce - #28728: Fix broken link in contact module help. 2005-08-17 00:55:50 +00:00
Dries Buytaert b114336554 - Patch #28924 by Jeremy: simplified 'group by'-clause to improve performance. 2005-08-16 19:48:04 +00:00
Dries Buytaert 26fa7c730f - Patch #16216 by nedjo: multiple block regions! 2005-08-16 18:06:18 +00:00
Dries Buytaert 2549e5068e - Fixed the filter module. 2005-08-14 17:50:35 +00:00
Dries Buytaert 00d21d5cee - Patch #28826 by chx: make xmlrpc_multicall working. 2005-08-14 09:53:40 +00:00
Dries Buytaert 78317bca79 - Patch #27897 by kubaZygmunt: fixed PHP warning. 2005-08-11 13:52:44 +00:00
Dries Buytaert 6733014fc4 - Patch #13941 by Prometheus6: made the aggregator module parse Atom feeds. 2005-08-11 13:12:44 +00:00
Dries Buytaert 7c6a21aedd - Patch by Uwe: tidied up the CVS IDs. 2005-08-11 13:02:08 +00:00
Dries Buytaert ceb013278e - Patch #23750 by jerakeen: use the creation date rather than the update date in RSS feeds. 2005-08-11 12:53:39 +00:00
Dries Buytaert 9e45d24af3 - Patch #26236 by Robin Monks: added 'send me a copy'-functionality to the contact forms. 2005-08-11 07:33:21 +00:00
Dries Buytaert f3b28d37d1 - Patch #27947 by Robert Douglas: simplified code, removed SQL query. 2005-08-10 20:52:00 +00:00
Dries Buytaert 63a10fdce8 - Bug 23810: removed redundant variable from SQL query. 2005-08-10 20:48:40 +00:00
Dries Buytaert 192dcd04ba - Patch #18778 by Gerhard/Olen: sort users by creation date rather than user ID. 2005-08-10 20:46:29 +00:00
Dries Buytaert 5270f7fd88 - Patch #28599 by Cvbge: fixed typo in documentation: 'user' -> 'used'. 2005-08-10 20:38:57 +00:00
Steven Wittens 6d93ee696b - Menu: remove array_merge warning when editing a node without menu item. 2005-08-09 00:37:02 +00:00
Dries Buytaert 2a87b5029b - Patch #24002: fixed node created timestamp changing on node edit. 2005-08-07 15:53:26 +00:00
Dries Buytaert 273d7f59b6 - Patch #27713 by tostinni: fixed two problems on the block add page:
+ description field isn't marked as requiered
   +when the field isn't unique, an error is displayed, but the wrong text field is set as erronous.
2005-08-07 15:30:03 +00:00
Dries Buytaert 79f08aca2c - Patch #26637 by Robert Douglas: $teaser misnamed in themes theme_node().
TODO: update documentation!
2005-08-07 14:55:17 +00:00
Steven Wittens ed56c57ee0 - #23560: Sort watchdog date by wid to ensure unique ordering. 2005-08-06 00:35:38 +00:00
Steven Wittens f7039a67cc - #25395: Allow for more integers in node_access grant_x columns 2005-08-05 13:11:10 +00:00
Steven Wittens 64299d7455 - #27852: redirect to user edit page on first log-in 2005-08-05 01:18:39 +00:00
Steven Wittens 88c6184c25 - #27864: Correctly distinguish 403s from 404s for nodes. 2005-08-05 00:38:38 +00:00
Steven Wittens 3feef48da2 - #28154: remove useless /view from user results 2005-08-03 23:23:48 +00:00
Steven Wittens e545feff3e - #28053: left-over blogapi bugs after xmlrpc library switch 2005-08-02 22:18:12 +00:00
Dries Buytaert 7625a4e91a - Patch #27737 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
Steven Wittens 22479d8761 - Add some Unicode checks to username validation 2005-07-31 21:54:39 +00:00
Dries Buytaert 61999af9d6 - Patch by Neil: removed redundant form_group() from throttle settings page. 2005-07-31 10:36:33 +00:00