Commit Graph

286 Commits (5ac59aacd2c5d60155b7236c588bed2e750b3e04)

Author SHA1 Message Date
Dries Buytaert 886ae2bf15 - Fixed some "search related" bugs introduced by Moshe's latest patch.
Fixes bug #2127.
2003-06-30 19:18:47 +00:00
Dries Buytaert 2323e57233 - Improvement: moved hard-coded CSS from user module to drupal.css. Patch
#57 by Kristjan.
2003-06-26 19:30:20 +00:00
Dries Buytaert 2689d6aa1e - Narrow the set of allowed usernames to prevent people from messing with it. 2003-06-25 15:46:03 +00:00
Dries Buytaert 3ee119d0f7 - Improvement: SQL improvements to the user module. Patch #44 and #45 by
Gerhard.

- Improvement: CSS improvements.  Patch #40 by Al.

 (TODO: we might be able to simplify admin.css now both drupal.css and
 admin.css are included to render administration pages.  Tags like "body"
 and friends can probably be inherited.)
2003-06-23 18:02:56 +00:00
Dries Buytaert fbbccada8e - Translation improvement. Patch by Stefan. 2003-06-20 18:29:35 +00:00
Dries Buytaert e57faf2192 - Bugfix: fixed problem with changing themes. Didn't apply Al's patch as
the fix was somewhat simpler.  Fixes bug #2003.

- Bugfix: fixed problem with voting on certain poll pages.  Patch #37 by Al.

- Improvement: removed stupid descriptions from profile module.
2003-06-20 17:43:03 +00:00
Dries Buytaert 7fd4cc4bf7 - Bugfix: fixed problem with the use of % on the user module form. Patch
by Slavica.  Fixes bug #1730.
2003-06-20 05:05:53 +00:00
Dries Buytaert 828ba66500 - Bugfix: fixed utf-8 problem for people that use PHP 4.2.x or below. Patch #33 by Al.
- Bugfix: fixed translation problems in the user module and the block module.  Patch by Stefan.

- Improvement: made it impossible to delete user role #1 and #2.  Patch #38 by Al.

- Improvement: fixed the "Allowed HTML tag" issues.  Makes for better code and improved usability.  Patch #35 by Al.

  NOTE: as soon the compose tips make their way into CVS, most of this code can be removed.
2003-06-19 17:26:27 +00:00
Dries Buytaert 63fb132ec6 - Bugfix: it was not possible to delete a user account when "delete" was
translated.  Patch by Stefan.
2003-06-18 18:13:28 +00:00
Dries Buytaert f4fe0cf1e7 - Improvement: made the user module use themeable lists. Patch #32 by Kristjan. 2003-06-18 17:44:09 +00:00
Steven Wittens 282566271f Bugfix: user timezone-selection now uses the site's configured date_format_long value rather than a hardcoded one. 2003-06-16 21:03:12 +00:00
Dries Buytaert e5f2c1ef0e - Usability improvement: avoid showing two login forms on one page. Suggested
by Keith.
2003-06-15 20:24:49 +00:00
Dries Buytaert 8a9a5ba3da - Bugfix: the variable 'user_mail_welcome_approval_subject' was too long.
Modified patch from Al; used 'user_mail_approval_subject' instead of
  'user_mail_welcome_approval_subj'.  Patch #11 by Al.  Fixes bug #1976.
2003-06-15 19:17:43 +00:00
Dries Buytaert c31fe45f2f - Improvement: fixed wrapping in code samples in user module so that admin help doesn't have a huge horizontal scrollbar. Patch #13 by Al. 2003-06-15 19:11:17 +00:00
Dries Buytaert eb030cb9d8 - Improvements: XHTML-ifications. Patch by GmbH. 2003-06-15 19:06:25 +00:00
Dries Buytaert 3e9aabe058 - Moved some CXX checks to a centralized place; less error-prone. 2003-06-14 07:02:32 +00:00
Dries Buytaert d95499bf03 - Bugfix: small Xtemplate fixes. Patch by Ax. (Slightly modified.)
- Bugfix: block patch fix.  Patch by Gerhard.

