Commit Graph

286 Commits (5ac59aacd2c5d60155b7236c588bed2e750b3e04)

Author SHA1 Message Date
Kjartan Mannes a5c05512fc - added some missing title attributs to links. 2002-06-14 13:48:35 +00:00
Kjartan Mannes 53a53ce6db - fixing an error when no DA modules were loaded.
- indentation issue in node module.
2002-06-13 09:19:17 +00:00
Kjartan Mannes b06bbe7481 - default theme added to theme options + some clean up.
- title of "blog it" item is used as default node title.
- added link to news feed admin pages on import_page.
- "blog it" link only shows when the blog module is available.
2002-06-10 19:49:16 +00:00
Kjartan Mannes 167955dfb0 - fixing outgoing mails and added some documentation. 2002-06-09 17:24:42 +00:00
Dries Buytaert 359ff9539e - Some small editorial changes to the user module. 2002-06-09 08:17:55 +00:00
Dries Buytaert 2d5630bb48 - Included Moshe's *excellent* user module documentation.
NOTE: I remove the gravity stuff as this optional and already documented
         in rating.module.
2002-06-09 07:44:12 +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
Dries Buytaert 2b3ca2d3ac - More documentation updates. Added "Requires crontab" message to the
settings that require crontab, make some things more consistent, etc.
2002-06-08 10:18:59 +00:00
Dries Buytaert 7d9fc047f9 - Clarified the help texts a bit. 2002-06-08 10:09:03 +00:00
Dries Buytaert f770b7861e - Small detail in the help. 2002-06-08 07:09:02 +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
Kjartan Mannes d5023adb4c - fixing who is online block. 2002-05-31 11:03:54 +00:00
Kjartan Mannes 0b596a8ec4 - modified the user blocks to use the same layout and trim long usernames to
keep the blocks from ruining theme layouts.
2002-05-29 17:19:20 +00:00
Kjartan Mannes f711baceb7 - the user_admin_edit() would loose the theme settings.
- added some more help text to page.module.
2002-05-24 12:27:10 +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 d62d65ae7e - fixing the last fixes. 2002-05-22 22:55:14 +00:00
Dries Buytaert 6d3be31eb2 - Fixed typo in the "request new password" e-mail:
diff -r1.69 user.module
869c869
<       $body = strtr(variable_get("user_mail_pass_body", t("%username,\n\nHere is your new password for %site. You may now login to %uri". drupal_url(array("mod" => "user", "op" => "login"), "module") ." using the following username and password:\n\nusername: %username\npassword: %password\n\nAfter logging in, you may wish to change your password at %uri". drupal_url(array("mod" => "user", "op" => "edit"), "module") ."\n\nYour new %site membership also enables to you to login to other Drupal powered web sites (e.g. http://www.drop.org) without registering. Just use the following Drupal ID and password:\n\nDrupal ID: %username@%uri_brief\npassword: %password\n\n\n--  %site team")), $variables);
---
>       $body = strtr(variable_get("user_mail_pass_body", t("%username,\n\nHere is your new password for %site.  You may now login to %uri". drupal_url(array("mod" => "user", "op" => "login"), "module") ." using the following username and password:\n\nusername: %username\npassword: %password\n\nAfter logging in, you may wish to change your password at %uri". drupal_url(array("mod" => "user", "op" => "edit"), "module") .".\n\nYour new %site membership also enables you to login to other Drupal powered web sites (e.g. http://www.drop.org/) without registering.  Just use the following Drupal ID and password:\n\nDrupal ID: %username@%uri_brief\npassword: %password\n\n\n-- %site team")), $variables);
2002-05-20 09:31:58 +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 71c7b8465c Fixed bug reported by Gerhard:
module.php?mod=login should be module.php?mod=user&op=login in the emails that user.mod sends out.
2002-05-17 14:40:58 +00:00
Kjartan Mannes 35f44e83f8 - xhtml errors
- improper link attributes.
2002-05-15 20:39:55 +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
Kjartan Mannes a93b2a1740 - user.module used a obsolete variable_get.
- set blocks for new users.
2002-05-02 20:32:36 +00:00
Dries Buytaert 73430ade47 Applied Moshe's user module improvements:
- Admins may now change passwords for users.

 - Confirmation message for user_admin_edit is now formatted by standard
   status() function.

 - Improved user experience for anonymous users when they browse to an
   access controlled URL.  Such users will now login and then are
   redirected to the destination URL.  Previously, they received the
   message_access() text.

 - Added a "Who's new" block.
