Commit Graph

319 Commits (3b7425aefb77641468a2183e83481e644b4eb9d6)

Author SHA1 Message Date
Steven Wittens 2e25565b86 - Fixed bug when node-navigation-combobox wouldn't select the correct item if drupal was run from a sub-directory. 2001-04-21 22:48:28 +00:00
Steven Wittens 323c30e1dc - Added "custom" date/time format... to allow user-timezone-adjusted custom date formats. I didn't add special logic to translate parts of it, but it's not really needed, as this is only meant for internal usage (e.g. checking if timestamp A is on the same date as timestamp B).
Some modules (such as diary) should be changed to take advantage of this function, as they are now still using GMT+0 dates in some cases (e.g. the recent diary entries box).
2001-04-21 21:18:47 +00:00
Steven Wittens d6554be786 - Fixed typo "sumbission" 2001-04-21 19:21:11 +00:00
Steven Wittens a66c4e59ec - Centered the comment controls... much nicer :) 2001-04-21 17:35:29 +00:00
Steven Wittens b24aff1da2 Made the "add" and "update" options in the node-combobox appear only when logged in. 2001-04-21 15:51:23 +00:00
Dries Buytaert cccb132c81 - Addition: added a "promote" field to the node table, which
makes "promoting nodes" to the main page possible.  Stories
  and reviews could be promoted by default, but - on accasion
  a good book entry could be manually promoted too.  Thus all
  existing content types can be shown on the main page, not
  just stories.

  Requires a SQL update, see 2.00-to-x.xx.sql!

- Addition: implemented "auto-post new submissions" feature
  to disable or by-pass the moderation queue in addition to
  "moderate new submissions".

  TODO: admin moderation versus registered user moderation.

- Addition: added category and topic support to page.module.
2001-04-21 14:19:20 +00:00
Dries Buytaert 3f1979aa3c - Addition: made it so that comments can be enabled/disabled on
a node per node basis, rather then on a category per category
  basis.  The default settings for each individual category can
  be changed though.

  Example: it can be setup so that - by default - all stories
  posted to the category "article" will have comments enabled
  but stories submitted to "announcement" not.

  Different configuration schemes can easily be added later.

  Requires a SQL update, see 2.00-to-x.xx.sql/database.mysql.

- Addition: made submit.php only use categories that users can
  actually submit new content to.
2001-04-19 19:59:48 +00:00
Dries Buytaert a6e6dfb921 - Addition: added 2 new functions check_mail() and check_name()
to functions.inc useful for resp. verifying an e-mail address
  and username: currently used by account.php - but reusable by
  Julian's refer.module for example (prepares integration).
2001-04-19 19:54:37 +00:00
Dries Buytaert 78cd8cda09 - Addition: added a new function "module_hook($module, $hook)" to check
wether a module implements a certain hook or not.
2001-04-19 19:51:24 +00:00
Dries Buytaert 8e94fe1625 - structure.inc: added category_name($cid) and topic_name($tid).
They both return a linked string with the respective category,
  or topic name.  Updated all themes to use these new functions.

- (stripped tabs from emsa files, nevermind)
2001-04-18 20:40:21 +00:00
Dries Buytaert b1c66cb5de 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.
2001-04-16 18:21:22 +00:00
Dries Buytaert 53c67ac0a2 - a few changes which might help overcome Jeroen's redeclartion problem
(or might not)
2001-04-16 13:26:38 +00:00
Dries Buytaert a61830b45e - forgot to disable some debug information 2001-04-16 12:31:11 +00:00
Dries Buytaert b9952f537d 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)
2001-04-16 11:38:12 +00:00
Dries Buytaert 49a7dccb64 - make the version CVS function a bit better 2001-04-16 08:36:25 +00:00
Dries Buytaert 1f0565806b - 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
2001-04-15 17:01:32 +00:00
Dries Buytaert f1716fbd9c - 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
2001-04-15 09:36:00 +00:00
Dries Buytaert 024c75e720 - tidied up the old code 2001-04-14 19:33:53 +00:00
Dries Buytaert 4847cb22f5 - node_save returns the $nid --> can come in very handy one day :) 2001-04-14 19:32:15 +00:00
Dries Buytaert 2da4122d3c - added new variable: theme_footer which can be used to provide a
footer message like a copyright notice. Themes should use this!
2001-04-14 19:31:28 +00:00
Dries Buytaert d32216f8b6 - 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
2001-04-14 19:29:27 +00:00
Dries Buytaert d7fefa2a6b - preliminary section code - does _not_ work yet 2001-04-14 19:27:44 +00:00
Dries Buytaert 296fb7b93a - See whether this fixes your problem and if it does not, take a look
at what I tried to do. :)
2001-04-13 13:42:43 +00:00
Dries Buytaert b87d482b38 Last nights updates (under construction):
- added _type() hook so each module can return the content types he/she
    implements
