1. 19 Apr, 2001 1 commit
    • Dries's avatar
      · 78cd8cda
      Dries authored
      - Addition: added a new function "module_hook($module, $hook)" to check
        wether a module implements a certain hook or not.
      78cd8cda
  2. 18 Apr, 2001 1 commit
  3. 16 Apr, 2001 5 commits
    • Dries's avatar
      · b1c66cb5
      Dries authored
      Another big update so please read this carefully because there is important information hidden in it.
      
      Made it so that we can disable/enable comments on a category by category basis. In order to accomplish this I had to make a few (*temporary*) changes.
      
      I moved all comment code from the "module level" (eg. story.module) to the "node level".  It was nothing but the logical next step in nodifying drupal.  This enables us to add comments to all existing content types including book entries.  But also for book entries, this to can be toggled on and off. :-)
      
      Moreover module writers don't have to worry about the complex comment logic: it is "abstracted" away.  This implies that story.module got smaller, faster and easier to comprehend. :-)
      
      In order to accomplish this, I had to update ALL THEMES, which I did - and on my way I updated Goofy, Oranzh and UnConeD - with the previous changes.  All themes are up-to-date now!  I also had to remove the [ reply to this story ] links, and temporally re-introcuded the "Add comment" button in the "Comment control".  Tempora lly that is, UnConeD. ;)
      
      I plan to upgrade drop.org either tommorow or wednesday so test away if you have some time to kill. ;)
      
      Oh, I also fixed a few bugs and made various small improvements.
      b1c66cb5
    • Dries's avatar
      · 53c67ac0
      Dries authored
      - a few changes which might help overcome Jeroen's redeclartion problem
        (or might not)
      53c67ac0
    • Dries's avatar
      · a61830b4
      Dries authored
      - forgot to disable some debug information
      a61830b4
    • Dries's avatar
      · b9952f53
      Dries authored
      Large commit, read it carefully, and make the required changes to
      your theme:
      
      - corrected some missing translations in story.module.  Oops!
      - grealty simplified the "moderation threshold mechanism"(tm) so
        that module writers don't have to worry about this.  As a result
        story.module and book.module became a bit smaller and easier to
        grasp.
      - greatly simplified new "category" and "topic" code which is soon
        going to replace the "section" code.  Needs more work though so
        hang on thight.
      - includes/section.inc and modules/section.module are replaced by
        includes/structure.module and modules/structure.module.
      - beautified example.theme a bit without adding HTML complexity:
        it is a good example but still useful as a theme
      - made theme example use "categories" and "topics"
          --> TAKE A LOOK AT IT AND UPDATE YOUR THEME
      - made theme marvin use "categories" and "topics"
          --> TAKE A LOOK AT IT AND UPDATE YOUR THEME
      - added 2 new "story listings" to administrator interface of
        story.module to verify story integrity.
      - optimized comment table a bit (work in progress)
      b9952f53
    • Dries's avatar
      · 49a7dccb
      Dries authored
      - make the version CVS function a bit better
      49a7dccb
  4. 15 Apr, 2001 2 commits
    • Dries's avatar
      · 1f056580
      Dries authored
      - improved submit.php:
        it now uses the new category code, incl content bindings.
        You can setup different "categories" which map on a content
        type.  Example:
          review   -> review.module
          article  -> story.module
          column   -> story.module
          announc. -> story.module
          addons   -> file.module
          themes   -> file.module
      - "generalised" story.module and book.module's output.
      - fixed bug in includes/timer.inc
      - fixed glitch in theme example.theme: it said "$how by" but
        the variable $how has never been declared.
      - added "drupal development settings" to display some timings
      - more work on the categories/topics -> does NOT work yet
      1f056580
    • Dries's avatar
      · f1716fbd
      Dries authored
      - improved settings.module and fixed a few quircks along the way:
         + added "reset to defaults"
         + added "development settings" - for drupal development only
         + made a few things more consistent
      f1716fbd
  5. 14 Apr, 2001 5 commits
    • Dries's avatar
      · 024c75e7
      Dries authored
      - tidied up the old code
      024c75e7
    • Dries's avatar
      · 4847cb22
      Dries authored
      - node_save returns the $nid --> can come in very handy one day :)
      4847cb22
    • Dries's avatar
      · 2da4122d
      Dries authored
      - added new variable: theme_footer which can be used to provide a
        footer message like a copyright notice. Themes should use this!
      2da4122d
    • Dries's avatar
      · d32216f8
      Dries authored
      - added new variable: theme_footer which can be used to provide a
        footer message like a copyright notice. Themes should use this!
      - small improvement to example theme
      - added theme_footer to theme marvin
      - small improvement to database.inc
      d32216f8
    • Dries's avatar
      · d7fefa2a
      Dries authored
      - preliminary section code - does _not_ work yet
      d7fefa2a
  6. 13 Apr, 2001 2 commits
    • Dries's avatar
      · 296fb7b9
      Dries authored
      - See whether this fixes your problem and if it does not, take a look
        at what I tried to do. :)
      296fb7b9
    • Dries's avatar
      · b87d482b
      Dries authored
      Last nights updates (under construction):
        - added _type() hook so each module can return the content types he/she
          implements
      b87d482b
  7. 12 Apr, 2001 1 commit
  8. 11 Apr, 2001 1 commit
    • Dries's avatar
      · 4711869f
      Dries authored
      - fixed a small SQL bug in page.module
      - slightly improved story.module, node.module and book.module
      - made the "default theme" a setting from the setting page
      - polished a bit on the export function: we can now export the
        book or parts thereof through the following url:
      
          1.  http://drop.org/export/book/
                (full book)
          2.  http://drop.org/export/book/nid
                (where nid is the node id to start with)
      
        The export routine demonstrates how it can be done yet the
        output is too basic and can only improve over time.
      4711869f
  9. 09 Apr, 2001 1 commit
  10. 08 Apr, 2001 1 commit
    • Dries's avatar
      · 461a6242
      Dries authored
      - small improvements to node.inc
      461a6242
  11. 07 Apr, 2001 4 commits
    • Dries's avatar
      · 209f53ca
      Dries authored
      - small fine-tuning
      209f53ca
    • Dries's avatar
      · dae5c220
      Dries authored
      - improved rating module: it now shows some basic statistics :-)
      - updated database files
      - removed affialiate-site and drupal-site module: maintain them
        by hand through a box for now will you.
      dae5c220
    • Dries's avatar
      · d7e9ad10
      Dries authored
      - small update to gravity
      d7e9ad10
    • Dries's avatar
      · 38806b4a
      Dries authored
      - fixed bug in common.inc: throttle()
      - streamlined method invocation in node.inc
      - added node_status() function to modules
      - added NEW (mostly static) page module
      - added NEW settings module
      38806b4a
  12. 06 Apr, 2001 1 commit
    • Dries's avatar
      · 8213f5b2
      Dries authored
      A lot of small changes (search-n-replace) make a big commit:
      
        - fixed update bug in book.module
        - provide a log message when both adding and updating book pages
        - all configurable variables are now accessed through "variable_get()":
        - rewrote watchdog and submission throttle and removed watchdog.inc
        - improved robustness of sections.inc
        - imporved story.module
        - updated ./database/database.sql
      8213f5b2
  13. 05 Apr, 2001 1 commit
    • Dries's avatar
      · 048664f2
      Dries authored
      - a bunch of various updates
      048664f2
  14. 04 Apr, 2001 2 commits
    • Dries's avatar
      · 7fac91c2
      Dries authored
      - various smaller improvements
      7fac91c2
    • Dries's avatar
      · 8d249c5f
      Dries authored
      Last night's updates:
      
       - improved "track drop.org": it has now 2 boxes, one for "track
         comments" and one for "track nodes"
       - various small improvements to the book module based on the
         feedback we got.
       - fixed typo in moderation module
       - ...
      8d249c5f
  15. 02 Apr, 2001 2 commits
    • Dries's avatar
      · 15a6bef4
      Dries authored
       <center></center>  ==>  <div align="center"></div>
      15a6bef4
    • Dries's avatar
      · 805107cd
      Dries authored
      Commiting my work of last Sunday:
      
       - removed ban.inc and ban.module and integrated it in account.module
         under the name "access control" --> the ban code was not really up
         to standard so this has now been dealt with.  This refactoring and
         reintegration cuts down the code size with 100 lines too.  :-)
         (The ban.module code was really old and it showed.)
      
       - added node.module and made the other modules reuse some of this
         code --> cut down the code size of modules by at least 100 lines
         and adds stability.
      
       - added a status() function to admin.php to display a conform status
         message where appropriate.  See admin.php for usage.
      
       - removed $theme->control() and made comments.inc handle this itself
         wrapped in a $theme->box().  No need to clutter the themes with
         such complexity --> updated all themes already. :-)
      
       - some small visual changes to some administration pages to be more
         consistent across different modules.
      805107cd
  16. 01 Apr, 2001 1 commit
    • Dries's avatar
      · d216096e
      Dries authored
      - simplified some of the node stuff:
          stories can no longer be scheduled -> this functionality will be made
          generic for all nodes
      d216096e
  17. 31 Mar, 2001 7 commits
    • Dries's avatar
      · ef62a6bb
      Dries authored
      - worked even more on the robustness of include/node.inc
      ef62a6bb
    • Dries's avatar
      · 871d0619
      Dries authored
      - fixed another bug
      871d0619
    • Dries's avatar
      · 6ca6e831
      Dries authored
      - fixed bug in section.module: id -> nid
      - fixed bug in book.module: not 100% yet
      6ca6e831
    • Dries's avatar
      · d1a07a2e
      Dries authored
      - fixed "you-have-to-logout-and-login-before-permissions-change" bug
        (reported by UnConeD)
      - added "add node" link to book selection box and made it display the
        current location
      - removed tabs and whitespaces from themes - done automatically
      d1a07a2e
    • Dries's avatar
      · d9e72f37
      Dries authored
      - fixed update bug
      d9e72f37
    • Dries's avatar
      · 03e51647
      Dries authored
      - fixed typo in hostname.conf
      03e51647
    • Dries's avatar
      · 2ac7aa42
      Dries authored
      - visual improvements to example.theme, simplified HMTL code (- 20
        lines)
      - made node.inc more robust: it should roll-back when something goes
        fubar and it should work in subdirectories
      2ac7aa42
  18. 29 Mar, 2001 1 commit
    • Dries's avatar
      · 04ad9b8a
      Dries authored
      - fixed issue depricated call-by-reference issues
      - fixed small visual glitch in includes/function.inc
      - changed SQL tables around a bit to be more consistent
        (result: small changes to a lot of different files)
      - improved robustness of includes/node.inc
      - improved output of cron.module
      - improved output of node.php
      04ad9b8a
  19. 28 Mar, 2001 1 commit
    • Dries's avatar
      · 57eb908a
      Dries authored
      - made the node code a bit more rock-solid - needs more work and
        testing!
      - you can't add a node with the same title twice within 5 minutes
        (to avoid reposting by accidentically reloading your page after
        having posted)
      57eb908a