Commit Graph

104 Commits (267044f0b320e5b88bfd39ba935a3b020884e5fb)

Author SHA1 Message Date
Dries Buytaert bf810154f6 - Added a "queue for moderation"-toggle to a node's admin form and
updated the node modules to support this.
2001-12-09 15:15:10 +00:00
Dries Buytaert 7a972daeab - node system:
+ made a small change in the node overview page in the admin section
     such that it lists both new and updated pages by default.

   + reworked the filter-mechanism: it is not 100% finished yet but it
     sure is taking shape.
2001-12-08 13:11:33 +00:00
Dries Buytaert 67ac175ed5 - Working on the filter code: removed the "filter()" statemets from the
node.module; I'll move this to the individual modules as they are the
  only one's who know what to do best with it.

- Merged node.inc and node.module.
2001-12-08 11:12:26 +00:00
Dries Buytaert 20b4b7166f - book.module:
+ Added (1) support for "PHP pages" (dynamic pages), and (2) made
     it possible to link other node types into the book's tree/outline.
     It works just fine, yet the only (obvious) downside of (2) is
     that the navigation tree/links gets "interrupted" when you view
     non-book pages in the book.
       [SQL update required, see update.php]

   + Tidied up the book table.
       [SQL update required, see update.php]

- various updates:
    + Fine-tuned the new node system.
    + Updated the inline/code documentation.
    + Improved teaser handling of all node types.
    + Made several small usability improvements to the node admin
      pages.
2001-12-06 17:33:05 +00:00
Dries Buytaert b1be2a1fb4 - Fixed a small glitch in node_preview() which made adding PHP pages rather
annoying.
2001-12-06 11:48:09 +00:00
Dries Buytaert facd9cc517 - Bugfix: you can no longer add non-existant node types. Thanks barry.
- Moved all comment related logic from node.module to comment.module.
2001-12-05 20:22:58 +00:00
Dries Buytaert d852a999de Node and book updates:
- Fixed a glitch in the book overview in the admin section.
  - When updating a book page through the admin section, no new revision
    is created unless explictely specified.
  - Improved the usability of the node and book pages a little.
2001-12-01 15:20:48 +00:00
Dries Buytaert 4a5fa1a954 - Fixed a glitch in the news feeds. 2001-11-28 22:00:45 +00:00
Kjartan Mannes 7d0c316f82 - fixed pass by reference errors. PHP only allows declaration of &$vars, not
passing them that way.
  For more info: http://no.php.net/manual/en/language.references.pass.php
2001-11-26 18:27:34 +00:00
Dries Buytaert e893d4fb66 - By default, spaced the "Allowed HTML tags" so that they will wrap nicely
without screwing with the site's layout.
2001-11-25 16:03:29 +00:00
Dries Buytaert 3c90763607 - Fixed a bug in node_submit() in that the user name was not always
correctly updated.
2001-11-25 15:58:08 +00:00
Dries Buytaert 8d0546bc79 - Made the search result of node.module context sensitive: it will only
link to the admin pages if you searched from within the admin pages.

- Added checks for "post content" permission (reported by Natrak).
2001-11-25 12:18:51 +00:00
Dries Buytaert eb7c5f60b9 - Bugfix: when updating a book page, the name of the author did not change.
- Bugfix: the "Edit comments" part of the node administration pages did not
  display the correct comments.

- Bugfix: somethimes, update in a book page would mess up the book.

- Improvement: when "node administrators" update a book page through the
  "update this book page"-link (like regular users do), their update will
  be subject to moderation.

- Improvement: made some intermediate changes to the filter mechanism. Needs
  more work.
2001-11-24 15:10:36 +00:00
Dries Buytaert 42ecb27802 A set of updates to the "_link" system:
- Made the /comment links/ jump to the comments instead of to the top
   of the page.

 - Replaced the "Add comment"-button by a "add new comment"-link.
   (This should make UnConeD jump up and down of wild excitement.)

 - Moved all comment related logic from theme.inc and node.module to
   comment.inc and comment.module (where they belong).

 - Added some links to ease the site's usability/navigation.
2001-11-24 12:14:31 +00:00
Dries Buytaert 3c7f5559a9 - node module:
+ bugfix: made it possible for users to delete their blog entries
2001-11-24 10:02:15 +00:00
Kjartan Mannes f5be5fdfa4 - modified node_save so that revisions are not validated using check_input,
as this breaks revisions.
- modified link_node() to take a third parameter $main, which will be passed on
  to _link hooks. This lets modules decide which links a node will get when
  shown on the main page, or when not.