2001-04-13 08:27:32 +00:00
Dries Buytaert 13fb62454c - a few changes/addition to the old section code to make developing
the new section code easier: preparations as we often call it. ;)
2001-04-12 20:30:04 +00:00
Dries Buytaert 4711869f52 - 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.
2001-04-11 19:44:24 +00:00
Dries Buytaert 9a5b82e16e - fixed bug in comment code 2001-04-09 14:16:33 +00:00
Dries Buytaert 461a62422b - small improvements to node.inc 2001-04-08 16:29:58 +00:00
Dries Buytaert 209f53ca6b - small fine-tuning 2001-04-07 20:24:57 +00:00
Dries Buytaert dae5c2208c - 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.
2001-04-07 20:00:21 +00:00
Dries Buytaert d7e9ad1027 - small update to gravity 2001-04-07 18:26:14 +00:00
Dries Buytaert 38806b4a39 - 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
2001-04-07 15:02:28 +00:00
Dries Buytaert 8213f5b262 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
2001-04-06 14:14:16 +00:00
Dries Buytaert 048664f278 - a bunch of various updates 2001-04-05 20:33:36 +00:00
Dries Buytaert 7fac91c2cc - various smaller improvements 2001-04-04 21:09:24 +00:00
Dries Buytaert 8d249c5f28 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
 - ...
2001-04-04 12:54:10 +00:00
Dries Buytaert 15a6bef484 <center></center> ==> <div align="center"></div> 2001-04-02 21:18:17 +00:00
Dries Buytaert 805107cd22 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.
2001-04-02 15:54:37 +00:00
Dries Buytaert d216096ede - simplified some of the node stuff:
stories can no longer be scheduled -> this functionality will be made
    generic for all nodes
2001-04-01 10:52:01 +00:00
Dries Buytaert ef62a6bb1f - worked even more on the robustness of include/node.inc 2001-03-31 19:24:54 +00:00
Dries Buytaert 871d0619aa - fixed another bug 2001-03-31 18:38:01 +00:00
Dries Buytaert 6ca6e831b6 - fixed bug in section.module: id -> nid
- fixed bug in book.module: not 100% yet
2001-03-31 17:56:12 +00:00
Dries Buytaert d1a07a2e8f - 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
2001-03-31 14:58:37 +00:00
Dries Buytaert d9e72f37de - fixed update bug 2001-03-31 13:18:57 +00:00
Dries Buytaert 03e5164703 - fixed typo in hostname.conf 2001-03-31 11:15:25 +00:00
Dries Buytaert 2ac7aa425b - 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
2001-03-31 11:00:04 +00:00
Dries Buytaert 04ad9b8af9 - 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
2001-03-29 19:50:31 +00:00
Dries Buytaert 57eb908a8f - 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)
2001-03-28 21:32:48 +00:00
Dries Buytaert d788879db2 - update the linking mechanism: to link to a "node" (ex story) with title
"fubar", use [[fubar]] or [[fubar|link text]].
2001-03-28 21:30:48 +00:00
Dries Buytaert 3f2b0e0b3f Flushing my backlog (in case Natrak wants to make more changes):
- tidied up some of the code
 - fixed a small problems
2001-03-28 07:03:47 +00:00
Kjartan Mannes 6bb49b4bb8 Made a few cosmetic changes. Mostly just checking out how much work it
would be to support more databases :-)
2001-03-27 14:59:49 +00:00
Dries Buytaert cb5bbdee20 - small improvements as well as 2 bugfixes 2001-03-26 20:22:09 +00:00
Dries Buytaert 63409676be - restored check_textarea: I changed it for debugging purpose but forgot to
switch it back
2001-03-25 18:23:34 +00:00
Dries Buytaert 5fb307f5bf - refactoring, refactoring, refactoring 2001-03-25 16:42:52 +00:00
Dries Buytaert 1f79863053 - large commit of everything else that has been queued in my backlog:
it's not 100% stable yet
2001-03-25 10:57:01 +00:00
Dries Buytaert a45fc1a20e - themes now get there header/footer links through theme_link();
- tidied up example.theme
2001-03-24 17:50:08 +00:00
Dries Buytaert 73f26a53fe - added check_select to format selection boxes
- improved check_input so that it won\\\'t escape charachters more
  than once

