Commit Graph

27 Commits (3e075294febed760b7e59a8b8a59dc2ebe8ccf7b)

Author SHA1 Message Date
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 8d31134d62 - Fixed small fix in poll.module. Patch submitted by Simone. 2001-06-19 09:28:11 +00:00
Dries Buytaert 96576a6ef7 - 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.
2001-06-15 07:30:44 +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
Steven Wittens 959b77c3fa - Added $theme->foreground and $theme->background vars to provide some general usable colors outside of a theme.
- Updated poll.module to use the new $theme color variables
2001-06-09 19:31:34 +00:00
Kjartan Mannes 0e2fc70e3d no message 2001-06-09 18:12:50 +00:00
Steven Wittens a722a1fed7 Typoe 2001-06-08 20:17:00 +00:00
Steven Wittens d41c4f23f1 - Added "dirty" support for theming the poll-bars... uses $theme->pollfill and $theme->pollempty for now. 2001-06-08 20:11:11 +00:00
Steven Wittens 28e6fdfbf3 - Fixed block showing queued polls. Now only shows active, posted polls.
- Fixed votes being reset to zero when updating a poll
- Fixed that weird crashing bug on the poll form (Natrak)
2001-06-07 15:42:28 +00:00
Steven Wittens cca16453ac Bugfix: there was still a "read more" link in the full view. 2001-06-06 19:39:17 +00:00
Steven Wittens 30703525fb - Update for new node format
- Added "read more" link for the block-version of a poll
- Added mini-docs :)
2001-06-06 19:35:32 +00:00
Dries Buytaert b0c349e247 - 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.
2001-06-02 22:12:35 +00:00
Steven Wittens 4060a9ee80 Shrunk the poll output... it was rather big in full-view :) 2001-06-01 23:23:53 +00:00
Steven Wittens bf3772bada Hmmm for some reason the \r\n's in the poll output where being changed into <br>'s... is that because of the check_output() legacy functions inside the themes? In anycase, I removed em. 2001-05-24 11:35:22 +00:00
Dries Buytaert 540fdfc0c6 - Replaced $theme->story() by a more generic $theme->node(). All themes
required an update (and so will your custom themes).
2001-05-24 10:05:18 +00:00
Steven Wittens 71c1162465 Fixed the poll block being messed up a lot. Stupid objects and arrays mixup :P
Please update drop.org as soon as possible, coz my crappy poll.mod is making drupal look bad :(
2001-05-23 12:19:35 +00:00
Steven Wittens 404cd22b3a Slight improvement to the "choiceboxes" thingie. 2001-05-22 21:46:48 +00:00
Steven Wittens 54a4f06ce4 Let's hope fixing bugs will be just as easy next time :)
This baby is fixed.
2001-05-22 21:44:48 +00:00
Steven Wittens 05438a0d8b Disabled the buggy cron for now. Will fix tomorrow. 2001-05-22 21:42:20 +00:00
Steven Wittens 376e71f1f8 (Hopefully) a fix for the "n.active" watchdog error... forgot that node_get_XXXX() only queries node properties. 2001-05-22 21:40:54 +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 4f1cf00f9e - Improved node_get() so that it will try to skip one additional query
if possible (ie. to reduce the number of queries).

- Automatically removed tabs and trailing spaces from the poll.module.
2001-05-20 17:36:55 +00:00
Steven Wittens 27496c4620 - Changed the node_get_object() and node_get_array() functions to allow multiple conditions
- Added the "delete" hook for node-modules. When called, a module should do additional clean-up if necessary.

- Updated all node-modules
2001-05-20 16:47:50 +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
Steven Wittens 3fbd49d786 - Fixed the errors when adding a new poll.
- Cleaned up the coding style
2001-05-20 12:13:25 +00:00
Steven Wittens c0ecd46aff Added poll.module, a poll module :)
It's mainly intended as a sideblock-element as there's no real use in having them show up on the mainpage. There's no real poll-browsing system for now either.

I still need to write documentation, and I'm not yet satisfied with the node-output (non-sideblock). I should be able to improve it once the $theme->nodebox ideas get finalized.
2001-05-19 17:41:41 +00:00