- Bugfix: fixed broken URL in ping.  Patch by Gerhard.

  (This should fix the problems shown on http://www.blo.gs/info.php?id=1515.)

- Improvement: added better password generator.  Patch #1 by Al.  Fixes bug
  #1935.

- Improvement: performance improvement to the blog module.  Patch by Marco.
2003-06-13 17:34:18 +00:00
Dries Buytaert 9e813c08a4 - Bugfix: when clean URLs are enabled, the cookie path was not always set correctly when the
user logged using the user block from within a subdirectory.  Patch by Ulf Rompe.
2003-06-11 20:42:31 +00:00
Dries Buytaert 3b8c99d91e - Bugfix: fixed the CREATE FUNCTION in database.mssql as it needs to be prefixed with GO for some obscure reason. Patch by Kjartan.
- Bugfix: fixed the defaults for blocks in database.mssql so the NOT NULL fields get values.  Patch by Kjartan.

- Bugfix: changed check_form() to use htmlspecialchars() instead of drupal_specialchars() as this caused Drupal to emit incorrect form items in presence of quotes.  Example:

  <input type="submit" class="form-submit" name="op" value="Submit "top nodes" block changes" />

  IMO, drupal_specialchars() is better called xmlspecialchars() to avoid confusion.

- Bugfix: when an anonymous user visits a site, they shouldn't see any content (except the login block, if it is enabled) unless they have the "access content" permissions.  Patch by Matt Westgate.

- Improvement: improved the error checking and the error messages in the profile module.  Updated the code to match the Drupal coding conventions.  Modified patch from Matt Westgate.

- Improvement: don't generate the <base href=""> tag in the base theme; it is already emitted by theme_head().  Patch by Kristjan.

- Improvement: don't execute any SQL queries when checking the permissions of user #1.  Patch by Kjartan.

- Improvement: made a scalable layout form that works in IE and that behaves better with narrow themes.  Part of patch #51 by Al.

- Improvement: removed some redundant print statements from the comment module.  Modified patch from Craig Courtney.
2003-06-11 18:16:32 +00:00
Dries Buytaert cf5a17ca0d Patch be Matt Westgate:
- Bugfix: in the user_admin_edit() function, the data array returned from the callback modules was not being merged into the edit array.

- Bugfix: added enctype="multipart/form-data" to the form tag so that we can update things like the avatar image in the admin interface.
2003-06-10 19:00:48 +00:00
Dries Buytaert d4ec431b44 - Bugfix: fixed approval e-mail and tidied up the e-mail handling. Patch #43 by
Al.  Fixes bug #1828.
2003-06-08 10:12:46 +00:00
Dries Buytaert ae45b735d3 - Bugfix: clicking the "Login" button after having created the first user
redirected you to an incorrect page.  Patch by Moshe.
2003-06-07 21:35:45 +00:00
Dries Buytaert 23423b46fb - Check the destrination URL before redirecting. 2003-06-07 15:59:49 +00:00
Dries Buytaert aa38097c07 - Dropped check_input(); use check_query() instead.
- Made the statistics module use referer_uri() for security's sake.
2003-06-06 21:37:11 +00:00
Dries Buytaert 48bf7db71c - Bugfix: removed redundant check_input()s such that quotes are handled
properly.  You couldn't use a username or passwords that had quotes.
2003-06-06 20:52:21 +00:00
Dries Buytaert 3436c02c81 - Bugfix: fixed the login problem due to incorrect use of drupal_goto().
Gerhard's patch was not 100% correct and I found a better alternative.
2003-06-06 17:30:09 +00:00
Dries Buytaert ed528531c7 - CSS improvements: use form functions wrapped in a <div> instead of
hard-coded form elements.  Modified patch by Kristjan.

  I added some CSS to drupal.css to center the text and ordered the
  list of CSS tags alphabetically.
2003-06-03 20:02:33 +00:00
Dries Buytaert c8b646320d - Resized two textfields for UI consistentcy. Patch by Stefan. 2003-06-02 18:09:07 +00:00
Dries Buytaert 5e2ce07616 - Documentation fixes by Kjartan. 2003-05-31 23:05:18 +00:00
Dries Buytaert 1fc8a18c2d - Al's CSS patches. This commit improves the themability of some core
components such as lists, form items, removes an ugly hack from the
  archive module and should fix the poll problem (although it doesn't
  Opera/Konqueror).
2003-05-29 10:18:38 +00:00
Dries Buytaert 8d2b1238b4 - Michael Frankowski's excellent help text improvements! 2003-05-29 09:15:00 +00:00
Kjartan Mannes 8c037610ab - $_SERVER["edit"] -> $_POST["edit"] 2003-05-19 18:59:34 +00:00
Kjartan Mannes 1a2f8acb2c - Patch by Jonathan Chaffer: $_SERVER["op"] -> $_POST["op"] 2003-05-19 18:58:50 +00:00
Dries Buytaert 8bc39e9083 - Undid my changes to user_access(). 2003-05-19 09:07:42 +00:00
Dries Buytaert 8205b62666 - Replaced some PHP_SELF's by request_uri()'s. Patch by Gerhard. 2003-05-18 20:21:35 +00:00
Dries Buytaert 494aa87e37 - Small change that reduces the number of SQL queries when a certain role has
no permissions set.
2003-05-18 09:10:17 +00:00
Dries Buytaert c2d2fb7309 - Fixed a typo in the PostgreSQL database scheme. Patch by Michael Frankowski.
- Fixed a typo in the MSSQL database scheme.  Patch by Michael Frankowski.

- Removed dependency on "register_globals = on"!  Patches by Michael Frankowski.

  Notes:

  + Updated the patches to use $foo["bar"] instead of $foo['bar'].
  + Updated the INSTALL and CHANGELOG files as well.

- Tiny improvement to the "./scripts/code-clean.sh" script.
2003-05-13 18:36:38 +00:00
Dries Buytaert a161110a6b - Applied Michael Caerwyn's "%s -> %d" patch.
- Changed all occurences of '%d' to %d as suggested on the mailing list.
2003-05-07 21:00:36 +00:00
Dries Buytaert c60e3b13fa - Added missing t() function. Patch ba Al. 2003-05-06 06:42:01 +00:00
Dries Buytaert 54459cc01a - Fixed the function prototypes of the newly introduced theme_user_list(),
theme_node_list(), and theme_menu_list().  This will fix the excessive
  gap between lists and avoids generating empty <b></b> constructs.
2003-05-02 20:44:14 +00:00
Dries Buytaert 2d6408dff3 - Committed Adrian's item patch. It would be nice if one or more of the
standard themes could be updated to demonstrate the possibilities.
2003-04-29 20:48:50 +00:00
Dries Buytaert db04650411 - Added support for user registration guidelines. Patch by Al. Feature request #1109. 2003-04-28 21:36:43 +00:00
Dries Buytaert a956de78b9 - Fixed some PHP "notices". 2003-04-21 14:55:03 +00:00
Dries Buytaert 02f437a2f4 - Renamed 'validate_email_address' to 'valid_email_address'.
- Added a 'form_radio' function.
2003-04-13 13:42:51 +00:00
Dries Buytaert cb2d27c78d - Patch by Ax. Fixed some syntax errors:
-    case t("whatever");
    +    case t("whatever"):
2003-04-04 06:17:02 +00:00
Dries Buytaert 4742ba3549 - Fixed some SQL query directives. 2003-03-29 16:30:40 +00:00
Dries Buytaert d1be768b28 - Moved the logic of email validation from user_validate_mail to a new function
in common.inc.  Modified patch from Gerhard.
2003-03-28 10:55:27 +00:00
Dries Buytaert 65b6203700 - Another improvement to the e-mail address validation code. Fixed Debian
bug #185217.  Patch by Gerhard.
2003-03-19 17:34:27 +00:00
Dries Buytaert 31fce3f08c - Fixed glitch in e-mail verification code. Patch by Gerhard. 2003-03-18 19:18:30 +00:00
Dries Buytaert 170b674a09 - All LIMIT queries must go through the pager or through db_query_range().
The syntax for db_query_range() was enhanced so it matches db_query(). So
  you may pass extra arguments of the SQL statement which are checked via
  check_query() and then substituted into the SQL statement. After these
  optional arguments, you always pass $from and $count parameters which
  define your range.  Most often, the $from is 0 and the count is the max
  number of records you want returned.  Patch by Moshe.

- The pager_query() function for PEAR was enhanced so that it adds  proper
  GROUP BY statement counting the number of records to be paged. Patch by
  James Arthur.

- MSSQL database scheme by Moshe.
2003-03-16 07:02:20 +00:00
Dries Buytaert 1f2d2b73dd - Fixed a CSS glitch. Thanks Al.
- Removed extraneous %uri's.
2003-03-14 20:33:53 +00:00
Dries Buytaert 127c6fd465 - Fixed translation bug.
- Fixed broken queries: use 'AND' instead of '&&'.  Reported by Neil.

- Fixed broken URLs in e-mails.  Reported by Stefaan.
2003-03-12 21:31:09 +00:00
Dries Buytaert cd31f11348 - Fixed request 583. Patch by Al. 2003-03-10 21:08:35 +00:00
Kjartan Mannes 1421c878d1 - Moved moderation logic back into node module.
* After having a chat with Dries we have agreed on the logics (or
      more specifically he told me how its supposed to work). The queue
      module is just a method to make moderation public, but its not
      necessarily the only way. This brings the power back.
- Minor interface tweaks (names, case changes, etc).
- Fixed error that would show when you tried to view the profile of a
  blocked user.
2003-03-09 17:19:50 +00:00
Dries Buytaert 738cebbaf2 - Moved some block up to avoid the user module duplicating data. 2003-03-09 15:50:26 +00:00
Dries Buytaert d659fedb38 - Removed the path_uri() function in favor of the $base_url variable and
fixes a handful of bugs introduced by the clean URL patch.
2003-03-07 06:37:30 +00:00
Dries Buytaert 223c224d43 - Grammar fix. Patch by Al. 2003-03-02 20:33:20 +00:00
Dries Buytaert 91dfef65af - Fixed some typos spotted by Al Maw. 2003-02-25 19:52:32 +00:00
Dries Buytaert 277ceae515 - New menu houskeeping. Prototyped by Zbynek.
The following modules need updating:
    * glossary module
    * feed module (Breyten's version)
    * mailhandler module
    * notify module
    * project module
    * smileys module
    * admin module
    * style module
    * taxonomy_dhtml module

  To avoid unexpected problems menu_add() is deprecated (it will print an
  error message when used) and menu() should be used instead.
2003-02-20 22:44:51 +00:00
Dries Buytaert 52314ddc32 - Theme options patch. See mailing list. 2003-02-17 22:33:31 +00:00
Kjartan Mannes a76151351e - Modifying user_validate_mail() to accept more e-mail addresses. 2003-02-15 20:52:28 +00:00
Dries Buytaert 83f5d82876 - Everything is using theme("function") now instead of $theme->function(). 2003-02-15 11:39:56 +00:00
Dries Buytaert e90f3b883b - See http://lists.drupal.org/pipermail/drupal-devel/2003-February/021824.html. 2003-02-11 20:01:17 +00:00
Dries Buytaert 3d3a60740a - Changed '%s' into '%d' such that an empty $user->uid is converted to 0. Requi
red for Drupal to work on new versions of PostgreSQL.  Patch by James.
2003-02-09 18:06:31 +00:00
Dries Buytaert 5b720be335 - Corrected misplaced quote. Reported by Gerhard. 2003-01-29 18:40:47 +00:00
Dries Buytaert 637004c539 - Tidied up XHTML. Patch by Ulf.
- Added missing t() function.  Patch by Stefan.
2003-01-23 09:24:20 +00:00
Dries Buytaert 73d46a64c3 - Tidied up some SQL queries. 2003-01-20 20:18:06 +00:00
Dries Buytaert 045f92d2b7 - Fixed bug/warning when an anonymous users tries to post a node. Reported
by David.
2003-01-15 19:51:08 +00:00
Dries Buytaert d268783669 - Small improvement to the admin menu based on feedback from Michael. 2003-01-14 20:33:42 +00:00
Dries Buytaert ba3eead0d6 - Made sure the text doesn't wrap. 2003-01-10 22:19:47 +00:00
Dries Buytaert 89b2069e4d - Clean URL patch. 2003-01-06 19:51:01 +00:00
Dries Buytaert 8a63646576 - Added an extra parameter to watchdog() which lets you specifiy an "action"
or "operation" link.

- Made the main page of the administration section show an overview of all
  watchdog entries with such action link.

- Fixed typo in PostgreSQL database scheme.
2003-01-04 11:03:15 +00:00
Dries Buytaert de95001c92 - Tidied up the use of check_output(). Might make rendering pages a bit
snappier (performance improvement).
2002-12-31 12:34:07 +00:00
Dries Buytaert 74d315b34a - Usability improvement: made the remaining user administration pages use
the new table rendering functions; access rule table, permission table,
  role table, etc.

- Usability improvement: made the permission table translatable.  Requested
  by Stefan.

- Code improvement: removed some redundant check_output()s.
2002-12-29 13:46:30 +00:00
Dries Buytaert d9919f50c5 CHANGES:
- Usability improvement: made the user administration pages use the
  new table rendering functions.

- Usability improvement: added pager support to the user administration
  pages.

- Code improvement: fixed code indentation.
2002-12-29 13:14:38 +00:00
Dries Buytaert 22fa9ed70a - Refactored the administration pages. 2002-12-24 15:40:32 +00:00
Dries Buytaert 5b39f6767e * Applied slightly modified version of Marco's taxonomy patch:
- Fixed a bug with get_tree and multiple parents.
 - Fixed 3 wrong caches (this will avoid some queries).
 - Extension to taxonomy_term_count_nodes() (feature #159): "currently
   calling taxonomy_term_count_nodes() returns the amount of nodes in each
   term, would it be possible to extend this function so that it would only
   return the amount of nodes of a certain type under each term.
 - Confirm deleting a vocabulary or a term (requested by Moshe).
 - Use form_weight() in vocabulary and term forms.
 - After submitting a term, we end up at the term page (requested by Moshe).
 - Added status messages when adding, editing and deleting vocabularies and
   terms
 - Minor clean ups

* Made sure all modules use the same link delimiter; "|" for now.
2002-12-02 19:14:41 +00:00
Dries Buytaert 61b76fa2c1 - Fixed the "affiliate" text when all distributed authententication modules
are disabled.  Patch by Gerhard.
2002-11-25 17:56:38 +00:00
Dries Buytaert 908cb55470 - Applied Stefan's t()-function patches. 2002-11-10 20:51:46 +00:00
Dries Buytaert 51f4b91e51 * User patch by Natrak:
- Moved the Drupal login XML-RPC API to drupal.module.
 - DA logins are now assigned the proper role.
2002-11-09 21:46:54 +00:00
Dries Buytaert 562df8fe43 * Added Jeremy's pager:
"This is a simple, generic pager for Drupal-CVS.  It is designed to be
  easily themeable and expandable.  The code is highly-commented to
  enhance readability."

 "Pagers are constructed by combining the provided pieces (all of which
  can be easily modified to display the text or image you prefer) into
  your custom pager."

* Statistics module fixes by Jeremy:

 - removed superfluous check for existence of watchdog()
 - saving changes in admin page displays status and returns same page
 - no longer return 1971/01/01 in "view statistics" table
 - switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance
 - switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as
   max_timestamp" moving towards ANSI-SQL compliance.

* Added a "theme_item_list" function to format itemized lists.  Also
  changed a couple of modules to take advantage of it.  Makes for a
  more consistent UI.
2002-11-09 13:59:36 +00:00
Dries Buytaert cc381c1461 - Fixed glitch in block module: the admin links were not composed
correctly.  Patch by Stefan.

- Added missing t() functions and improved the %x directives for
  better readability and to ease the process of translating your
  site.  Patches by Stefan.

- Made two small additions to the 'code-clean.sh' script; it will
  now remove patch related junk.

NOTES:

- I removed the &middot; related bits.  Let's tackle these later on
  in a separate patch after we got some sort of consensus.

- I removed the 'module_exist("drupal")' check in the user module;
  I *think* it is incomplete and therefore incorrect.

- Stefan, try using quotes in your translations and check whether
  everything still works.  Example: translate the "Create account"
  button to "Create \"haha\" account \'hihi\'" and see if you can
  still create new accounts.  Maybe automate this using a quick
  hack in the locale module ...
2002-11-01 10:47:20 +00:00
Dries Buytaert 8d103a0898 - Committed Marco's block rewrite:
+ Blocks are not longer called if not rendered: major performance
     improvement.
   + Fixed some bugs (preview option was broken, path option was broken).
   + Removed "ascii"-type blocks.
   + Added permission to for "PHP blocks"
   + ...

  NOTES:

   + You'll want to run "update.php":

       ALTER TABLE blocks DROP remove;
       ALTER TABLE blocks DROP name;

   + You'll want to update your custom modules as well as the modules in
     the contrib repository.  Block function should now read:

       function *_block($op = "list", $delta = 0) {
         if ($op == "list") {
           return array of block infos
         }
         else {
           return subject and content of $delta block
         }
       }
2002-10-26 15:17:26 +00:00
Dries Buytaert 66c5b70736 - Wrapped some hardcoded colors in "theme_invoke()"s; we can still create
a drupal_error() later on but I think we better get used to theme_invoke().

- Fixed translation bug.  Patch by Moshe.

- Fixed PHP warning.  Patch by ax.
2002-10-22 18:46:43 +00:00
Dries Buytaert 4ad8996ff7 - Fixed bug in user_save().
- Added "Who's new" block.  I accidentically removed it.
2002-10-13 18:44:09 +00:00
Dries Buytaert fcae7030cc - Committed Jeremy's incarnation of the statistics module. Last minutes
changes include:

    * a couple of coding style changes, renamed some "stats" into
      "statistics", etc.

    * removed the "Who's online" block from the user module.

    * added db_affected_rows() to the resp. database abstraction
      layers and made the statistics module use db_affected_rows()
      instead.

    * added update logic to "update.php".
2002-10-13 12:00:50 +00:00
Dries Buytaert f06239caf7 - Fixed warning in user module. 2002-10-07 20:40:19 +00:00
Kjartan Mannes ba75605e89 - coding style improvements. 2002-09-30 08:58:22 +00:00
Kjartan Mannes 9347252fb9 - fixing user registration and field validation. 2002-09-25 22:05:47 +00:00
Dries Buytaert 2ba4c42ee1 - Fixed e-mail regex to accept ".info" TLDs as well as other future TLDs,
fixed e-mail regex to accept IP addresses (eg. 127.0.0.1), changed some
  HTML to XHTML, fixed some cosmetic glitches, etc.
2002-09-17 18:32:00 +00:00
Kjartan Mannes d164384e62 - fixing a typo (was missing a $). 2002-09-10 10:53:10 +00:00
Kjartan Mannes 8f868e2fd9 - adding "Default theme" option to user_admin_edit() 2002-09-08 18:53:09 +00:00
Kjartan Mannes bd650f9f8e - fixing creation of first user.
- password is now printed for uid 1.
- made user_fields() always return something.
2002-09-08 18:48:49 +00:00
Kjartan Mannes c766305ce5 - use <?pjp instead of <?. //TODO: check other files to make sure they are
not using short tags.
2002-09-08 18:02:24 +00:00
Dries Buytaert 9df234e63b - Removed a MySQL-ism from the user module. Patch by James.
- Fixed the "uid < 0" issue.  Fix by Marco.
2002-08-18 12:36:02 +00:00
Dries Buytaert fc143e79a7 - Changed a MySQL-ism to be ANSI SQL/PostgreSQL compliant. Patch by jaa. 2002-08-16 07:28:27 +00:00
Dries Buytaert f5173ef233 - Applied user.module patch from Marco's sandbox.
- Added profile.module written by Marco.
2002-08-08 18:52:55 +00:00
Kjartan Mannes bb19e0bb45 - fixing email regular expression. 2002-07-31 08:01:34 +00:00
Kjartan Mannes 12bc70569e - preventing a segfault in PHP. Can someone verify that session writing still works? 2002-07-26 10:28:55 +00:00
Dries Buytaert ef03e6a36c - Fixed small bug in user.module. Patch by Marco. 2002-07-13 13:03:44 +00:00
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