- added [linking] mechanism - more about this later
2001-03-24 17:06:19 +00:00
Dries Buytaert 68f2112b4d - nodified index.php:
the index page will only display stories for now but this will/can
    change in the near future
- all other files now thinks in terms of nodes, rather then stories
2001-03-24 17:04:11 +00:00
Dries Buytaert 93f66c06d3 - added nodified story module: story extends node
- removed includes/story.inc as we no longer need it: story.module
  is *really* modular now.
2001-03-24 16:56:10 +00:00
Dries Buytaert fe095f5a24 - simplified the comment code: the SQL queries are less complex, thus
faster now.
2001-03-24 16:46:11 +00:00
Dries Buytaert fd659b51fa - some preliminary node code for the "node frenzy noders"(tm) 2001-03-24 16:37:44 +00:00
Steven Wittens b403385407 removed the "add comment" button in the comment moderation box 2001-03-21 13:17:25 +00:00
Dries Buytaert 8113d31f3b - update 2001-03-18 08:44:01 +00:00
Dries Buytaert a4b93e3cc4 - forgot to commit this last night but this should fix deekayen's small
Windows glitch
2001-03-12 14:53:13 +00:00
Dries Buytaert 266167b976 - fixed small glitch as a result from David's patch 2001-03-10 18:46:47 +00:00
Dries Buytaert 8af189197e - fixed "AdNewz.com" vs "ADNEWS.COM" glitch reported by Peter Beckman 2001-03-10 18:38:47 +00:00
Dries Buytaert accd5f0c31 - applied David Norman's patch to turn all <?'s into fully qualified
<?php's.
2001-03-10 11:07:52 +00:00
Dries Buytaert 5d08572dc6 - fixed two-side-bar-theme-bug-with-latest-headlines 2001-03-08 21:00:28 +00:00
Dries Buytaert a1b158334a - more small improvements 2001-03-08 19:30:41 +00:00
Dries Buytaert fc6eaa5e83 *** empty log message *** 2001-03-08 17:44:10 +00:00
Dries Buytaert 87916cf8bb - small bugfix 2001-03-08 17:30:41 +00:00
Dries Buytaert 3d78f736e1 *** empty log message *** 2001-03-08 10:49:26 +00:00
Dries Buytaert 3958a714cd - some important changes to our theme API which can be summerized as:
abstract() + article() = story()

  abstract() and article() have been merged into a new function story()
  which looks like:

  function story($story_object, $reply) {
    if (!reply) {
       // full story
    }
    else {
       // main page version / abstract
    }
  }

  This should allow you to "compress" your theme as abstract() and
  article() tended to be 98% identical.

  => I didn't really merge your themes so I leave it up to *you* to
     improved the code!!! Do it ASAP as we release drupal 2.00 in 7
     days.

  In future we'll have similar functions for other content types as
  for example:

     review($review, $reply);
     enquete($enquete, $reply);
     ...
2001-03-08 08:16:23 +00:00
Dries Buytaert f516626a29 A rather large and important update:
revised most of the SQL queries and tried to make drupal as secure as possible (while trying to avoid redundant/duplicate checks).  For drupal's sake, try to screw something up.  See the mail about PHPNuke being hacked appr. 6 days ago.  The one who finds a problem is rewarded a beer (and I'm willing to ship it to Norway if required).  I beg you to be evil.  Try dumping a table a la "http://localhost/index.php?date=77778;DROP TABLE users" or something. ;)
2001-03-07 21:29:40 +00:00
Dries Buytaert d684b1f10a - various smaller updates before I start watching Formula 1 with [a] a
0.5 liter box of Haagen-Dhaz (Belgian Choclate) and [b] my laptop on
  my lap for drupal hacking.  Life hardly can get any better than this.