- updated themes to use the new syntax.
2001-11-23 17:10:46 +00:00
Dries Buytaert 7c7b72525b - fixed the line filter: it should not strip v's. 2001-11-20 22:53:26 +00:00
Dries Buytaert 2c3409f03d - Revised and documented the "change author"-logic used in the node forms
of node administrators.  Fixed a bug: it was not possible to change the
  name to "anoymous user" (or vice versa).
2001-11-20 22:51:06 +00:00
Dries Buytaert c35019601e - added a "line" filter 2001-11-20 20:44:32 +00:00
Dries Buytaert 41295e4d00 - fixed bug with minimum teaser/blog/story size 2001-11-18 20:24:11 +00:00
Dries Buytaert b714757857 - Replaced some (if not all) "Nodes" by more meaningful names/texts. 2001-11-18 16:25:37 +00:00
Dries Buytaert e7e104e82f - node system:
+ Made the filters work again!

   + There is one strange thing that I can't track down though: for some
     reason, "^M" characters (?) are padded after newline ("\n" and / or
     "\r") characters.
2001-11-18 13:21:35 +00:00
Dries Buytaert ebb14ab94a - A couple of new node updates 2001-11-12 22:17:52 +00:00
Dries Buytaert 1291d8dcb4 - Made a small change to the submission rate throttle 2001-11-12 20:06:02 +00:00
Dries Buytaert 234b40b253 - node system:
+ Added the "delete node"-link: apparently it got lost during the last
     commit.  Odd.

   + Changed "Edit node" to "Edit <node_name>" on the 'edit node'-page of
     the admin section.  (There a 4 "Node"s that still need to be removed
     though.)

   + Updated the initial submission page (the old submit.php) to include
     some descriptions.
2001-11-07 18:14:46 +00:00
Dries Buytaert db47bac35e - node.module:
+ Changed node_form() to use good ol' tables instead of div/CSS-tags.

   + Revised the "revision API": I think we have both an easy and powerful
     API now that should make everyone happy.

   + Improved the usability of the rollback functionality a bit.

   + Removed the "view node" link from the "node overview" page in the
     admin section and added a "delete node" link instead.

   + Added a few missing translations; there might be missing more
     translations though.

- book.module:

   + Made the book module use the "revision API" instead of having it poke
     and use the innards and underlying details of the revision system.

- queue.module:

   + Made the queue module use the improved revision number.

- module.inc:
   + Applied Moshe's patch: added more arguments to module_invoke()

- mail-to-sql.pl:
   + Added support for more header fields and for folded fields

Notes:

- no database updates required
2001-11-05 22:59:11 +00:00
Dries Buytaert f88cfaa2dd - Another batch of updates. The most important bit is that the moderation
queue should be functional again.  It's not ready yet but I'll be tuning
  it for the next two evenings or so.
2001-11-04 23:30:39 +00:00
Dries Buytaert b6f1c9c739 - node system:
+ fixed a typo in node_load(): it should be faster now

- book module:
    + removed the functions book_parent() and book_parent_query() as
      they were no longer needed.  Gerhard & co: this should fix the
      occasional SQL errors you get, and should improve performance.

    + made the "next", "previous" and "up" links work correctly ...

    + XHTML-ified the code

    + added some missing translations

  I'm working on the book module now to make it possible to update book
  pages.
2001-11-04 15:57:43 +00:00
Dries Buytaert a2e6910902 - Made the node forms support "help texts": it is not possible to configure
Drupal to display submission guidelines, or any other kind of explanation
  such as "NO TEST POSTS", for example.

- Added node versioning: it is possible to create revisions, to view old
  revisions and to roll-back to older revisions.  You'll need to apply a
  SQL update.

  I'm going to work on the book module now, so I might be changing a few
  things to enable collaborative, moderated revisions - but feel free to
  send some first feedback, if you like.

- Added some configuration options which can be used to set the minimum
  number of words a blog/story should consist of.  Hopefully this will
  be usefull to stop the (almost empty) test blogs.

- Various improvements:
   + Fine-tuned new node permission system.
   + Fine-tuned the functions in node.inc.
   + Fine-tuned some forms.
   + XHTML-ified some code.
2001-11-03 18:38:30 +00:00
Dries Buytaert 4d8b485fad - Added error handling support to the <node>_form hook. 2001-11-01 22:54:16 +00:00
Dries Buytaert 23ca7a2d88 - Another batch of updates/improvements:
+ introduced basic node permissions ("create", "delete", "update" and
     "view") at the node level: it's up to the "<$node->type>_module" to
     hide gory details (if any).

   + made the "blog it"-feature in the blog and import module work with
     the new node system, in specific with the new centralized forms.

   + made it possible to update blogs.

   + made the page module work with the new node system.

   + various smaller improvements.
