Commit Graph

267 Commits (e4d791fe0d5a70867448c9fd5b2d03b9d69b98a0)

Author SHA1 Message Date
Kjartan Mannes 876536a955 locale.module
- search is now default.
- search remembers your settings.
- save will dump you back to your last search.
2001-08-08 09:22:01 +00:00
Dries Buytaert 6e15c4b55f - common.inc:
+ applied Julian's conf_init() patch
2001-08-03 20:14:52 +00:00
Kjartan Mannes 491550531f common.inc
- format_username() now takes a second optional parameter which gives the
  real name of the user.

Rest
- updated the calls to format_username() where appropriate to show the name
  of the user instead of the account id. Clicking on a name will still give you
  the account info etc. If you find a place where the real name is not shown
  let me know.
2001-07-25 12:21:49 +00:00
Dries Buytaert 8f74184a58 - Fixed '" should be &' problem in feeds. 2001-07-18 20:21:16 +00:00
Kjartan Mannes 934b3989e6 - moved format_size() from file.module to common.inc. 2001-07-17 09:04:33 +00:00
Dries Buytaert cd16e265ba - blog.module:
+ added RSS 0.91(5) feeds to the blog module which makes it possible
    to both syndicate an particular user's latest blog entries, or the
    latest entries of all users.
2001-07-14 13:40:47 +00:00
Dries Buytaert e724f18db9 - blog.module:
+ added RSS 0.91(5) feeds to the blog module which makes it possible
     to both syndicate an particular user's latest blog entries, or the
     latest entries of all users.
2001-07-14 13:36:38 +00:00
Dries Buytaert b99d4d7a42 - theme system:
+ added $theme->images()

- blog.module:
    + improved user-friendliness and rewrote most of the output routines
    + made quoted text /italic/ by default
    + integrated discussion system like it should
    + ...

- marvin.theme:
    + small visual improvements
2001-07-14 12:12:41 +00:00
Dries Buytaert d6d60de3cc - Added blog.module to replace diary.module (contrubeted by Julian):
+ feedback wanted

- Added updated import.module (contributed by Julian):
   + user page do browse the headlines by feed and bundle, to display
     the item descriptions, etc.

- Fixed small bug in common.inc.

- Updated database.mysql
2001-07-11 22:06:24 +00:00
Dries Buytaert 5077cafd38 - account.php:
+ tidied up the texts

- common.inc:
    + undid bad coding style
    + fixed typo in permissions

- poll.module:
    + (automatically) removed tabs and trailing whitespaces
2001-07-07 16:37:27 +00:00
Dries Buytaert 6a21940c76 - common.inc:
+ Made '$na' translatable on popular demand.

- node.module:
   + replaced a confusing configuration description, as suggested by
     Remco.

- statistics.module:
   + Added a 'most recent referers'-table sorted by timestamp.

- drupal.module:
   + Small update of the links.
2001-07-03 19:09:51 +00:00
Dries Buytaert 8674cf0953 - Small updates 2001-07-01 11:27:10 +00:00
Dries Buytaert 87575929a5 - Introduced caching support. 2001-06-30 20:23:33 +00:00
Dries Buytaert e6a67118eb - Made search.php a module, being search.module.
- Updated the permission names to be more consistent.

- Small improvement to node.php.
2001-06-30 09:50:36 +00:00
Dries Buytaert 9c43e8fc7a 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!
2001-06-29 22:08:57 +00:00
Kjartan Mannes 3381307367 - Changed field_get/set() to be more efficent. 2001-06-24 18:33:13 +00:00
Dries Buytaert d29684a664 - Added simple referer module, for sake of fun. 2001-06-24 11:38:08 +00:00
Dries Buytaert 72065fb835 - 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 ...
2001-06-20 20:00:40 +00:00
Dries Buytaert 29e0e0fc66 - Made it so that usernames can contain spaces. Like that, people can
use their full name as their username.
2001-06-19 06:55:19 +00:00
Kjartan Mannes 8367d662fc Changes
- Modifed form_select() to accept an optional 6th parameter which is appeneded
  to the select tag. $value can now also be an array. This allows for multiple
  selects:
  form_select($header, $name, $values, $options, $help, "multiple=\"true\" size=\"10\"");
- Updated account.module to use the extended form_select() functionality.
2001-06-18 20:51:58 +00:00
Dries Buytaert 3d73a48edc - Merged "system settings" and "module settings" into one page. IMHO
it wasn't a good idea to split them up in first place, and it turned
  out to be quite hard to decide where to put some variables.

  Also moved some variables around and even renamed a few variables
  while doing so.

