Commit Graph

72 Commits (88d6ef3a2ad99a0872b00f40e84c083b098ad21c)

Author SHA1 Message Date
Dries Buytaert 30447b05be - Applied Marco's poll.module patch. 2002-10-18 05:26:01 +00:00
Steven Wittens c238481f02 - Fixed missing filtering 2002-10-15 23:17:15 +00:00
Steven Wittens c5da43fa40 - Fixed missing filtering 2002-10-15 23:15:55 +00:00
Dries Buytaert 58c9926647 - Another "SELECT... LEFT JOIN... GROUP BY... ORDER BY" by James. 2002-08-26 18:25:05 +00:00
Kjartan Mannes d880f8f559 - added missing <ul> tags. 2002-06-12 16:02:26 +00:00
Kjartan Mannes 0072855340 - made poll_page() SQL query valid when running MySQL in ANSI mode. 2002-06-12 12:35:01 +00:00
Dries Buytaert 10f808b37b - Updated the poll documentation. Patch by Scott. 2002-06-09 08:30:11 +00:00
Kjartan Mannes 5d36c70449 - improved module descriptions.
- removed admin options for queue and comment module if the modules are not
  loaded.
- nodes are now auto promoted when queue module isn't enabled.
- moderation result block is now visible by the node author.
2002-06-08 16:17:29 +00:00
Steven Wittens 8be5a2545e Poll.module improvements:
- Added links to see poll results when you haven't voted yet (and to go back).
- Cleaned up code and moved large sections into separate functions for cleaner code
- Cleaned up the way of distinguishing between multiple polls on one page (now it just uses the nid)
2002-06-04 03:55:17 +00:00
Kjartan Mannes 4a28077f46 - adding descriptions to modules (thanks Joe + Scott).
- fixed comment flat list view missing 1 comment.
- changed update.php around a bit.
    * security check isn't in effect if the db hasn't been updated.
    * instructions re-organized.
    * fixed some minor updates.
- updated database.mysql done by UnConeD.
- changelog update.
2002-06-01 21:57:29 +00:00
Steven Wittens 59082a5f19 Poll.module:
- Added timestamp (created) sorting to polls page.
2002-06-01 21:36:05 +00:00
Steven Wittens e0c1980329 Poll.module:
Added a page showing a list of older polls.
2002-06-01 20:19:18 +00:00
Steven Wittens f520a8b413 Fixed unmoderated polls already showing up in the side-block. 2002-06-01 19:34:32 +00:00
Dries Buytaert ad83b449f7 - Bugfix: found a bug with the 'create poll' title attribute. It was
getting added to the <a> tag as '0="title" 1="Add a new poll."'.

  Patch by Revar.
2002-05-26 09:03:16 +00:00
Kjartan Mannes 66e1bbfb93 - pending user accounts will not be notified to the site_email.
- fixed access checks on the register form, do this before you enter the
  _save function. If registrations are disabled the register link will
  no longer show (again).
- changed &#187 to &raquo, using the names of entities are better than
  the numbers.
- fixed user information being set when account is registered (properly this
  time, really!)