2001-11-01 17:04:20 +00:00
Dries Buytaert 336b713a5f - A large batch of updates, amongst them a rewritten node system. More
information available on the mailing list.
2001-11-01 11:00:51 +00:00
Kjartan Mannes 864c18d4c3 - added the CVS keyword $Id$ to all files to make future version tracking
easier. Also changed the <? tag to <?php in some cases.
2001-10-20 18:57:09 +00:00
Dries Buytaert 33a3502dfe - Removed a node's link ID (lid) as discussed on the mailing list. See
'updates/3.00-to.x.xx.mysql' for the required MySQL updates.

- Renamed some "author" fields to "uid" fields for sake of consistency.

- Fixed the coding style of some PHP files.

- Fixed the moderation queue (fairly untested though).

- Re-introduced the temporary SQL table in _node_get().

- Added a missing 'auto_increment' to 'updates/3.00-to-x.xx.mysql'.
2001-10-16 20:13:22 +00:00
Dries Buytaert 959cae8222 - added sequence tables
- fixed bug in node_page()

- fixed bug in db_result()

- fixed rss glitch
2001-10-11 12:25:25 +00:00
Dries Buytaert f1932821be - PEAR-ification of Drupal by claw: you can now host Drupal on a wide
range of databases including MySQL, PostgreSQL, MSSQL, and others.

  For additional information and an 'how to upgrade', check the mails
  sent to the mailing list.
2001-10-09 21:01:47 +00:00
Dries Buytaert f2a06813bc - fixed 2 bugs that where introduced by moving the index.php to node_page()
in node.module.
2001-10-05 22:44:10 +00:00
Dries Buytaert 7a9bc86bd2 - Improved search architecture derived from Axel's new search patches.
(There is room for improvement so let's go from these ... and build
  on them.)

- Removed some $status's by calls to node_status().
2001-10-03 20:57:01 +00:00
Dries Buytaert 63ae792556 - bugfix: renamed 'conf_default' to 'system_default' 2001-10-01 18:54:32 +00:00
Dries Buytaert 0cce47f15f - fixed small glitch in node_del()
- fixed small glitch in comment_del()

- changed the API of the form() function.  The first parameter, the
  "action"-attribute in the <form>-tag has been made optional.  By
  default, it will be set to "$REQUEST_URI".

  Why? Because in 98% of the cases we would do:

    global $REQUEST_URI;
    $form = form($REQUEST_URI, $form_content);

  while we can do:

    $form = form($form_content);

  now.

  Update your modules (and sorry for the inconvenience)!
2001-09-28 16:20:55 +00:00
Dries Buytaert 4a0e498f52 - a batch of updates, including some experimental changes to the moderation
of comments and nodes.
2001-09-27 20:51:26 +00:00
Dries Buytaert f9a84cd216 - Enhancement: added better help and translations to node.module.
(patch by Alex)
2001-09-26 20:50:12 +00:00
Kjartan Mannes f6f04a82fa Bug fixes mostly
- fixed book.module not generating next/prev links properly
- re-added default node options to the admin page
- fixed a potential bug in node.php. Nodes with same titles were confusing it
  at times, should fix the bug reported by Gerhard Killesreiter.
2001-09-26 18:28:10 +00:00
Kjartan Mannes ff2ae1855d - added node_page() to list what index.php used to list.
- made the front page of the system configurable. Now any <node>_page()
  can be set as the default page. Default is node_page().
2001-09-25 22:13:34 +00:00
Dries Buytaert 9ef955b6e0 - bugfix #1: fixed the line that accidentically got cut off by incorrectly
applying a patch.  Mea culpa.
  (reported by Axel)

- bugfix #2: incorrect deactivation of the delete link in node_links().
  (patch by Axel)

- improvement: added confirmation page upon deletion of a node ("Do you
  really want to delete this node?"), and removed the old and confusing
  "node has to be blocked first".
  (patch by Axel)
2001-09-25 17:10:44 +00:00
Dries Buytaert a1222d6430 - Fixed translation bugs (reported by Alexander Schwartz) 2001-09-24 18:46:07 +00:00
Dries Buytaert 5a6a4206b9 - fixed HTML/XHTML typos 2001-09-21 21:10:47 +00:00
Dries Buytaert 2d1e9126cb - Added the new user module! 2001-09-16 11:33:14 +00:00
Kjartan Mannes 8a1b410adf node.module
- fixed a listing bug.
2001-08-30 08:34:28 +00:00
Dries Buytaert 098ab8ef82 - fixed bug in node.listing as reported by Julian 2001-08-27 08:20:57 +00:00