2002-05-02 19:56:51 +00:00
Kjartan Mannes 891cad97a3 - clearing extra spaces from user.module.
- patching weblogs.module.
2002-05-02 14:59:45 +00:00
Kjartan Mannes 4847fe188b - fixed a few coding style issues.
- got the _nasty_ Netscape 4 bug. Even wrote a nice blog about it. Now I
  need sleep.
  http://www.kjartan.net/node.php?id=53
- fixed the register now link showing up when user registration are disabled.
2002-05-01 12:34:04 +00:00
Kjartan Mannes f423f91d37 - fixed the son of session crash. Its amazing how vitally important it is to return
valid data is to PHP.. one mistake and things start to crash at random times.
2002-04-29 18:10:56 +00:00
Dries Buytaert ae263bf607 - Rewrote role management, splitting the table in two. There are no
improvements right now, but this patch will help me adding support
  for taxonomy-based permissions.  Contributed by Marco.
2002-04-28 08:55:00 +00:00
Kjartan Mannes be5f1d2e9d - fixing that persistant <br \> 2002-04-22 09:30:13 +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
Kjartan Mannes 0bd45edcb7 - changing regex. Fixes http://www.drupal.org/node.php?id=107 2002-04-15 22:06:27 +00:00
Kjartan Mannes 6840a20935 Patch by Moshe (thanks)
- fix mail templating bugs
- fix admin account editing (related to theme changeover)
- fix description when editing a Jabber ID.
2002-04-15 21:47:13 +00:00
Kjartan Mannes 5592761620 This is a major change to the system, needs more testing!
Committing Changes by Moshe Weitzman:
- admin_user_account(), user_edit(), and user_view() no longer have any
  hard code for authentication modules. instead authentication modules
  implement the _user hook.
- fixed a couple 'help' typos.
- linked the 'REGISTER' text in the login block to the register page.
  this page now advertises DA better if site employs DA.
- admins may now edit everything about a user account (was a feature
  request).
- user #1 may now login immediately, in addition to receiving his
  password via email.

Other changes:
- modules and themes are now enabled/disabled in the administrative /
  settings / modules | themes pages. Requires SQL update and things must
  be enabled before your site returns to normal. TODO: enable all
  functionality. (For now just do UPDATE system SET status = 1;)
- removed $themes from conf.php.
- added a $theme->system() function where theme can specify settings.
  All themes in the Drupal CVS have been updated to use this.
- added _system hook to modules. TODO: update modules to use this.
- changed strange use of sprintf to the usual strtr. The disadvantage of
  sprintf is that it requires translations to keep the string order,
  which may not be possible in all languages.
- an invalid/nonexisting theme in a user profile will now fallback to the
  BaseTheme instead of crashing.
2002-04-14 19:34:04 +00:00
Kjartan Mannes 1e4308a939 - made the user information block into two different blocks. One for
login and one for user information.
- added link to help in book module (post-patch, see below).
- applied various patches:
  Patch by Greg Tyrelle <greg@tyrelle.net>
  - tracker module now shows usernames next to comments.

  Patch by Moshe Weitzman <moshe@wallaware.com>
  - book module has a more complete help.
  - added administrative link to export book to html
  - fixed non book nodes not showing up in trees.

  Patch by moshe weitzman <weitzman@tejasa.com>
  - links can be defined in the configuration file.