2001-03-04 12:06:13 +00:00
Steven Wittens 167594dc09 Added "db_insert_id()", a wrapper for mysql_insert_id(); 2001-03-03 22:59:11 +00:00
Dries Buytaert 16e6b6f137 code revision:
- fixed a "visual-quote-glitch", i.e. a missing stripslashes()
2001-03-03 15:30:15 +00:00
Dries Buytaert 728249cbc4 - fixed small translation glitch in format_interval
- added a couple of missing t() functions
- improved the comments module, fixed the score problem Jeroen
  reported earlier -> it's slicker but I hope it won't break anything
2001-03-01 21:34:09 +00:00
Dries Buytaert 57e5f6a4d1 - fixed bug in block placement when (1) using a theme with 2 side bars
and (2) being logged out.
  (reported by Jeroen)
- themed "Editor's note" in theme marvin.
  (reported by Jeroen)
2001-02-27 20:58:51 +00:00
Dries Buytaert d00469cd05 - improved RDF backend class to support more backend formats 2001-02-22 23:44:53 +00:00
Dries Buytaert 86e315e2b4 - locale module: added documentation (first draft)
- locale module: improved administration interface
- headline module: fixed small visual glitch in export function
- account: small improvements
2001-02-21 08:25:21 +00:00
Dries Buytaert 4371b627d5 - added fine-grained user permission system which allows us to give
certain users access to specific administration sections only.
    Ex. a FAQ maintainer can only edit the FAQ, and members of an
        "editorial board" can only edit comments, diaries and
         stories, ..
- code review => rewrote include/user.inc which is much easier now
- fixed 4 small bugs
2001-02-18 15:14:56 +00:00
Dries Buytaert da8aaa7672 - improved layout story.module
- fixed bug in translation
2001-02-17 15:52:40 +00:00
Dries Buytaert a60edc7508 - improved the "menu" hook
- replaced the "open submission queue" (submission.php and submission.inc)
  with an optional module (submission.module).
- tidied up the HTML code of some files
2001-02-17 15:38:37 +00:00
Dries Buytaert 52a1d1bbe8 - More updates on the translation support 2001-02-17 12:59:24 +00:00
Dries Buytaert e7f043c30a - updates 2001-02-14 09:32:33 +00:00
Dries Buytaert db554e857d - initial import of the preliminary translation code.
- added timer.inc for benchmarking purpose
- bugfix for php-clean
- bugfix for account.php
- removed redundant format_data
- ...
2001-02-12 20:40:43 +00:00
Dries Buytaert 282fbfd26a - fixed problem with user_permission (reported by Kirstjan) 2001-02-10 17:52:21 +00:00
Dries Buytaert 171479fcfa - a 2nd batch of various updates 2001-02-10 14:36:49 +00:00
Dries Buytaert d6ce51e4ce - added a "search framework" which allows for easy searching
(to be continued)
- tidyied up some existing code
2001-02-10 11:59:06 +00:00
Dries Buytaert b26c49d3d8 - last night's fix 2001-02-09 14:13:00 +00:00
Dries Buytaert 9d36ccaca1 - small fix for 4.0.4 2001-02-06 08:48:09 +00:00
Dries Buytaert 429c8a0022 - documentation updates contributed by Michael O'Henly <michael@tenzo.com>
and myself
2001-02-05 16:42:38 +00:00
Dries Buytaert de2e393933 - various updates, bugfixes and improvements 2001-02-04 22:09:38 +00:00
Dries Buytaert 32c89442d3 - removed all tabs 2001-01-26 14:41:44 +00:00
Dries Buytaert d386c110f4 - removed redundant spaces 2001-01-26 13:38:46 +00:00
Dries Buytaert abe57bbb42 - added port + directory patch for loading configuration files 2001-01-26 10:03:59 +00:00
Dries Buytaert f162723fe4 - fixed ieni-wienie small bug in comment.inc (reported by NotZen) 2001-01-25 15:29:45 +00:00
Dries Buytaert e87e7816c8 - fix for the "block problem" reported by martin@abol.com:
it only happened when you hosted drupal in a subdirectory a la
      http://yourserver.com/drupal/