- Added a page_header() and page_footer() to all top-level .php pages.
2001-06-17 20:35:48 +00:00
Dries Buytaert db92d73b6e - Improved watchdog and submission throttle: removed redundant code,
streamlined the existing code, added new watchdog type called "httpd"
  for Apache errors.  The latter should make it easier to add watchdog
  filters later on.

- Clarified some watchdog messages.
2001-06-13 21:37:19 +00:00
Dries Buytaert c56ee67e29 - Changed field_set(), field_get() and field_merge() to use ',' and
'=' 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
2001-06-11 20:01:13 +00:00
Dries Buytaert d397bbe935 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
2001-06-10 15:01:20 +00:00
Kjartan Mannes 949d4d956a - Modified error_handler() to ignore errors when @function() is used to
suppress errors. If ya suppress them you normally have a good reason to do
  so :-)
2001-06-04 19:02:38 +00:00
Kjartan Mannes 6563382974 - Changed form_select() to return NULL if called without $options. This should
not have any impact, and makes things look nicer imo.
2001-06-04 15:06:47 +00:00
Kjartan Mannes 3d0875fade CHANGES
- Modified check_mail() to allow '+' characters in mail addresses.

TODO
- Extend the regular expression to allow addresses valid in the RFC's.
  Currently IP domains are banned, and so are many other extensions of RFC
  822. This is not a priority since we currently support 96% of all addresses.
2001-06-02 06:05:56 +00:00
Dries Buytaert 255c56cc2b - Made the code generated by include/common.inc XHTML 1.0 compliant: all
forms should now be XHTML compliant. Just trying to get used to XHTML:
  :).
2001-05-31 18:47:43 +00:00
Kjartan Mannes 4152156260 - Fixed an extra <P> in form_file(). 2001-05-30 06:45:17 +00:00
Dries Buytaert 0b32787a9c - Added a experimental index.module to try out some of the discussed
techniques.  It does not work yet, nor is it integrated with the
  rest of the code.
2001-05-25 16:03:02 +00:00
Dries Buytaert b0288a46d8 - Fixed small glitch in check_preview().
- Updated CHANGELOG.
2001-05-24 08:53:07 +00:00
Dries Buytaert 532233a979 - Removed includes/timer.inc: it has been integrated in common.inc.
- Fixed a bug in node.php: UnConeD forgot to update 1 node_get_object().

- I changed the look of theme_morelink() a bit: it might not look better,
  but at least the output is "correct".

- Various small improvements.
2001-05-20 19:30:39 +00:00
Dries Buytaert 20397ad3d9 CHANGES
- 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.
2001-05-20 13:51:40 +00:00
Kjartan Mannes eeb572b1fc - Changed form_file($name) to form_file($title, $name, $size, $description = 0).
This change extends the functionality and makes it conform more with the
  other form_* functions.
2001-05-18 09:17:00 +00:00
Dries Buytaert 031e4d4208 - Tidied up the field_get() API and improved the implementation of
both field_set() and field_get().
2001-05-17 20:50:15 +00:00
Dries Buytaert 6c38796219 - Fixed bug in account.module.
- Simplified field_set() API.

- Made UnConeD's cool common timestamp format conform with the
  general coding style.  Sorry to be so picky about this but I
  really can't help it. ;)
2001-05-17 19:14:50 +00:00
Steven Wittens e2f051b385 Improved and optimized format_interval() 2001-05-17 18:25:08 +00:00
Steven Wittens daee55e0ec Updated the custom timestamp format to include locale support. 2001-05-17 17:56:52 +00:00
Kjartan Mannes 30c236f22b - Extended form() to take an optional forth parameter which is appended to
the <FORM> tag.
- Added form_file($name) for file uploads. (requires form() to be called with
  $options='ENCRYPT="multipart/form-data"'.)
2001-05-17 11:49:19 +00:00
Dries Buytaert 6f02738cc2 - Removed the "history"-field from the SQL table "users" and added
this information to the "users"-field in both nodes and comments.
  This database/table change reduces the number of SQL queries and
  makes Drupal scale better where a lot of voting/moderation takes
  place.  Last but not least it can be considered a new and better
  foundation for future moderation metrics / algorithms.  In other
  words: it is plain better.

    --> oops, all voting/moderation results will be lost!
    --> requires database update, see "2.00-to-x.xx.sql"!