- reversed the if(!...) commit.
- node_add specifies more defaults.
- added link to blog entries from user page.
2002-05-23 14:14:48 +00:00
Kjartan Mannes 5f6d733b70 - node security fixes.
- fixing the UI to represent what actually happens when you are an admin.
2002-05-22 23:28:48 +00:00
Steven Wittens bb3803b63e Poll.module:
Node links didn't always show up in the poll side-block, only when having voted. Fixed.
2002-05-21 23:46:07 +00:00
Steven Wittens f1f458ddf0 Poll.module:
Cosmetical bugfix, "1 vote" instead of "1 votes" (using format_plural)
2002-05-21 11:50:00 +00:00
Kjartan Mannes c9871b7814 - updating all nodes to use taxonomy terms.
- updated node modules not to cause errors when taxonomy module is disabled.
- added %date variable to user mail configuration.
- added hyperlinks to admin.php?mod=system (site configuration) for easy access.
- usual coding style and xhtml fixes.
2002-05-19 23:05:05 +00:00
Steven Wittens 87c134fa1e Possible bug with filtering: linebreaks inside style's got converted into breaks. 2002-05-14 21:56:01 +00:00
Kjartan Mannes f86a944979 - applied Stevens link patch.
- fixed block permissions.
- fixed user admin page errors: http://www.drupal.org/node.php?id=173.
- cleaned up common.inc a bit: removed format_info, path_img, field_merge.
2002-05-12 15:40:57 +00:00
Steven Wittens c72bf4b5f7 Code-style fix 2002-05-11 15:51:52 +00:00
Steven Wittens df5dee8444 Poll.module:
- (forgot to mention in the last update) The side-block for the poll now has node-links
- Prevented 'read more' links (there's nothing to 'read more' for polls)
2002-05-11 15:20:35 +00:00
Steven Wittens cd19768bf1 Poll.module:
- Fixed edit form not defaulting to the correct amount of choices.
2002-05-11 13:56:31 +00:00
Kjartan Mannes de5b9a168d - bug fixes:
* fixed mails not being parsed properly.
    * tracker now shows user name when you view your own recent
      comments.
    * link to submission queue now points to the right place.
    * fixed jabber module.
    * theme is now activated when changed.
- applied Gerhards coding style patch.
2002-04-22 09:05:36 +00:00
Dries Buytaert 8043cb998f - 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.

    + ...
2002-04-20 11:52:50 +00:00
Steven Wittens 0a966e1ed4 Updated poll.module:
- Removed obsolete lid column (changed update.php and database.mysql)
- Added short help
2002-04-20 01:51:05 +00:00
Kjartan Mannes 1b573fb0ba - book log is now saved and shown when necessary.
- fixed poll title not showing up.
2002-04-17 10:15:13 +00:00
Dries Buytaert d8cd54969c - Added Marco's long-awaited taxonmy module and patches - a replacement
for the meta system.  The patches add some extra functionality to the
  comment system (for example, comments can be set read-only) and fix a
  couple of small problems.

  + I integrated the required SQL updates from the varius *.mysql files
    into the "update.php" script.  Upgrading should be easy ...

  + I did not apply/commit the "user.diff" as requested by Marco ...

  + I didn't know what to do with "forum.module" and "forum2.module":
    what do you want me to do with it Marco?  Which one should go in?

  + Can we remove "node_index()" now; both from "node.module" and the
    themes?

  + Thanks Marco!
2002-04-14 20:46:41 +00:00
Steven Wittens 9e4e2dd57c Rewrite of poll.module... improvements:
- Anonymous users' voting is controlled by IP
- Correct handling of multiple polls on one page
- CVS compatible
2002-04-07 17:22:59 +00:00
Dries Buytaert 234b40b253 - node system:
+ Added the "delete node"-link: apparently it got lost during the last
     commit.  Odd.

   + Changed "Edit node" to "Edit <node_name>" on the 'edit node'-page of
     the admin section.  (There a 4 "Node"s that still need to be removed
     though.)

   + Updated the initial submission page (the old submit.php) to include
     some descriptions.
2001-11-07 18:14:46 +00:00
Dries Buytaert 336b713a5f - A large batch of updates, amongst them a rewritten node system. More
information available on the mailing list.
2001-11-01 11:00:51 +00:00
Kjartan Mannes 864c18d4c3 - added the CVS keyword $Id$ to all files to make future version tracking
easier. Also changed the <? tag to <?php in some cases.
2001-10-20 18:57:09 +00:00
Dries Buytaert 0cce47f15f - fixed small glitch in node_del()
- fixed small glitch in comment_del()

- changed the API of the form() function.  The first parameter, the
  "action"-attribute in the <form>-tag has been made optional.  By
  default, it will be set to "$REQUEST_URI".

  Why? Because in 98% of the cases we would do:

    global $REQUEST_URI;
    $form = form($REQUEST_URI, $form_content);

  while we can do:

    $form = form($form_content);

  now.

  Update your modules (and sorry for the inconvenience)!
2001-09-28 16:20:55 +00:00
Dries Buytaert 4a0e498f52 - a batch of updates, including some experimental changes to the moderation
of comments and nodes.
2001-09-27 20:51:26 +00:00
Dries Buytaert d264b4fc2b - fixed bug in poll.module (patch by alex) 2001-09-23 19:25:51 +00:00
Dries Buytaert e2f249878e - improved the search system by making it context sensitive 2001-09-16 14:05:10 +00:00
Dries Buytaert 2d1e9126cb - Added the new user module! 2001-09-16 11:33:14 +00:00
Dries Buytaert 808b6b6cae - Changed the authentication and login scheme as discussed on the mailing
list.
- Fixed the export function in book.module (patch my Julian).
- Fixed the comment alignment (comments got truncated).
2001-08-11 14:54:39 +00:00
Steven Wittens ee12d11165 poll.module - made the poll-durations a lot more locale friendly (using format_interval();) 2001-07-11 14:27:03 +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
Steven Wittens 7bd45884d8 - Fixed naughty $op behaviour, causing block.module to go fubar. 2001-07-07 15:19:29 +00:00
Steven Wittens 82a51e7b75 Fixed "array" being displayed at top of form.
Dries: what was that 'bad markup' bug you mentioned?
2001-07-07 13:09:04 +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
Dries Buytaert 3754a54ed6 - Small but significant improvements to block and box.module which
makes the ever-confusing "rehash modules" (see module.module) no
  longer needed, hence making module.module redundant.  :-)

- Removed module.module.

- Renamed conf.module to system.module, and added some information
  about the available modules to system.module.

- Various small changes.
2001-06-23 11:09:40 +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 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