2001-01-24 08:24:37 +00:00
Dries Buytaert 0b9b325873 - fixed bug in database.mysql
- removed redundant options from hostname.conf
2001-01-23 12:03:15 +00:00
Dries Buytaert 2c32276ddb - added initial locale support as discussed on the mailing list 2001-01-22 20:38:00 +00:00
Dries Buytaert 36c1824945 - fixed one bug that only showed when up using 4.00 and not with 4.0.4
- added extra checking
2001-01-22 08:57:10 +00:00
Dries Buytaert ea97888533 I know, I know, it is getting nasty lately but I have another large commit after nothing but code.
This time I redid the "category"-stuff.  Categories - from now on called sections - are now maintained from the admin pages, can have their own post, dump and timout thresholds as discussed earlier (some weeks ago).  By tomorrow evening users will be able to enable or disable section as well - i.e. to customize the content of drop.org.
2001-01-21 19:41:11 +00:00
Dries Buytaert 7cc7b405e3 - fixed some bugs in the new comment/discussion code and added a few
enhancements
2001-01-21 09:26:06 +00:00
Dries Buytaert 8b4181d085 - 2 more bugfixes 2001-01-20 12:58:47 +00:00
Dries Buytaert e25c50b994 - 3 small bugfixes 2001-01-20 12:53:54 +00:00
Dries Buytaert 2952d16f78 - updated/improved discussion engine: it needs additional fine-tuning
though but I think this is stable enough for public consumption and
  real-life testing.
   ==> a first big step towards a flexible comment engine.

IMPORTANT:
  - Required theme updatins:

    UnConeD: check your $theme->controls() as I added a very, very
             dummy implementation

  - Required database updates:

    alter table users modify mode tinyint(1) DEFAULT '' NOT NULL;
    alter table comments change sid lid int(6) DEFAULT '0' NOT NULL;
    alter table comments add link varchar(16) DEFAULT '' NOT NULL;
    update comments set link = 'story';
2001-01-20 12:20:31 +00:00
Dries Buytaert 53b92a614a - by default, keep the watchdog for one week rather then two weeks
(http://drop.org/admin.php?op=watchdog is gets way to lengthy)
2001-01-20 09:25:44 +00:00
Steven Wittens 6732083394 Fixed bug with story-moderation-comments starting at 0 score instead of 1. 2001-01-16 18:14:15 +00:00
Dries Buytaert 34b723457b - Harry Zink reported that 'administrate' is not entirely correct English
so I renamed "administrate xxx" to "administer xxx".
2001-01-16 11:08:03 +00:00
Dries Buytaert 8b4c95b259 - rewrote the block placement stuff and updated the themes.
IMPORTANT: you have to drop 2 tables "blocks" and "layout"
             and you have to recreate them again with those
             in database/database.mysql
- integrated the documentation written by UnConeD
2001-01-13 16:33:19 +00:00
Dries Buytaert 55679210c2 - created 2 new functions; check_textfield() and check_textarea() and
integrated them were appropriate.  It works better and the code is
  more readable then it used to be:
    (see http://drop.org/discussion.php?id=44&pid=0#0)

- story authors can no longer moderate their own stories
    (requested by Natrak)

- fix inie-winnie small detail in theme marvin
2001-01-13 08:29:50 +00:00
Dries Buytaert 1035d95cae - removed redundant file: a left-over from previous optimizations 2001-01-08 16:28:47 +00:00
Dries Buytaert 554d9b080b - fixed 2 small bugs in account.php
- drastically improved administration section
- drastically revamped story administration:
  added new feature to schedule the publishing of stories
- applied correct naming conventions to submission.php
- fixed 1 small glitch in boxes
- somewhat expanded the documentation
= changed one SQL table
- updated the faq with info on drupal
- ... and more things I forgot about
2001-01-07 19:21:28 +00:00
Dries Buytaert 8511d9fb45 A batch of patches:
- configuration:
    + renamed $db_name to $db_user
    + renamed $db_base to $db_name
  - fixed small diary glitch
  - fixed initial-comment-score problem
  - fixed comment rating bug: improved the API and updated the
    themes
  - removed some tabs from Steven ;)
  - fixed backend warnings and improved robustness
    I'm not happy yet with the headline grabber - it generates
    too many SQL errors.
  - some small cosmetic changes in comment.module
  - fixed minor glitch in format_interval()
2001-01-06 11:39:43 +00:00
Steven Wittens b604c43894 Oops typo :) 2001-01-05 12:17:25 +00:00
Steven Wittens 5f95212d11 Added a dynamic "administrate" link to the account box. 2001-01-05 12:09:46 +00:00
Dries Buytaert db0c9420a3 - fixed small flaw that showed up with PHP 4.0.0-rcxx but not with PHP 4.0.4 2001-01-04 21:17:07 +00:00
Dries Buytaert 2e495b7d0e - the diary module is truly modular now
- the faq has been spell checked
2001-01-04 21:09:40 +00:00
Dries Buytaert 4572760eb3 A batch of preparations for release candidate 2:
- expanded documentation
   (written by Jeroen)
 - fixed bug in includes/module.inc
 - fixed bug in modules/backend.class
 - renamed some of the SQL tables (!)
 - started making the diary.module truly modular (not finished yet)
 - renamed "admin_blocks" to "boxes"
 - added new functionality to "boxes": apart from PHP boxes, you
   can now create ASCII boxes as well as HTML boxes for those who
   are not confident with PHP.
   (requested by stalor)
 - added drupal-site module to keep track of known drupal sites
 - added small Perl script to generate encrypted CVS passwords
