1. 08 Dec, 2001 1 commit
    • Dries's avatar
      · 7a972dae
      Dries authored
      - 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.
      7a972dae
  2. 06 Dec, 2001 1 commit
    • Dries's avatar
      · 20b4b716
      Dries authored
      - 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.
      20b4b716
  3. 26 Nov, 2001 1 commit
  4. 18 Nov, 2001 1 commit
    • Dries's avatar
      · 41295e4d
      Dries authored
      - fixed bug with minimum teaser/blog/story size
      41295e4d
  5. 12 Nov, 2001 2 commits
    • Dries's avatar
      · ebb14ab9
      Dries authored
      - A couple of new node updates
      ebb14ab9
    • Dries's avatar
      · 6642f298
      Dries authored
      - node modules:
         + made some improvements to the node access checks
      
      - queue module:
         + form()-ified the queue module and added some extra information
           or guidelines
         + added a few missing translations
         + ...
      6642f298
  6. 07 Nov, 2001 1 commit
    • Dries's avatar
      · 234b40b2
      Dries authored
      - 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.
      234b40b2
  7. 03 Nov, 2001 1 commit
    • Dries's avatar
      · a2e69109
      Dries authored
      - 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.
      a2e69109
  8. 01 Nov, 2001 3 commits
    • Dries's avatar
      · 4d8b485f
      Dries authored
      - Added error handling support to the <node>_form hook.
      4d8b485f
    • Dries's avatar
      · 23ca7a2d
      Dries authored
      - 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.
      23ca7a2d
    • Dries's avatar
      · 336b713a
      Dries authored
      - A large batch of updates, amongst them a rewritten node system.  More
        information available on the mailing list.
      336b713a
  9. 20 Oct, 2001 1 commit
  10. 16 Oct, 2001 1 commit
    • Dries's avatar
      · 33a3502d
      Dries authored
      - 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'.
      33a3502d
  11. 28 Sep, 2001 1 commit
    • Dries's avatar
      · 0cce47f1
      Dries authored
      - 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)!
      0cce47f1
  12. 27 Sep, 2001 1 commit
    • Dries's avatar
      · 4a0e498f
      Dries authored
      - a batch of updates, including some experimental changes to the moderation
        of comments and nodes.
      4a0e498f
  13. 16 Sep, 2001 2 commits
    • Dries's avatar
      · e2f24987
      Dries authored
      - improved the search system by making it context sensitive
      e2f24987
    • Dries's avatar
      · 2d1e9126
      Dries authored
      - Added the new user module!
      2d1e9126
  14. 11 Aug, 2001 1 commit
    • Dries's avatar
      · 808b6b6c
      Dries authored
      - Changed the authentication and login scheme as discussed on the mailing
        list.
      - Fixed the export function in book.module (patch my Julian).
      - Fixed the comment alignment (comments got truncated).
      808b6b6c
  15. 15 Jul, 2001 2 commits
    • Dries's avatar
      · 85341253
      Dries authored
      - Various updates, mostly related to our RDF/RSS backend.
      85341253
    • Dries's avatar
      · 39df1cba
      Dries authored
      - Various updates, mostly related to our RDF/RSS backend.
      39df1cba
  16. 29 Jun, 2001 1 commit
    • Dries's avatar
      · 9c43e8fc
      Dries authored
      Extremely large commit:
      
      - Fixed tiny quote problem in account.php.
      
      - Fixed tiny bug in comment.inc.
      
      - Fixed tiny bug in comment.module.
      
      - Fixed tiny bug in meta.module.
      
      - Simplified user_access() API.
      
      - Rewrote link system: still needs fine-tuning and testing so don't
        upgrade if you are running a production site. ;)
      
        Updated all modules and themes to reflect this change.  All other
        themes and modules need updating too!
      9c43e8fc
  17. 22 Jun, 2001 1 commit
    • Dries's avatar
      · d565b6f3
      Dries authored
      - Made the search result sort from new to old, instead of from old to new.
      d565b6f3
  18. 20 Jun, 2001 1 commit
    • Dries's avatar
      · 72065fb8
      Dries authored
      - Added a brand-new access.module which allows you to manage 'roles'
        (groups) and 'permissions' ... (inspired by Zope's system).
      
          + Once installed, click the help-link for more information.
      
          + See updates/2.00-to-x.xx.sql for the SQL updates.
      
      - Modified loads of code to use our new access.module.  The system
        still has to mature though: new permissions have to be added and
        existing permissions need stream-lining.  Awaiting suggestions.
      
      - As a direct result of the new access system, I had to rewrite the
        way the top-level links in admin.php are rendered and displayed,
        and xhtml-ified admin.php while I was at it.
      
      TODO
      
      - Home-brewed modules need updating, home-brewed themes not.
        (Examples: file.module, trip_link.module)
      
      - As soon we *finished* the refactoring of the user system (KJ has
        been working on this refactoring already) we should consider to
        embed this role and permission code into account.module ...
      72065fb8
  19. 17 Jun, 2001 1 commit
    • Dries's avatar
      · 03c06a86
      Dries authored
      Oops, a rather large commit:
      
      - Changed meta.module, node.module and index.php to use comma-seperated
        lists of attributes rather then "foo=a,bar=b" lists.  This makes it a
        a lot easier to use both modules.  In addition, error handling can be
        discarded as it can't be made any simpler, really ...
      
        It fits rather nicely in Drupal's design so I'm getting more and more
        happy with this meta.module (but we are not 100% there yet).
      
      - node.module, node.inc:
      
         + Improved the node-related admin interface so that navigating back
           and forth the administrative menus is made both easier and faster.
      
         + Removed some redundant database fields from the node table.  See
           2.00-to-x.xx.sql!
      
         + Added 2 news hooks called "node_insert" and "node_update".  Just
           like this is the case with the existing hook "node_delete" these
           new hooks will automatically get called when a node has been
           inserted or udpated.  Note that this is an optional call-back that
           only needs to be implemented when required.  With the addition of
           these two hooks, the node mechanism (version 1) is pretty well
           completed.
      
      - watchdog.module:
         + Fixed bug whit the 'regular messages' query in the watchdog.module.
      
      - book.module:
         + Fixed bug in book.module: the 'parent' was not set properly when
           updating a book page.
         + Made it so that older versions of a book page are automatically
           reactived upon deletion of the most recent version, i.e. when
           doing a version roll-back.
      
      - comment.inc:
         + Undid Remco's patch to comment.inc; it does not work in some cases.
      
      
      - conf.module:
         + Fine-tuned some of the options in conf.module a bit.
      
      - marvin.theme:
         + Visual changes to make it look better on Windows browsers.  Mind
           to give some feedback on this?
         + Fixed 3 HTML typos/bugs.
         + XHTML-ified the theme at a best effort basis; I didn't carry the
           XHTML specification with me.
         + Made use of the theme_slogan variable to display the site's slogan.
         + As soon we have at least one valid XHTML theme we can wonder on how
           to integrate other XML namespaces (cfr. MathML story at drop.org).
      
      - database.mysql:
         + Updated database.mysql so that it contains all the latest "database
           patches".
      03c06a86
  20. 15 Jun, 2001 1 commit
    • Dries's avatar
      · 96576a6e
      Dries authored
      - Added meta.module, an improved index.module that allows you to
        associate different collections - think "combobox" here - with
        different content types, all hardcoded references to "section"
        have been removed and the admin-friendliness of the meta admin
        section has been slightly improved.
      
        I'll keep working on it during the weekend - if time allows me
        to.  Moreover, I'll focus on the usability/user-friendlines of
        the meta admin section as well as graceful input-checking, and
        error-handling.
      
        Requires an SQL update, see updates/2.00-to-x.xx.sql!
      
        Index.module will be removed, or meta.module will be renamed as
        soon we can ditch one of them.  For now, having both coexist is
        not going to harm your setup and is useful to make a comparison
        and / or to migrate from index.module to meta.module.
      
        Index.module is de-coupled form the rest of the system so you
        will have to use meta.module after having upgraded.  You have
        been warned.
      
      - Updated CHANGELOG.
      96576a6e
  21. 11 Jun, 2001 1 commit
    • Dries's avatar
      - Changed field_set(), field_get() and field_merge() to use ',' and · c56ee67e
      Dries authored
        '=' instead of ';' and ':'.  It is considered to be more readable.
        --> A _first_ step towards and improved index.module.  Stay tuned
            for more.
      
        + Important:
           If you update from CVS - apply the queries in 2.00-to-x.xx.sql!
      
      - Changed all 'attribute' to 'attributes'.
      
        + Important:
           If you update from CVS - apply the queries in 2.00-to-x.xx.sql!
      
        + Important:
           This might require to ieni-wieni small update to your custom
           themes and/or node-related modules:
            - themes: node_index($node->attribute) -> node_index($node)
            - node modules: attribute -> attributes
      c56ee67e
  22. 10 Jun, 2001 1 commit
    • Dries's avatar
      · d397bbe9
      Dries authored
      This a rather large commit that needs a lot of fine-tuning.  If you
      update, you'll break your site as you need switching from structure
      to index.module: so this can be considered an intermediate commit.
      
      If you upgrade, and you are welcome to, just create a collection
      called "section" (for now) and assign your nodes some attributes
      in the described format.
      
      Feedback and bugreports are welcomed.  Questions will be answered.
      
      CHANGES:
      
      - comment system:
         + when replying to a node (rather then to a comment), that
           node is displayed above the reply form.
         + when replying to a comment (rather then to a node), that
           comment is displayd above the reply form.
      
      - removed structure.inc, removed structure.module.
      
      - node.inc:
         + added 2 new node functions called 'node_attribute_edit()' and
           'node_attribute_save()' used to 'hook in' any indexing system
          including your home-brewed stuff if you'd want to.  Currently,
          index.module is the facto default index system.
      
          See story.module for usage.
      
      - book.module, story.module, poll.module, page.module, forum.module:
         + added preview functionality to administration section (via node
           module).
         + removed all references to structure.inc (category, topic).
      
      - moderate.module:
         + removed all references to structure.inc (category, topic).
      
      - book.module, story.module, page.module, forum.module:
         + increased the sizes of some textareas.
      
      - submit.php:
         + removed all references to structure.inc (category, topic).
      
      - marvin.theme:
         + removed dead code: function story() was depricated.
      
      - unconed.theme:
         + removed hardcoded references to drop.org.
      
      - marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme:
         + removed all references to structure.inc (category, topic).
      
      TODO:
      
      - file.module, trip_link.module:
         + update preview functionality:
             see story.module for example.
         + remove references to 'cid' and 'tid', use 'attribute' instead:
             see story.module for example.
      
      - extend and build upon index.module as well as making it configurable
      d397bbe9
  23. 04 Jun, 2001 2 commits
    • Dries's avatar
      · d3de63ca
      Dries authored
      - Fixed small bug in "search node" of node.module.
      d3de63ca
    • Dries's avatar
      · 8fafe121
      Dries authored
      CHANGES:
      
      - Improvement to node listings.
      
      - Patched story.module to work with new node.module!
      
      NOTE:
      
      - UnConeD: poll.module needs updating.  Let me know if you want me to do
                 it as I assume you will update it unless otherwise mentioned.
      8fafe121
  24. 02 Jun, 2001 1 commit
    • Dries's avatar
      · b0c349e2
      Dries authored
      - Moved most of the options in structure.module to node.module.  The
        structure.module either needs work, or replacement by index.module:
        see "admin > node > node settings".
      
        It will do for now and it can always made better when we can think
        of a better solution; it is the best I could think of.   Now what?
        index.module or structure.module?  I'm currently pro index.module.
      
      - Drastically simplified "variable.inc".
      
      - Removed most dependecies on structure.module from all content related
        modules.  Thus making our modules more modular.  ;)
      
      - Fixed calculation glitch in queue.module.
      
      - Fixed potential function name clash/conflict in rating.module, and
        simplified some code on my way.
      
      - Started removing all global variables $status and $rstatus.  Global
        variables are "yucky" so in near future, we will replace all global
        $status variables by a call to node_status().  Originally, $status
        was only introduced as a temporary hack and nothing is as permanent
        as a temporary hack so I took it out when still possible.
      
      - Changed the watchdog messages a bit.
      b0c349e2
  25. 27 May, 2001 1 commit
  26. 26 May, 2001 1 commit
    • Dries's avatar
      - Rewrote the headline module from scratch. Note that the old · 5158eb8a
      Dries authored
        headline code is still in place 'till the new code has proven
        to be stable. See "syndication.module" for the new code.
      
        Changes:
      
         + Improved the parser and tested it against RSS 0.9, RSS 0.91,
           RSS 0.92, RSS 1.0, RDF and XML feeds.
      
         + Improved the administration interface.  It might be a bit fuzzy
           at first.  Maybe some native English like Julian, Michael (or any
           one else with knowledge in the field) can help out by suggesting
           better naming, terminology or descriptions - as well as by
           writing the help section for this module?  I'd have no idea how
           much this would be appreciated.
      
         + We can *easily* recognize new tags or extensions: we parse out
           "link", "title", "description" and "author" right now, but we
           will have to revise which tags to support and which not.  New
           tags can be added in less than 10 minutes (if you are familiar
           with the code).  Read: we have something we can build on.
      
         + Within each item, tags can now appear is random order which is
           or was not the case with the old headline code where we expect
           <link>s prior to <description>s for example.
      
         + Feed updates only (ie. always) happen through cron.  Neither do
           we use one global cron for updating all feeds; instead, every
           feed can specify his own update-interval.
      
         + Newly fetched headlines are "appended" to the pool of existing
           headlines (read: we don't replace the whole feed), and headlines
           automatically "expire" after x days or hours.  (Every headline
           has a timestamp.)
      
         + Got rid of backend.class; it is integrated in the module.
      
         + Switched to more generic names: "headline" became "item" and
           "backend" became "feed".  This should ease future non-headline
           oriented syndication.
      
         + You can associate attributes or keyword lists with every feed.
           At the moment new items will automatically inherit their feeds
           attributes but in future we can use heuristics to make these
           attributes "mutate" when and where we see fit.  The attributes
           can be maintained by hand as well.
      
         + We don't export any blocks yet; we will soon do as soon this
           new code has been tested for a bit more.  We will only export
           bundles though so if you want to export by feed/source, you
           will have to make a source-specific bundle.
      
      - Polished a bit on a few other modules: nothing major.
      5158eb8a
  27. 24 May, 2001 1 commit
    • Dries's avatar
      · 540fdfc0
      Dries authored
      - Replaced $theme->story() by a more generic $theme->node().  All themes
        required an update (and so will your custom themes).
      540fdfc0
  28. 20 May, 2001 2 commits
    • Steven Wittens's avatar
      - Changed the node_get_object() and node_get_array() functions to allow multiple conditions · 27496c46
      Steven Wittens authored
      - Added the "delete" hook for node-modules. When called, a module should do additional clean-up if necessary.
      
      - Updated all node-modules
      27496c46
    • Dries's avatar
      CHANGES · 20397ad3
      Dries authored
      - Redid settings.module and even renamed it to conf.module.
          * Settings are now grouped in basic categories like "system
            settings", "module settings" and "filters".
        * Added new settings to make Drupal easier to configure and
        to make some aspects like the watchdog scale better.
      
      - Renamed includes/settings.php to includes/conf.php.
      
      - Added filter support to conf.module and introduced filter hooks so
        modules can implement and export new filters.  Example filters are
        an HTML filter (implemented), a profanity filter, an url converter,
        ASCII smileys to images filter and so on ...
      
      - Reworked the check_* functions: user contributed content/input is
        only verified and filtered once in its lifespan.
      
      NOTES
      
      - Altough this is a large commit, no database changes are required.
      20397ad3
  29. 15 May, 2001 1 commit
    • Dries's avatar
      · 14ddbc47
      Dries authored
      - Created 2 new functions:
          + path_uri(): returns the fully-qualified URI of your drupal site.
          + path_img(): returns the image directory or http://image-server.com/
                        in case you prefer to load-balance bandwidth usage.
      
        Replaced all occurences of the variable "site_url" with path_uri()
        and removed "site_url" from "setting.module".
      
      - Drastically simplified the node_save() API, which should make the
        node-forms more secure.  Updated "story.module", "book.module",
        "forum.module", "page.module" and "node.module" to reflect this
        change.  This is needs more testing so hit it, beat it, tease it.
      
      - Fixed an occasional glitch in the configuration file loading logic.
      
      - Made "queue.module" display an informative notice when an anonymous
        user tries accessing the moderation queue.
      
      - Updated the hard-coded information in drupal.module a bit.
      14ddbc47
  30. 12 May, 2001 1 commit
    • Dries's avatar
      · 86bb9a10
      Dries authored
      - Made the main page display sub-topics when a specific topic
        is selected.
      
      - Made theme_link() less "hard coded", we still have to make
        it fully configurable though.
      
      - Fixed glitch in story submission: the warning messages were
        not displayed.
      
      - Tidied up block.module a bit.
      86bb9a10
  31. 09 May, 2001 1 commit
    • Dries's avatar
      · 0000c2e4
      Dries authored
      - Code review: improved search API, tidied up the search related code,
        and fixed a tiny bug when searching for users.
      0000c2e4
  32. 05 May, 2001 1 commit
    • Dries's avatar
      · be8e898d
      Dries authored
      - Uhm.  Rewrote the module system: less code clutter, less run-time
        overhead, and a lot better (simpler) module API.  I had to edit a
        LOT of files to get this refactored but I'm sure it was worth the
        effort.
      
        For module writers / maintainers:
      
        None of the hooks changed, so 95% of the old modules should still
        work.  You can remove some code instead as "$module = array(...)"
        just became obsolete.  Also - and let's thank God for this - the
        global variable "$repository" has been eliminated to avoid modules
        relying on, and poking in drupal's internal data structures.  Take
        a look at include/module.inc to investigate the details/changes.
      
      - Improved design of the content modules "story", "book" and "node"
        (to aid smooth integration of permisions + moderate.module).  I'm
        still working on the permissions but I got side tracked for which
        I "Oops!".
      be8e898d
  33. 03 May, 2001 1 commit
    • Dries's avatar
      · 16818777
      Dries authored
      CHANGES:
      
      - Added moderator information to forum.module.
      
      - Simplified story.module, page.module, forum.module and book.module
        by removing redundant code, and by doing other small house-keeping
        tasks.
      16818777