1. 09 Nov, 2002 4 commits
    • Dries's avatar
      · 2fc257a0
      Dries authored
      - Oops.  Braino.
      2fc257a0
    • Dries's avatar
      · 6d1ffea4
      Dries authored
      - Added check to see whether $items is initiliazed.  Thanks James.
      6d1ffea4
    • Dries's avatar
      · a6a47a32
      Dries authored
      - Applied Moshe's "theme head" patch:
      
        "This patch to theme.inc adds the ability for modules to insert HTML
         into the <HEAD> section of all web pages. The additional modules in
         this directory [ed: blog.module] demonstate possible uses for the
         new _head() hook."
      a6a47a32
    • Dries's avatar
      · 562df8fe
      Dries authored
      * Added Jeremy's pager:
      
       "This is a simple, generic pager for Drupal-CVS.  It is designed to be
        easily themeable and expandable.  The code is highly-commented to
        enhance readability."
      
       "Pagers are constructed by combining the provided pieces (all of which
        can be easily modified to display the text or image you prefer) into
        your custom pager."
      
      * Statistics module fixes by Jeremy:
      
       - removed superfluous check for existence of watchdog()
       - saving changes in admin page displays status and returns same page
       - no longer return 1971/01/01 in "view statistics" table
       - switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance
       - switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as
         max_timestamp" moving towards ANSI-SQL compliance.
      
      * Added a "theme_item_list" function to format itemized lists.  Also
        changed a couple of modules to take advantage of it.  Makes for a
        more consistent UI.
      562df8fe
  2. 26 Oct, 2002 1 commit
    • Dries's avatar
      · 8d103a08
      Dries authored
      - Committed Marco's block rewrite:
      
         + Blocks are not longer called if not rendered: major performance
           improvement.
         + Fixed some bugs (preview option was broken, path option was broken).
         + Removed "ascii"-type blocks.
         + Added permission to for "PHP blocks"
         + ...
      
        NOTES:
      
         + You'll want to run "update.php":
      
             ALTER TABLE blocks DROP remove;
             ALTER TABLE blocks DROP name;
      
         + You'll want to update your custom modules as well as the modules in
           the contrib repository.  Block function should now read:
      
             function *_block($op = "list", $delta = 0) {
               if ($op == "list") {
                 return array of block infos
               }
               else {
                 return subject and content of $delta block
               }
             }
      8d103a08
  3. 22 Oct, 2002 1 commit
    • Dries's avatar
      · 66c5b707
      Dries authored
      - Wrapped some hardcoded colors in "theme_invoke()"s; we can still create
        a drupal_error() later on but I think we better get used to theme_invoke().
      
      - Fixed translation bug.  Patch by Moshe.
      
      - Fixed PHP warning.  Patch by ax.
      66c5b707
  4. 15 Sep, 2002 1 commit
    • Dries's avatar
      · 92326261
      Dries authored
      - Commited Marco's new comment module and forum module!!!
      92326261
  5. 11 Sep, 2002 1 commit
  6. 08 Sep, 2002 1 commit
  7. 23 Jun, 2002 1 commit
    • Dries's avatar
      · 08b82913
      Dries authored
      - Added the theme_invoke() function from Moshe's sandbox.
      08b82913
  8. 20 Jun, 2002 1 commit
    • Dries's avatar
      · 3dbccfa7
      Dries authored
      - Let the blocks itself take care of translating their titles.  Patch by
        Marco.
      3dbccfa7
  9. 12 Jun, 2002 1 commit
  10. 25 May, 2002 1 commit
    • Dries's avatar
      · e426775f
      Dries authored
      - Bugfix.  When a theme does no longer exist on disk, it should not be
        returned by theme_list() as it breaks the site ...  The attached patch
        prevents this from happening but does not remove the theme from the system
        table in the SQL database - if the theme is removed from the database upon
        viewing the themes administration page (or another trigger), I guess that
        is fine.
      
      Kjartan: my fix is the right thing to apply because theme_list() is used
               elsewhere where it requires to return a list of existing themes.
               Maybe it's a little sad but the current theme loading code might
               be slower and more complex than the old Drupal 3 theme loading
               code ... ?
      e426775f
  11. 20 May, 2002 2 commits
  12. 02 May, 2002 1 commit
  13. 20 Apr, 2002 1 commit
    • Dries's avatar
      · 8043cb99
      Dries authored
      - Applied Marco's big patch, including contributions from Moshe:
      
          + Changed the db_query() API.
      
          + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions.
      
          + XHTML-ified some HTML.
      
          + Wrapped a lot of text in the administrative pages in a t()
            function.
      
          + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri().
      
          + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg.
            RSS code).
      
          + Fixed some bugs in the taxonomy module (eg. tree making bug), added
            new functionality (eg. new APIs for use by other modules), included
            Moshe's taxonomy extensions, and some documentation udpates.
      
          + ...
      8043cb99
  14. 15 Apr, 2002 1 commit
  15. 14 Apr, 2002 1 commit
    • Kjartan's avatar
      This is a major change to the system, needs more testing! · 55927616
      Kjartan authored
      Committing Changes by Moshe Weitzman:
      - admin_user_account(), user_edit(), and user_view() no longer have any
        hard code for authentication modules. instead authentication modules
        implement the _user hook.
      - fixed a couple 'help' typos.
      - linked the 'REGISTER' text in the login block to the register page.
        this page now advertises DA better if site employs DA.
      - admins may now edit everything about a user account (was a feature
        request).
      - user #1 may now login immediately, in addition to receiving his
        password via email.
      
      Other changes:
      - modules and themes are now enabled/disabled in the administrative /
        settings / modules | themes pages. Requires SQL update and things must
        be enabled before your site returns to normal. TODO: enable all
        functionality. (For now just do UPDATE system SET status = 1;)
      - removed $themes from conf.php.
      - added a $theme->system() function where theme can specify settings.
        All themes in the Drupal CVS have been updated to use this.
      - added _system hook to modules. TODO: update modules to use this.
      - changed strange use of sprintf to the usual strtr. The disadvantage of
        sprintf is that it requires translations to keep the string order,
        which may not be possible in all languages.
      - an invalid/nonexisting theme in a user profile will now fallback to the
        BaseTheme instead of crashing.
      55927616
  16. 19 Feb, 2002 1 commit
  17. 17 Feb, 2002 1 commit
  18. 21 Jan, 2002 1 commit
    • Kjartan's avatar
      - moved user block from theme.inc to user.module. · 8c672011
      Kjartan authored
          * only problem is that the admin.php link is not available until the
            admin enables the block.
          * $theme->user is obsolete, will patch the themes properly in a
            later patch.
      - moved moderation block from theme.inc to queue.module.
          * removed theme_moderation_results().
      - updated database/database.mysql.
      8c672011
  19. 12 Jan, 2002 1 commit
    • Dries's avatar
      · 7e503262
      Dries authored
      - Fixed a typo in the example theme.  (Patch by Mark)
      7e503262
  20. 11 Jan, 2002 1 commit
    • Dries's avatar
      · 0567413c
      Dries authored
      - Added a "title"-attribute to the "register" link and translated the
        "Rembember me" checkbox.
      0567413c
  21. 30 Dec, 2001 1 commit
    • Dries's avatar
      · a95c2a68
      Dries authored
      - import.module:
      
          + Improved input filtering; this should make the news items look
            more consistent in terms of mark-up.
      
          + Quoted all array indices: converted all instances of $foo[bar]
            to $foo["bar"].  Made various other changes to make the import
            module compliant with the coding style.
      
      - theme.inc:
      
          + Fixed small XHTML glitch
      
      - comment system:
      
          + Made it possible for users to edit their comments (when certain
            criteria are matched).
      
          + Renamed the SQL table field "lid" to "nid" and updated the code
            to reflect this change: this is a rather /annoying/ change that
            has been asked for a few times.  It will impact the contributed
            BBS/forum modules and requires a tiny SQL update:
      
              sql> ALTER TABLE comments CHANGE lid nid int(10) NOT NULL;
      
          + Moved most (all?) of the comment related logic from node.php to
            comment.module where it belongs.  This also marks a first step
            towards removing/reducing "node.php".
      
          + Added a delete button to the comment admin form and made it so
            that Drupal prompts for confirmation prior to deleting a comment
            from the database.  This behavior is similar to that of deleting
            nodes.
      
          + Disabled comment moderation for now.
      
          + Some of the above changes will make it easier to integrate the
            upcomcing mail-to-web and web-to-mail gateways.  They are part
            of a bigger plan.  ;)
      
      - node system:
      
          + Made it so that updating nodes (like for instance updating blog
            entries) won't trigger the submission rate throttle.
      
          + Fixed a small glitch where a node's title wasn't always passed
            to the $theme->header() function.
      
          + Made "node_array()" and "node_object()" more generic and named
            them "object2array()" and "array2object()".
      
          + Moved most (all?) of the comment related logic from node.php to
            comment.module where it belongs.  This also marks a first step
            towards removing/reducing "node.php".
      
      - misc:
      
          + Applied three patches by Foxen.  One to improve performance of
            the book module, and two other patches to fix small glitches in
            common.inc.  Thanks Foxen!
      a95c2a68
  22. 15 Dec, 2001 1 commit
    • Steven Wittens's avatar
      - Updated BaseTheme and the Drupal themes to have header($title = "") as the... · e28981f0
      Steven Wittens authored
      - Updated BaseTheme and the Drupal themes to have header($title = "") as the header declaration and use title when provided. This is just a step towards having unique titles.
      In all themes, except Marvin which already had $title, I put the $title first, because it's usually the thing the page is about:
      
      "The future of weblogs? - Drop.org"
      "Your account settings - Drop.org"
      
      rather than the other way around, right?
      e28981f0
  23. 24 Nov, 2001 1 commit
    • Dries's avatar
      · 42ecb278
      Dries authored
      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.
      42ecb278
  24. 23 Nov, 2001 1 commit
  25. 01 Nov, 2001 1 commit
    • 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
  26. 22 Oct, 2001 1 commit
  27. 20 Oct, 2001 2 commits
  28. 16 Oct, 2001 1 commit
  29. 14 Oct, 2001 2 commits
    • Dries's avatar
      · 625455b5
      Dries authored
      - I tidied up most SQL tables to be more consistent with the rest of the
        tables: I changed all "id"s to "xid"s where "x" is the first letter of
        the table name.  I also renamed all remaining "userid"s to "uid"s as I
        mentioned I would do.  Take a look at ./drupal/updates/3.00-to-x.xx.sql
        for the MySQL updates.
      625455b5
    • Dries's avatar
      · 54d76f75
      Dries authored
      - Pass theme objects by reference, avoids creating copies and lets called
        functions to store data in the theme (patch by Mike Krus).
      54d76f75
  30. 12 Oct, 2001 1 commit
    • Dries's avatar
      · 73d61b78
      Dries authored
      - fixed 4 SQL queries to use ANSI SQL instead: '||' --> 'OR'
      73d61b78
  31. 09 Oct, 2001 1 commit
    • Dries's avatar
      · f1932821
      Dries authored
      - 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.
      f1932821
  32. 07 Oct, 2001 1 commit
    • Dries's avatar
      · 47c6fce5
      Dries authored
      - added a comment() function to the base theme: you don't have to overload
        it in your custom themes
      
      - moved 'theme_account()' to the base theme as '$theme->user()' so that it
        can be themed.
      47c6fce5
  33. 03 Oct, 2001 1 commit
    • Dries's avatar
      · 7a9bc86b
      Dries authored
      - 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().
      7a9bc86b
  34. 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