- Updated database/database.mysql
2001-05-16 20:54:37 +00:00
Dries Buytaert ced0838a82 - Fixed bug in path_uri() 2001-05-16 12:31:08 +00:00
Dries Buytaert 14ddbc473c - 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.
2001-05-15 18:38:57 +00:00
Dries Buytaert e22f1042fc - Renamed "hostname.conf" to "setting.php" (cfr. "setting.module").
Note that - when upgrading - you have to rename all your existing
  configuration files to reflect this change:

     yourdomain.com.conf -> yourdomain.com.php

  By default, i.e. if no configuration file is found, setting.php
  will be used instead.  Using the ".php"-extension will fix most
  configuration/security issues with .htaccess-files ...

- Removed some dead code from forum.module.
2001-05-14 19:41:18 +00:00
Dries Buytaert 25c379fb61 - Added custom PHP error handler to track down warnings and errors.
(Jeroen: let's sit back and wait until that warning bites again.)

- Simplified drupal.module.  We still need a feature list, anyone?
2001-05-06 17:19:58 +00:00
Dries Buytaert be8e898d23 - 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!".
2001-05-05 13:57:29 +00:00
Dries Buytaert fead09a8de Welp. Large commit ahead.
CHANGES:

- Added "read" and "write" permissions into drupal but removed
  it again because - when finished after 3 hours of work - it
  was considered nothing but added complexity that didn't buy
  us anything. :I

  (I'll explain this in detail on the mailing list, I guess.)

- Added a very simple help.module to group all available
  documentation on a single page.

- Fixed bug in node_control(), book.module: UnConeD forgot to
  global $user when updating the combobox code.

- Removed static wishlist.module: in future, the wishlist can
  be maintained as a page in our collaborative book.

- Revised most of settings.module: tidied up the code and the
  descriptions to accompany the settings and introduced a new
  "default maximum number of nodes to display on the main page"
  variable.

- Revised most of comment.module: the administration interface
  looks better now, integrated node permissions, and -finally-
  made it possible to delete comments.

- Polished on:
   + account.module
   + structure.module
   + locale.module
   + module.module
   + forum.module

- Form-ified:
   + account.php
   + account.module
   + setting.module
   + cvs.module
   + submit.php
   + comment.module
   + forum.module
   + book.module
   + page.module
   + locale.module

- Updated CHANGELOG

INFO:

- Designed a "generic tracker system with optional backends"
  on paper.  The idea is to allow registered users to hot-list
  certain topics, individual nodes or threads (comments) and
  to "plug-in" output backends like - for instance - an e-mail
  digest.  The design requires "intelligent blocks" though.


TODO:

- I want to tidy up the headline.module and backend.class as
  well as merge in headlineRSS10.module.  Julian spent quite
  some time working on headline.module but I'm not sure what
  he changed and whether he'd contribute it back?
2001-04-30 17:13:08 +00:00
Dries Buytaert ef7d5e1201 CHANGES:
- Added new form_* functions to common.inc, used for building
  forms: it should improve 'stability' (no form typos, every-
  thing properly escaped/unescaped) and should help providing
  a very consistent user interface (wrt forms).

- Adjusted node.module to use the new form functions.
  (Can be used as an example.)

- Adjusted book.module to use the new form functions.
  (Can be used as an example.)

- Merged function.inc into common.inc!

- Slowly removing all global $status and $rstatus variables:
  use node_status() instead.

TODO:

- Apart from implementing the permission system, I'll spend
  some time updating most modules today and tomorrow to use
  the new form functions.
2001-04-29 12:39:55 +00:00
Kjartan Mannes 95f92686e4 CHANGES
- Modified conf_init() to use default.conf if nothing else can be found.
- Added some comments to hostname.conf to reflect the changes and
  provide more information on how to rename the file.

TODO
- The Drupal handbook should be updated once the CVS version is released.
- Should try to remove the remainder of info from hostname.conf and go for a
  completely web-based administration if possible.
- Does having all the settings in a SQL database make Drupal add more
  overhead than including a .conf file? If nobody knows for sure some tests
  should be done. If yes, concider having the admin interface generate an
  include file in addition to saving to the database.
2001-04-27 06:45:07 +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 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 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 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 8113d31f3b - update 2001-03-18 08:44:01 +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 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 52a1d1bbe8 - More updates on the translation support 2001-02-17 12:59:24 +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 de2e393933 - various updates, bugfixes and improvements 2001-02-04 22:09:38 +00:00
Dries Buytaert abe57bbb42 - added port + directory patch for loading configuration files 2001-01-26 10:03:59 +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 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 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 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 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