2001-01-03 21:23:58 +00:00
Dries Buytaert a5b8640b00 - fixed bug in database.inc 2001-01-02 06:35:23 +00:00
Dries Buytaert f2a25094e6 - fixed bug in hostname.conf 2001-01-02 06:16:22 +00:00
Dries Buytaert 51d516240a - prepared hostname.conf for public release 2001-01-01 12:17:57 +00:00
Dries Buytaert f055cf11e0 - fixed PHP4.0.4 problem in discussion.php.
- some improvements to account.php and theme.inc.
- updated the documentation (again, again and again)
- added INSTALL file
- removed redundant files
2000-12-31 08:24:16 +00:00
Dries Buytaert 697e5eb49d - Fixed bug in account.php.
- Updated the documentation (again): I spent most of the day writing
  documentation which might well be considered plain boring.
2000-12-30 21:13:54 +00:00
Dries Buytaert 44c4800434 - here a bunch of changes to make "drupal" (for now) work with PHP 4.0.4
- tidied up some of the code and mainly working on the documentation
2000-12-30 11:58:14 +00:00
Dries Buytaert 2e721505ca - undid small improvement ;) 2000-12-29 11:46:54 +00:00
Dries Buytaert d8182d2083 - small improvement 2000-12-29 11:45:41 +00:00
Dries Buytaert fd64164419 Surprise, surprise. After nothing but code, a large batch of changes:
- removed droplets
 - added (optional) admin_blocks module
 - added (optional) affiliate module
 - added (optional) about module (only placeholder, under construction)
 - fixed some tiny bugs (e.g. quote bug in search.php)
 - partionally rewrote some modules to be big, bad and better
 - partionally rewrote some modules to be more uniform
 - added GNU GPL license to CVS

Also:
 - installed PHP 4.0.4 on my localhost and now working
   towards PHP 4.0.4 compatibility.
 - I think I'll baptize the engine "drupal".  If you have a
   better idea, try convincing me ASAP.

Todo:
 - more testing (also with PHP 4.0.4)
 - make "project"-module: download, info, blah blah
 - complete documentation
2000-12-29 11:00:56 +00:00
Dries Buytaert ea873bc7e2 - some improvements and code polishing
- added a few extra blocks to choose from
2000-12-24 15:44:29 +00:00
Dries Buytaert da520e5ffb - small glitch 2000-12-23 23:55:04 +00:00
Dries Buytaert 524773f6da Yet another large batch of updates:
- I rearranged some of the code and clean-up some of the mess.

 - Added "blocks" which can be user defined/controlled: check
   to see.  The positioning of blocks is rather basic for the
   moment, so I'm all open for input on that.
2000-12-23 23:25:28 +00:00
Dries Buytaert 8d5b4e7b86 - intermediate commit: see previous commit 2000-12-23 15:23:34 +00:00
Dries Buytaert 0cadc4e683 - intermediate commit: some bugfixes, changes and some drastic
changes to block and module support
2000-12-23 15:13:34 +00:00
Dries Buytaert dcfcd99c6c - improved web interface of cron module.
- improved web interface of account module.

- added simple permission system with both administrators
  and regular users. It can be made more fine-grained but
  it will do for now.

- various small enhancements to the other modules, but
  nothing big.