2002-04-02 09:45:57 +00:00
Kjartan Mannes 4ec8a9323f - made some design changes to the user block. 2002-03-09 18:11:28 +00:00
Kjartan Mannes 52c9f26332 - made a link relative instead of absolute. 2002-03-09 17:56:19 +00:00
Kjartan Mannes 1fe8d6b195 - more typo bugs. 2002-03-05 22:10:21 +00:00
Kjartan Mannes e3d2c46f04 - applied search patch.
- added who is online block.
- made weblog module more configurable.
- users may now delete their own accounts (Feature #8)
- users may now request a password using email address *or* username.
  formerly required both items to match an account which was onerous.
- the link to request a new password is now presented whenever a user
  fails login.
- there is now a confirmation message after submitting edits to your
  user information.
- error messages in user.module may now be stylized by themes.
- <hook>_form has a $param setting you can fill with form parameters.
- improved wording for a few config settings.
- fixed various non-coding standard things.
2002-03-05 20:15:17 +00:00
Kjartan Mannes 64c1b5f110 - updated configuration/user.module to use ini_get("sendmail_from") as
default value.
2002-02-20 22:44:25 +00:00
Kjartan Mannes c9fc36fcdc - made username check case insensitive. 2002-02-19 22:56:17 +00:00
Dries Buytaert aa256d3603 - Small update. 2002-02-19 19:48:05 +00:00
Steven Wittens fd59f5a199 - Added missing 'return' statement which broke username verification. 2002-02-18 16:42:24 +00:00
Kjartan Mannes 64d11e1cc2 - updated user_mail() to return the result from the mail() call. 2002-01-31 15:32:30 +00:00
Dries Buytaert d988dae61f - Applied Natrak's module improvements. 2002-01-30 18:15:02 +00:00
Dries Buytaert f9a508d5dd - Fixed more than 30 HTML and XML well-formedness errors. 2002-01-27 14:58:45 +00:00
Steven Wittens 362cccab7b Typo in docs: "system geenrated password " > "generated". 2002-01-23 19:45:31 +00:00
Kjartan Mannes 8c672011a2 - moved user block from theme.inc to user.module.
* only problem is that the admin.php link is not available until the
      admin enables the block.
    * $theme->user is obsolete, will patch the themes properly in a
      later patch.
- moved moderation block from theme.inc to queue.module.
    * removed theme_moderation_results().
- updated database/database.mysql.
2002-01-21 17:31:13 +00:00
Dries Buytaert 61edf798ee - Applied Marco's patch. See mailing list for more information. 2002-01-17 20:18:12 +00:00
Dries Buytaert 5b502e3a37 - Removed print-statement from user_mail(). 2002-01-16 21:46:56 +00:00
Dries Buytaert 47daf7f006 - Added some more explanations. 2002-01-12 12:51:21 +00:00
Dries Buytaert ca95b491ff - Updated some of the descriptions. 2002-01-11 22:09:11 +00:00
Dries Buytaert b1d86208eb - Applied Marco's first "remember me" patch. 2002-01-11 21:00:37 +00:00
Kjartan Mannes 3b5c380611 Session
- attempted to fixed crashes with the custom session handler.

External SMTP library
 - added functionality to have Drupal not use the default PHP mail()
   function. For more info see: http://www.drupal.org/node.php?id=44
   Note: for this to work all modules that send mails should use the
   Drupal function to send mail:
     user_mail($mail, $subject, $message, $header);

Calendar
 - added an archive page which users can use to find archives instead of
   the good old block.

Miscellaneous
 - fixed a "random" offset bug on module.inc that occurred on Windows.

All of this needs more testing, and further suggestions are welcome.
2002-01-09 14:35:40 +00:00
Dries Buytaert c71e133958 - Added about 50 title tags. 2002-01-07 22:08:52 +00:00
Dries Buytaert 01dfd4b2e0 A first tiny change:
- Made the "account settings"-link point to the "edit user information"
  page rather than the "view user information" page.

- Removed the "logout" link from the user menu (user_menu() function).
2002-01-05 22:23:19 +00:00
Dries Buytaert 8c8b305892 - Added "query log" functionality to Drupal. Inspired by weitzman's
code/patch.
2001-12-23 21:47:02 +00:00
Dries Buytaert 2ac4e99feb - Fixed bug where saving a user account from within the admin section
would redirect you to an empty page.
- Tidied up the user_save() function a bit.
2001-12-22 21:47:00 +00:00
Dries Buytaert 5ecedf72cf user.module:
- Fixed the session support.  Requires a database update.
  - Applied a tiny optimization suggested by deekayen.
2001-12-01 14:44:57 +00:00
Kjartan Mannes 90e207267f Applied patch by Moshe Weitzman
- fixes help text
- adds better login failure messages to user and to watchdog.
2001-11-19 19:40:31 +00:00
Dries Buytaert e42d97b5ce User module and DA modules:
+ Updated the documentation to use a Jabber or Drupal IDs instead of
    Deplhi IDs (as delphi.module won't be part of the default distro).
    Drupal and Jabber authentication make a better example.

  + added missing localization / t() functions in
    user_validate_authmaps()

  + applied coding convention:
      * fixed indentation
      * removed "EOF"; and <<EOFs from user module
      * changed some HTML into XHTML: use small letters, quote
        attributes
      * quoted some array indices: $edit[foo] --> $edit["foo"]

  + removed some useless sprintf()'s

  + removed hard-coded references to drop.org.

  + I don't think the authentication methods should /know/ there help
    link.  Instead, the user module should now where to find the help
    (it does by knowing the hook to look for), and it is the user
    module that should take care of exporting the help to the preferred
    location:
      * removed the "link" field from the $info field in drupal_info
        and jabber_info; it wasn't used anyway?

  + removed the "maintainer" and "maintaineremail" from the auth
    modules; we don't keep this info in the other modules either so
    I don't see a reason to do so here.
2001-11-14 20:30:08 +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 46ea3659dd - added a logout link to the user menu.
- fixed some untranslated strings in the user.module.
2001-10-25 13:25:36 +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
Kjartan Mannes 1539d4f428 - user.module should now return your user settings when you log in and not
just another log in box.
2001-10-18 11:12:00 +00:00
Dries Buytaert 33a3502dfe - Removed a node's link ID (lid) as discussed on the mailing list. See
'updates/3.00-to.x.xx.mysql' for the required MySQL updates.

- Renamed some "author" fields to "uid" fields for sake of consistency.

- Fixed the coding style of some PHP files.

- Fixed the moderation queue (fairly untested though).

- Re-introduced the temporary SQL table in _node_get().

- Added a missing 'auto_increment' to 'updates/3.00-to-x.xx.mysql'.
2001-10-16 20:13:22 +00:00
Dries Buytaert d62b6dedaa - fixed problem with language setting not being saved: patch by Axel 2001-10-09 21:46:55 +00:00
Dries Buytaert f1932821be - PEAR-ification of Drupal by claw: you can now host Drupal on a wide
range of databases including MySQL, PostgreSQL, MSSQL, and others.

  For additional information and an 'how to upgrade', check the mails
  sent to the mailing list.
2001-10-09 21:01:47 +00:00
Dries Buytaert 7a9bc86bd2 - Improved search architecture derived from Axel's new search patches.
(There is room for improvement so let's go from these ... and build
  on them.)

- Removed some $status's by calls to node_status().
2001-10-03 20:57:01 +00:00
Dries Buytaert 6ce32718eb - fixed bug: 'account_perm()' should have been 'user_perm()' 2001-09-30 12:28:47 +00:00
Dries Buytaert a6379d2ee8 - replaced all 'header("Location: foo")'s by a call to 'drupal_goto()'
which will append the session ID to the uri 'foo' when PHP is compiled
  with '--enable-transe-sid'.
2001-09-30 11:09:22 +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 7a1aee87c2 - added a new tracker.module (everybody kept nagging about the missing
"your drupal" feature). Tracker.module will be improved and expanded
  during the process.

- renamed a link in user.module
2001-09-20 20:57:35 +00:00
Dries Buytaert 57c399a00f - got rid of some unused warning / error messages 2001-09-20 18:57:21 +00:00
Dries Buytaert d0452dd5f6 - don't hash the password 2001-09-20 18:46:56 +00:00
Dries Buytaert a278b11a27 - added a password hash 2001-09-20 18:44:14 +00:00
Dries Buytaert dfa44f2f3d - fixed language bug in user.module 2001-09-19 17:31:23 +00:00
Kjartan Mannes 288f198655 - use $HTTP_SERVER_VARS instead of $GLOBAL[REMOTE_ADDR] to be
less reliant on php config.
2001-09-18 21:25:38 +00:00
Dries Buytaert 75982edbd2 - fixed another bug in the new user.module (reported by Remco). 2001-09-18 21:13:52 +00:00
Dries Buytaert 7bcd338292 - an attempt to work around a getenv() problem 2001-09-18 20:50:03 +00:00
Dries Buytaert ca85a56f1b - Fixed 2 typos in the user module. Thanks Axel and Remco.
- Applied (modified versions of) Alexander's patches on the development
  branch.
2001-09-18 18:39:15 +00:00
Dries Buytaert c5a349ca51 - added the "Log in" block 2001-09-16 16:05:16 +00:00
Dries Buytaert 64a6fbc790 - added the search functionality 2001-09-16 13:53:45 +00:00
Dries Buytaert 22b8be2c9e - fixed the access_get_role() problem reported by Remco 2001-09-16 13:15:28 +00:00
Dries Buytaert 2d1e9126cb - Added the new user module! 2001-09-16 11:33:14 +00:00
Dries Buytaert f358893b52 - Added the new user module! 2001-09-16 11:29:46 +00:00