2000-12-16 21:42:52 +00:00
Dries Buytaert 62588af9ce - a few more updates 2000-12-16 14:32:21 +00:00
Dries Buytaert 0171a5cbe8 - small fixes/updates 2000-12-16 09:57:21 +00:00
Dries Buytaert c1a88d5d67 Again, a large batch of updates - I'm twisting things around here:
1. improved .htaccess to be more "secure": to keep prying
    eyes out

 2. rewrote the administration section from scratch using a
    modular approach

 3. improved the information gathered by error.php - we can
    now (hopefully) track what bots are crawling us.

 4. fixed a bug in submit.php, fixed a bug in theme zaphod,
    fixed a bug in theme marvin.

 5. rewrote cron from scratch - it now interfaces with
    modules as it should have been from the beginning.
    Very cool if you ask me - it can use UNIX/Linux
    crontabs.

 6. updated widget.inc to be module aware - needs more
    work though - maybe this afternoon?

 7. updated most modules: small bugfixes, improvements, and
    even the documentation

 8. removed diary.php and made it a module - you can now
    run a drop.org site without a diary system if someone
    would prefer so

 9. updated all themes to use the new modules where
    appropriate

 10. added a robots.txt because the error message in the
     watchdog become annoying.

 11. added the new configuration system (mutliple vhosts
     on the same source tree) - use hostname.conf instead
     of config.inc

 12. removed calendar.inc and made it a module

 13. added format_interval() to functions.inc (UnConeD)

 14. whatever I forgot ...
2000-12-16 08:39:01 +00:00
Dries Buytaert 8a77861958 - large batch of updates 2000-12-14 14:20:06 +00:00
Dries Buytaert e8ea2ab88e - large batch of updated files featuring various changes: big, small and
new stuff!
2000-12-10 16:22:50 +00:00
Dries Buytaert 2a4c9cc97b - added so called "blobs": something hot, something new and something cool! 2000-12-10 16:12:08 +00:00
Dries Buytaert 1e993e9367 - added a new cron deamon as discussed earlier! 2000-12-10 15:44:23 +00:00
Dries Buytaert 8b68d11dba - changed quite a lot of things around, including small bug fixes (nothing)
critical and module support.  The faq.php will - for instance - become a
  module
2000-12-07 13:08:07 +00:00
Dries Buytaert 086e72d4b1 - Redid most of account.php and fixed quite some bugs!
Check out your new user account stuff and give me some feedback.
2000-11-25 12:56:04 +00:00
Dries Buytaert ebe3dddc56 amdin.php:
- fixed bug in story section
account.php:
  - removed death code, clean-up, reorganization
  - added "lost password?" functionality
faq.php:
  - clean-up
watchdog.inc:
  - improvements
  - end of input-limit test period
error.php:
  - improvements, still crappy layout though
2000-11-20 10:27:35 +00:00
Dries Buytaert a461e3696c * tiny improvements (!= bug fixes) 2000-11-14 09:03:44 +00:00
Dries Buytaert 46a39fe266 * and the correct database settings 2000-11-13 08:18:47 +00:00
Dries Buytaert 9559f61fca Another batch with a lot of internal updates, yet no visual changes to the
site:

- watchdog (rewrite):
   + the collected information provides more details and insights
     for post-mortem research
   + input limitation
- database abstraction layer:
   + mysql errors are now verbose and is no longer displayed in a
     browser - fixes a possible security risk
- admin.php:
   + updated watchdog page
   + fixed security flaw
- diary.php:
   + fixed nl2br problem
- themes:
   + fixed comment bug in all 3 themes.
- misc:
   + renamed some global variables for sake of consistency:
      $sitename  -->  $site_name
      $siteurl   -->  $site_url
   + added input check where (a) exploitable and (b) possible
   + added input size check
   + various small improvements
   + fixed various typoes

... and much, much more in fact.
2000-11-13 08:17:45 +00:00
Dries Buytaert ed1a244398 - fixed bug in backend.inc
(check http://www.drop.org/backend.php)
- update theme.inc to use widget.inc
- small enhancements to function.inc
2000-11-07 08:58:36 +00:00
Dries Buytaert e1130946c8 * renamed template.inc to widget.inc:
note that `widget.inc' is nothing more then a library with
    standard widgets (eg "New headlines", "New diary entries",
    and so on).  Every theme builder is free to make custom
    widgets and to include them in their .theme file!
2000-11-07 08:57:31 +00:00
Dries Buytaert 14588bfea9 * removed redundant file 2000-11-07 08:56:43 +00:00
Dries Buytaert aa1b366deb - fixed bug in search.php
- fixed bug in discussion.php
- theme update: comment() now takes 3 arguments:
    $comment - an object with comment data
    $link    - a link to the reply form of that particular
               comment
    $thread  - the subthread of that particular comment
- theme 'marvin' and theme 'zaphod' are updated, theme
  'unconed' is left to be done
2000-11-03 08:11:19 +00:00
Dries Buytaert 819543f7b2 * correct database information 2000-11-03 07:59:54 +00:00
Dries Buytaert 7f2e4572fa - fixed bug in search.php
- fixed bug in discussion.php
- theme update: comment() now takes 3 arguments:
    $comment - an object with comment data
    $link    - a link to the reply form of that particular
               comment
    $thread  - the subthread of that particular comment
- theme 'marvin' and theme 'zaphod' are updated, theme
  'unconed' is left to be done
2000-11-03 07:57:28 +00:00
Dries Buytaert fb348c6a90 * the correct dbase settings 2000-11-02 09:24:08 +00:00
Dries Buytaert 8a866e6d51 - Fixed quote bug in the comment tracker.
(suggestion UnConeD)
- Added anchors to comment links to easy comment navigation.
  (suggestion UnConeD)
- Fixed duplicate `you voted' after moderating a story.
  (suggestion UnConeD)
- Fixed quote bug in administration center.
- Expanded user administration with timezone information.
- Improved the theme system by eliminating the "preview" function.
  Let's not make the system more complex then it ought to be.
- Refined watchdog administration.
- ...
2000-11-02 09:23:07 +00:00
Dries Buytaert 28bf9e8999 - fixed a bug in check_input: html stripping was not 100% correct.
- fixed a bug in account.php: the confirmation url is now correct.
- improved error checking + security in diary.php.
- fixed a bug in the html code of theme zaphod.
- improved the date handling: always call format_date().
- expanded account information in administration pages.
- added a new variable $siteurl to ./includes/config.inc.
- added comment moderation to theme zaphod.
- "alter table users add timezone varchar(8);"

- !!! added new timezone feature !!! :o)
2000-10-30 16:18:39 +00:00
Dries Buytaert 472b0f8209 * Added the MySQL settings for www.drop.org (release preparations). 2000-10-24 15:19:08 +00:00
Dries Buytaert cbeb5ee468 This significant commit fixes 99% of all known bugs and improves drop.org
by means of better security checks in order to avoid malicious behavior.
In addition, quite some code has been fine-tuned.

However, as a result, every theme will require a small update ...
2000-10-24 07:24:24 +00:00
Dries Buytaert ef43f48575 A bunch of internal changes:
- better organisation of include files
 - renamed a few function to make more sense
 - small bugfix in the user account registration
 - ...
2000-10-21 13:59:27 +00:00
Dries Buytaert da9675ef0b - small bugfix: the voting settings where not 100% correct 2000-10-21 13:55:52 +00:00
Dries Buytaert 318d84e67d - extended and renamed drop's watchdog. 2000-10-19 13:33:48 +00:00
Dries Buytaert 11ee95dadc A big, fat commit with a shitload of internal changes. Not that much
visual changes:

- removed redundant files user.class.php, calendar.class.php
  and backend.class.php.
- converted *all* mysql queries to queries supported by the
  database abstraction layer.
- expanded the watchdog to record more information on what
  actually happened.
- bugfix: anonymous readers where not able to view comments.
- bugfix: anonymous readers could gain read-only access to
  the submission queue.
- bugfix: invalid includes in backend.php
- bugfix: invalid use of '$user->block'

and last but not least:

- redid 50% of the user account system
2000-10-19 13:31:23 +00:00
Dries Buytaert 43af5a7389 * fixed a small bug. 2000-10-18 07:48:52 +00:00
Dries Buytaert 68d443831d * fixed a small bug 2000-10-18 07:45:39 +00:00
Dries Buytaert 2d638e99b5 * fixed minor bug 2000-10-18 07:43:33 +00:00
Dries Buytaert b46f9a846f Bugfixes, amongst them:
- anonymous chicken was able to moderate commnets
 - "anonymous chicken" was displayed in the comment reply form
 - ...

The only thing left to be done is to tackle (or continue tackling)
the user accounts which in fact is quite some work. :o)
2000-10-12 06:44:11 +00:00
Dries Buytaert bfd8c86464 ... 2000-10-10 10:57:16 +00:00
Dries Buytaert 4a6c6de758 Huge update - I don't have time to write everything down but the directory
structure changes, some sections are expanded.  Take a look at the source
code or ask me to elaborate on certain issues/topics.
2000-10-10 10:52:19 +00:00