Commit Graph

566 Commits (ca9f0fab45823c49947b218587b9c9ef92aff60c)

Author SHA1 Message Date
Steven Wittens ddb31aaf6b - #3606: Missing translations for user.module watchdog 2004-08-07 19:49:46 +00:00
Dries Buytaert 9bbdb71ee4 - Patch #9330: ucfirst() gives problem when used with multibyte charset.
Replaced the use of ucfirst() with a CSS-based solution.
2004-08-06 20:15:32 +00:00
Dries Buytaert 35cad55e5b - Patch #8523 by killes: avoid profile data being deleted when requesting a new
password.
2004-08-05 20:41:57 +00:00
Dries Buytaert c6b1eaa20d - Patch #9775 by TDobes: consistency operation. Changed to "edit foo," "delete foo," and "view foo" links into simply "edit," "delete," and "view". 2004-08-05 05:40:53 +00:00
Dries Buytaert b87b2abe65 - Patch #9768 by killes: admin/user/edit/$uid is no more, removed some left-overs. 2004-08-04 21:09:29 +00:00
Dries Buytaert c71bfded3d - Patch #9657: more intelligent theme() function. Hopefully, Adrian will be
able to use this patch too.
2004-08-04 20:40:01 +00:00
Dries Buytaert 202eee42a9 - Patch #9543 by JonBob: added node-level access control! 2004-07-31 09:30:09 +00:00
Dries Buytaert bd4f4ebbc3 - Patch #9547 by Eric: fixed avatar/picture upload bug. 2004-07-28 20:18:11 +00:00
Dries Buytaert 8aa052dc66 - Patch #9177 by James: fixed distributed authentication. 2004-07-15 17:20:15 +00:00
Steven Wittens 1c4cc2623e Removed the 'user' item in the menu which appeared when editing someone else's account. 2004-07-14 23:04:46 +00:00
Dries Buytaert ac5b5616c0 - More tab-improvements by JonBob: improved support for the default tabs! 2004-07-10 15:51:48 +00:00
Dries Buytaert 7059b64965 - Made the user module's administration form mark required form fields. 2004-07-08 15:11:05 +00:00
Dries Buytaert 9a56e93c3d - Patch #9125 by Morbus: remove access users permission. Will bring it back later. 2004-07-08 06:12:39 +00:00
Dries Buytaert 3568ed57e1 - Moving the title.module from core to contrib as discussed on the mailing list. 2004-07-07 20:18:22 +00:00
Dries Buytaert 9d35fe7a7d - Patch #4166 by daBrado: don't show the profile fields when the user does
not have the 'access users' permission set.
2004-07-06 17:27:33 +00:00
Dries Buytaert fe2b3e7c00 - Patch by Steven and me: refactored the form handling of nodes. The node system is now using form_set_error() and friends like the rest of Drupal does. This makes for both a consistent user experience and consistent code. It simplifies the forms and validation code, however, it does change the node API slightly:
* The _validate hook and the _nodeapi('validate') hook of the node API (1) no longer take an 'error' parameter and (2) should no longer return an error array. To set an error, call form_set_error().

    * The _form hook of the node module no longer takes a form hook and should not worry about displaying errors. Ditto for _nodeapi('form_post') and _nodeapi('form_pre').
2004-07-04 16:50:02 +00:00
Dries Buytaert e47c623e3d - Patch #9006 by Killes: For some reason there is a array_merge that nobody seems to need. It generates an error under php5. Found by redLED. 2004-07-03 07:07:33 +00:00
Dries Buytaert d279d16ccb - Patch #8996 by James: theme_user_picture() linked to bad url. 2004-07-02 18:13:45 +00:00
Dries Buytaert fcded380a8 - Patch #8937 by James: fixed typo. 2004-06-30 20:43:07 +00:00
Dries Buytaert 4f00182423 - Fixed typo reported by Steven Mansour: form_set_name() -> form_set_error() 2004-06-30 05:44:59 +00:00
Dries Buytaert fa192ae767 - Fixed bug with user information not being shown in the profile forms. 2004-06-28 08:32:16 +00:00
Dries Buytaert 2f393aaf31 - Fixed glitch in _user_categories(). Reported by Steven Mansour. 2004-06-28 08:09:30 +00:00
Dries Buytaert 47ef2e21de - Fixed 'pass by reference'-bug in the validation code and further simplified
it.
2004-06-28 07:23:53 +00:00
Dries Buytaert 7ebcac265a - Removed left-over instance of _user_profile(). 2004-06-27 19:41:55 +00:00
Dries Buytaert 1b1c47025a I refactored quite a bit of the user.module:
$ diffstat user.patch
database/database.mysql |    4
database/database.pgsql |    2
database/updates.inc    |   10 -
modules/block.module    |   20 +-
modules/locale.module   |    9
modules/profile.module  |  108 +++++++----
modules/system.module   |    8
modules/user.module     |  456 +++++++++++++++++++-----------------------------
8 files changed, 289 insertions(+), 328 deletions(-)

More functionality, less code.  Here is a list of the changes:

- Some user API changes:
   + When $type is 'form', you have to return an associative array of groups.  In turn, each group is an array with a 'title', 'data' and 'weight'.
   + A new $type has been added, namely 'categories'.  User settings can be organized in categories.  Categories can be sorted, as can the groups within a category.  (Ordering 'categories' is somewhat broken due to a bug in the menu system.)

- The 'my account > edit' page will use subtabs for each 'category'.  Read: you can break down the account settings into multiple subpages.

- Profile module improvements:
   + Added support for private fields to the profile module!
   + Improved workflow of profile administration pages.
   + Improved the form descriptions.

- Code improvements:
   + Unified user_edit() and user_admin_edit().
   + Unified and cleaned up the validation code.  Fixed some validation glitches too.
2004-06-27 19:10:52 +00:00
Dries Buytaert d4e7affba8 - Bugfix: made it possible for administrators to edit the values of custom
profile fields of users.
2004-06-24 22:12:36 +00:00
Dries Buytaert 3468310a61 - Patch #8778 by Morbus Iff: with the tabs patch, user/login, user/register, and user/password now show all three forms, as opposed to just the requested relevance. The attached patch implements a quick workaround: three new callbacks, and a cheapy modification of user_page where I use a ternary to test whether arg(2) exists (as it would in the case of user/nnn/edit). If it does, we set that to $op, and if it doesn't (in the case of user/login, etc.), we set arg(1). 2004-06-24 05:07:55 +00:00
Dries Buytaert ae6aa4e59e - Patch #8758 by Morbus Iff: allow users to modify their profile under
the new tabs system.
2004-06-23 05:11:35 +00:00
Dries Buytaert 0ee30cbca2 - Fixed broken URLs in the user module (access rules) due the the recent
tabs patch.
2004-06-22 20:21:13 +00:00
Dries Buytaert 090743bdba - Patch #8670 by asimmonds: more spelling fixes. 2004-06-21 20:05:37 +00:00
Dries Buytaert c2d7419f23 - Patch #8681 by stefan: fixed some broken URLs and help texts. 2004-06-20 19:49:14 +00:00
Dries Buytaert efed4cfc70 - Patch #8679 by asimmonds: fixed spelling mistakes. 2004-06-20 08:27:03 +00:00
Dries Buytaert 54b77d6435 Tabs patch!
CHANGES
-------

 + Introduced tabs. First, we extended the menu system to support tabs. Next, a tab was added for every link that was (1) an administrative action other than the implicit 'view' (2) relevant to that particular page only. This is illustrated by the fact that all tabs are verbs and that clicking a page's tab leads you to a subpage of that page.

 + Flattened the administration menu. The tabs helped simplify the navigation menu as I could separate 'actions' from 'navigation'. In addition, I removed the 'administer > configuration'-menu, renamed 'blocks' to 'sidebars' which I hope is a bit more descriptive, and made a couple more changes. Earlier, we already renamed 'taxonomy' to 'categorization' and we move 'statistics' under 'logs'.

 + Grouped settings. All settings have been grouped under 'administer > settings'.

TODO
----

 + Update core themes: only Xtemplate default supports tabs and even those look ugly.  Need help.

 + Update contributed modules.  The menu() hook changed drastically.  Updating your code adhere the new menu() function should be 90% of the work.  Moreover, ensure that your modue's admin links are still valid and that URLs to node get updated to the new scheme ('node/view/x' -> 'node/x').
2004-06-18 15:04:37 +00:00
Dries Buytaert 624ffd1510 - Patch #8444 by jhriggs: creating new users was broken due to recent changes. 2004-06-14 17:32:51 +00:00
Dries Buytaert fbbf510511 - Patch #8105 by mathias: made the menu system aware of path aliases. 2004-06-01 21:58:46 +00:00
Kjartan Mannes fd4d894340 - Make sure the form has been submitted before validating and saving user. 2004-05-31 17:27:12 +00:00
Dries Buytaert 7f08110a5e - Improved form handling.
+ Introduced two new functions:
      1. form_set_error($name, $message): files an error against the form
         element with the specified  $name.
      2. form_has_errors(): returns true if errors has been filed against
         form elements.

  + Updated the form handling:
       1. The form_ functions will add 'class="error"' when a form field
          has been found to be erroneous.
       2. The error message is passed to theme_form_element() when the
          particular form field has been found to be erroneous.

  + I updated the user and profile module to take advantage of these new
    functions.

  + IMPORTANT: the _user() hook changed.  The 'validate' case should no
    longer retun an error message when something goes wrong but should
    set it with form_set_error().
2004-05-31 09:40:56 +00:00
Dries Buytaert 750043b860 - Fixed bug introduced by previous patch. 2004-05-24 19:17:19 +00:00
Dries Buytaert 67675b498c - More code improvements by JonBob. 2004-05-24 18:37:50 +00:00
Dries Buytaert 35acfc1849 - Patch #7723 by Roderik: added strtolower()s to make PostgreSQL behave like MySQL and to be more 'forgiving' for users logging in on a PostgreSQL powered Drupal site. 2004-05-21 18:07:23 +00:00
Dries Buytaert fdb1fbfced - Simplified the 'anonymous poster settings' of the comment module and
made it possible to enforce a username/e-mail address.  Based on
  James Seng's work there are now 3 radio buttons:

   ( ) Anonymous users may not enter contact information
   ( ) Anonymous users may leave contact information
   ( ) Anonymous users must leave contact information

- Fixed a bug in the default theme_comment_view() function.

- Added permalinks for comments.  Requested by Michael and Christina.
  Maintainers of contributed themes might want to add permalinks too.

TODO:

- Fix the interaction design of the submission form: the page you are
  directed to and the validation of the contact information.

- Changing the comment viewing options appears to be broken?
2004-05-20 10:23:52 +00:00
Dries Buytaert d0090e69e6 - Patch #7614 by jhriggs: fixed some role related problems. 2004-05-19 14:55:19 +00:00
Dries Buytaert fed7e664de - Patch #6682 by jhriggs: added form_checkboxes(), much like form_radios()
and updated some modules to take advantage of it.
2004-05-15 15:42:47 +00:00
Dries Buytaert 0d7426a13d - Patch #7704 by mathias: fixed warning due to initialization problem. 2004-05-11 20:19:38 +00:00
Dries Buytaert 1ad9afb8a7 - Added support for multiple user roles. Patch by Jim Hriggs. 2004-05-10 20:34:25 +00:00
Dries Buytaert 0a74e0b320 - Patch #6552 by Gerhard: fixed problem with user callbacks that slipped in with Natrak's last commit. 2004-05-01 08:47:20 +00:00
Kjartan Mannes dfd66f998d - Fixed sitewide timezone settings not being saved.
- Making sure profile fields are saved properly.
2004-04-29 23:27:15 +00:00
Kjartan Mannes 7e017fce0f - Applied patch #6552: Put back register_form and register_validate callbacks in user.module.
- Fixed bug #7406: User delete hook incorrect params.
2004-04-29 22:39:55 +00:00
Kjartan Mannes a7a86cd289 - Changing permissions on user menus. 2004-04-22 22:53:51 +00:00
Dries Buytaert 9796455aaf - Patch #4635 by Ber: user search should translate wildcard character 2004-04-21 17:50:28 +00:00
Dries Buytaert 7231c88a32 - Added support for 403 handling. Patch by JonBob. As a side benefit,
administrators will be able to define a custom 403 page, just as they
  can define 404 pages now.

  This needs to be documented in the "Changes since / migrating to ..."
  pages.
2004-04-21 13:56:38 +00:00
Kjartan Mannes 7976678719 - Only encode strings that contain non-ASCII characters. 2004-04-21 11:31:34 +00:00
Dries Buytaert 10bdb51c37 - Patch by JonBob/Jonathan: reworked the menu system so that menus are
configurable!  Menu items can be disabled, repositioned, added and
  so on.

  Upgrading to requires you to run update.php.

  This functionality depricates some of the 'navigation modules' in the
  contributions repository.  Furthermore, modules can now 'suggest'
  menu items and site adminstrators can choose to enable them.  Modules
  in the contributions repository should try to take advantage of this.
2004-04-15 20:49:42 +00:00
Dries Buytaert 5f17ad3c2d - Profile module improvement:
* Made it possible to set certain fields as 'required'.

  To do:
   * Mark them as required visually.
   * Add required fields to the subscription page.
2004-03-27 14:50:56 +00:00
Dries Buytaert 0b876c4486 - Patch #6425 by TDobes: made avatars work with private download method. Added
user_file_download() function to communicate with the file system layer.
2004-03-27 09:06:52 +00:00
Dries Buytaert 2fe664016c - Patch #3987 by jhriggs: changed the location of the logout link. 2004-03-24 05:54:20 +00:00
Dries Buytaert 2043b336af - Fixed braino 2004-03-21 16:21:04 +00:00
Dries Buytaert 754f2ac26a - More profile module improvements:
+ Updated the _user() hook's "$type == 'view'" case to match the
     "$type == 'edit'" case.  That is, both have to return an associtive
     array of the format array('category' => 'fields').

   + Updated the profile pages to group fields by category.  Made possible
     thanks to the above change.

   + Moved logic out of the theme_ functions.
2004-03-21 14:28:15 +00:00
Dries Buytaert 576968c471 - Patch #6406 by TDobes: fixed typos in profile/user module. 2004-03-15 20:09:54 +00:00
Dries Buytaert 70c484c077 - Patch #6391 by jik: after deleting a user, return to the user list, not the edit user form. 2004-03-12 18:42:08 +00:00
Dries Buytaert 2101f6c454 - Rewrote the profile module:
+ Added a 'created' field to the users table and renamed the 'timestamp'
     fied to 'changed' (cfr. node table).  Update.php will try to determine
     a 'created' timestamp for existing users.

   + The profile module no longer uses serialized data but has its own set
     of tables.  Known existing profile data is migrated by these new tables.
       TODO: migrate the birthday field.

   + The profile fields can be grouped, and within each group, profile fields
     can be sorted using weights.

   + The profile pages can be themed.

   + The profiles can be browsed based on certain properties/settings.

   + Change the _user hook: (i) 'private_view' and 'public_view' are merged
     into 'view' as there are no private fields and (ii) 'edit_form' has
     been renamed to 'edit'.

   + Avatar handling has been refactored and is now part of the user module.
     The users table has a dedicted 'picture' field.

   + Simplified the way themes should use display/visualize pictures or
     avatars.

   + Made it possible for administrators to replace or delete avatars.

   + ...

  I hope this make for a good base to build on collectively.
2004-03-11 20:33:59 +00:00
Dries Buytaert c73305f6d6 - Patch #6129 by Goba: fixed dependencies on search module. 2004-02-29 17:16:27 +00:00
Dries Buytaert df2c033729 - Patch 6066 by Adrian: PostgreSQL does not return 'affected rows' when doing
a select statement.  Even though PEAR supports this functionality, it fails
  silently when using PostgreSQL.  We use the db_num_rows() function instead
  to return the amount of rows returned.  (According to Killes, the MySQL
  manual also states that it should not return affected rows on a 'select'
  statement.)
2004-02-26 17:55:14 +00:00
Dries Buytaert 4b0b2d02ee - Patch by Steven: removed redundant permission checks. These are no longer
required thanks to the new 404 handling.
2004-02-15 20:09:46 +00:00
Dries Buytaert bd78422715 - Patch 5592 by Goba: let drupal_map_assoc() rule. :-)
- Renamed CHANGELOG to CHANGELOG.txt for Windows uses.
2004-02-15 15:19:36 +00:00
Dries Buytaert f137b26979 - Patch 4902 by Goba:
+ only adds an optional parameter to url() and l(), so individual links
    can be set to be absolute
  + modifies drupal_goto() to accept the parameters of url() without the
    $absolute parameter, so cleaner invocations can be used
  + rework of some code in node_feed, making it much better to look at
    (the current code uses foreach with an immediate brake to get the first
    key of the associative array, geeeeez)
  + added xml:base to the rss tag generated by node_feed()
  + set all user mail URLs to be absolute
  + fix a small fragmented URL in user.module
2004-02-11 19:21:14 +00:00
Steven Wittens 1c5a3947d1 Bugfix: new user registration was broken.
See: http://drupal.org/node/view/5741
2004-02-09 05:38:32 +00:00
Dries Buytaert 991cb5c982 Patch 5554 by Goba (slightly modified):
- Modifies _user_mail_text() to automatically override the default
    strings when needed and apply t() on the strings. This lets Drupal translators
    include default messages in translations, and also removes a lot of repeated code.
    Modified the internal $messageid of the approval message from
    welcome_approval_body/subject to approval_body/subject, so automatic variable
    name computation can be done. This does not affect any variable table keys, since
    the change was especially done to keep the variable names...

  - Adds %login_uri and %edit_uri to move away from the concatenation approach used in
    the default messages, thus making those messages visible for the .po extractor

  - Uses direct return in help text generation when no more action need to be taken
    on the help string (the '$output .=' approach was just plain silly looking and
    misleading, since there was no preceding or appended string in $output)
2004-02-08 18:38:15 +00:00
Dries Buytaert 229ac8dec4 - Small bugfix. 2004-02-07 17:24:38 +00:00
Dries Buytaert e28bbf6739 - Batch two with profile module improvements:
+ Reworked the 'account administration' page.
   + Fixed bug in the 'edit account' page.
   + Removed some dead code from the system.module.
2004-02-07 16:59:34 +00:00
Dries Buytaert 5a8129e0fb - First batch of profile module improvements:
+ Tidied up the profile configuration page: grouped form elements.

   + Tidied up the block configuration settings: removed hard-coded
     table.

   + Changed the profile API to return the preferred group name, and
     changed the user module to group settings.  Modules implementing
     the _user hook will need to be udpated.

   + Removed register_form and register_validate for now.
2004-02-07 16:18:46 +00:00
Dries Buytaert c6deda88ef - Patch #5048 by flevour: added missing t() function. 2004-02-07 10:46:46 +00:00
Dries Buytaert fd64c56ec1 - Removed the 'remember me' feature. It has been broken for many months.
When an elegant fix is found, it will reappear.
2004-02-06 22:58:03 +00:00
Dries Buytaert 384ae54cf6 - Cleanup: modified some context-sensitive help, changed "s to 's, added
<legend> and <fieldset> tags, used drupal_set_message() to print a
  status message and removed some dead code.
2004-01-31 09:50:39 +00:00
Dries Buytaert 66190b1787 - Patch #5393 by Goba: changes the search hook return value, and requires an array
containing two elements, the first being the requested title, and the second being
  the result list. Advantages:
    * Cleaner search code in common.inc
    * Po extraction is possible and works fine
    * No hardcoded exceptions for node and comment modules, since any module can
      return results in order of relevance (or another order)
2004-01-26 19:22:22 +00:00
Dries Buytaert 8a913ffe7c - Removed the 'Page not found' message after the initial install and removed
some old user module logic to install the initial role IDs.
2004-01-24 16:54:22 +00:00
Dries Buytaert b85eb11e11 Patch 5287 by Stefan: multiline help texts should become inside a single $output. 2004-01-23 18:42:43 +00:00
Dries Buytaert f1dfe0639a - Bug 5285: fixed broken URLs in user module. Patch by Stefan. 2004-01-21 17:26:59 +00:00
Dries Buytaert eee72bfa95 - Patch 4859: new drupal_unpack() consolidates duplicate code and makes it
easy to show avatars next to nodes and comments.  Patch by Moshe.  As a
  showcase, maybe Xtemplate should have an option to enable/disable avatars?
2004-01-13 19:25:37 +00:00
Dries Buytaert a8b8c247db - Patch #5021: clean up URLs in _help texts. Patch by UnConeD. 2004-01-11 20:31:26 +00:00
Dries Buytaert 6ec582fd9c - Fixed bug #5074: standarized the user log messages. 2004-01-11 19:44:15 +00:00
Dries Buytaert 30fb23451f - Changed some boxes to fieldsets/lengeds. 2004-01-05 19:33:58 +00:00
Dries Buytaert 80f34e5ab0 - XHTML improvements: <b> -> <strong>. Patch by Stefan. 2003-12-29 17:14:27 +00:00
Dries Buytaert 90a5a6cf6e - Updated the user login block to validate as XHTML strict: the
<div class="user-login-block"> is now inside the <form> instead of the
  other way around.

- Simplified the user login block by removing some CSS that was no longer
  needed.  The block module already emits block-related classes and an id.
2003-12-29 13:51:59 +00:00
Dries Buytaert baaa21e131 - Tidied up some inconsistencies in the code: scripts/code-style.sh is your friend. 2003-12-28 10:47:33 +00:00
Dries Buytaert 097f6209e5 - First take at improving the user module's code: replaced the custom error
printing with calls to drupal_set_message().
2003-12-26 13:44:18 +00:00
Dries Buytaert de19dc5129 - Tiny change for sake of consistency: Blocked -> blocked, Active -> active. 2003-12-24 10:56:47 +00:00
Dries Buytaert 770174b299 - Updated documentation, small bug fix and small improvements to the <label>
tags.

  To be discussed and investigated: when a form element has no title an empty
  <label> tag will be emitted (eg. "remember me" checkbox).  This doesn't make
  sense but is our best option for now.
2003-12-22 15:38:07 +00:00
Dries Buytaert 0439e3495c - Fixed password field. 2003-12-22 15:06:46 +00:00
Dries Buytaert e06cdc577e - Fixed bug 4667: users with the deleted role are put back in the authenticated
users pool.
2003-12-18 21:33:04 +00:00
Dries Buytaert d5c8026454 - Updated the calls to menu() to use MENU_HIDE instead of 1 2003-12-17 22:27:23 +00:00
Dries Buytaert e728cfbabd - The 'my account' link is already part of the navigation block. 2003-12-13 17:59:49 +00:00
Dries Buytaert d33f3973f7 - Committed Gerhard's user hook patch. Patch 143. 2003-12-13 15:22:29 +00:00
Dries Buytaert 712a30b520 - Improvements by Goba:
+ removes the lots of pagers and indirect pager themeing
  + add the theme_pager() function, which should be called as
    theme("pager", ...) to get a pager.
2003-12-08 18:30:20 +00:00
Dries Buytaert 427364a5f5 - Fixed visual glitch in "Who's online" block. Patch by Jeremy. 2003-12-08 17:46:21 +00:00
Dries Buytaert 71eac6dddc - Made the who's online block adhere better to the max user setting. 2003-12-07 18:09:28 +00:00
Dries Buytaert 02f436b6cb - Improved the way the "Who's online" block is visualized when the list of
online users is truncated by to maximum user list length setting.
2003-12-06 16:36:17 +00:00
Dries Buytaert 237124c814 - Fixed bug #4416: added status checks to user_pass() to prevent mailing
new passwords to blocked user accounts.
2003-12-05 08:20:28 +00:00
Dries Buytaert d45bf0f1e7 - Patch 185 by Ax: fixed undefined variables, synchronized xtemplate with sf, etc. 2003-12-04 20:53:19 +00:00
Dries Buytaert a5f76cd53e - Patch 180 by Jeremy: made the "Who is online" block respect the "user list length"
settings.
2003-12-04 06:16:07 +00:00
Dries Buytaert 4e2c0b250e - Introduced a drupal_set_message() and drupal_get_message() function.
Contributed themes and modules need to be updated:
   - modules: status() is no more; use drupal_set_message() instead.
   - themes: use drupal_get_message() to check for status messages and
     visualize them.
2003-12-01 13:45:33 +00:00
Dries Buytaert acf572473b - Fixed broken usernames in 'Who's new' block. 2003-11-28 20:58:20 +00:00
Dries Buytaert 733d286b89 - Made it possible to auto-throttle blocks. That is, blocks can be
configured to be disabled when under excessive load.  Patch by Jeremy.
2003-11-28 20:03:00 +00:00
Dries Buytaert fa5aca1ef7 - Fixed error messages not being shown. Patch by Matt. 2003-11-28 19:22:23 +00:00
Dries Buytaert eff70f1751 - Cleaned up user_settings(). Patch by Jeremy. 2003-11-27 06:30:22 +00:00
Dries Buytaert 18d81e5ed3 - Fixed two typos. Reported by Jeremy. 2003-11-25 20:45:05 +00:00
Dries Buytaert 506fe741ec - Moved the "Who's online" block from the statistics module to the user module
as the code no longer relies on the statistics module.  In addition, some
  code has been simplified and other bits have been removed.  Patch by Jeremy.
2003-11-25 19:54:00 +00:00
Dries Buytaert c0494c0a2b - Committed phase 4 of JonBob's menu system changes. 2003-11-25 19:26:21 +00:00
Dries Buytaert f505fb9c97 - Synchronized some page and link titles. 2003-11-23 14:02:35 +00:00
Dries Buytaert 26735ac5dd - Committed phase 3 of JonBob's menu changes. Adds an API for modules to
define titles and breadcrumbs for their pages, and updates the theme
  system to display them.
2003-11-23 10:41:04 +00:00
Dries Buytaert 5963759e5d - Fixed menu problem so users can log in. Patch by Jonathan. 2003-11-21 06:38:01 +00:00
Dries Buytaert 4bdac4333b - Patch by JonBob:
Phase 2 of the menu system integration project. This unifies the interface
  used by admin and non-admin pages, and deprecates the _page hook in favor of
  explicit callbacks from menu(). Breadcrumbs, titles, and help text go away
  as a result of this patch; they will return in the phase 3 patch, printed
  by the theme.
2003-11-20 21:51:23 +00:00
Dries Buytaert 9000f825cc - Flush cache after changing user permissions. Patch by Gerhard. 2003-11-20 21:08:07 +00:00
Kjartan Mannes 2ffa04f5f2 - Fixes bug #4100: First visit to site results in 'access denied' page.
- Fixed sess_write().
- Removed dead code in index.php.
2003-11-18 23:37:48 +00:00
Dries Buytaert a0640e66b7 - Improved module loading when serving cached pages. Moshe's bootstrap patch.
- Used legend and fieldset tags for the configuration page.
2003-11-18 19:44:36 +00:00
Dries Buytaert 36bb57555c - table(...) -> theme("table", ...) 2003-11-13 19:52:54 +00:00
Dries Buytaert f3c26069ac User module patch by Kjartan:
- Optimized user_external_load(), only need to fetch the data once.
- Removed unused functions:
  user_get()
  user_set()
  theme_menu_list()
- Fixed user_validate_name() to not accept \.
- Modified user_validate_name() to use alnum, which varies depending on
  the system locale.
- Optimized user_validate_name() to not use unnecessary regular
  expressions.
- Optimized user_access() by using less logic to fetch permissions and
  cache.
- Removed uncessary logic from user_deny().
- Fixed user_fields() to properly cache $fields.
- Optimized user_set_authmaps() to not perform unnecessary queries.
- Removed return value from user_set_authmaps().
2003-11-10 11:49:36 +00:00
Dries Buytaert 951b553a98 - Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX. 2003-11-09 23:27:22 +00:00
Dries Buytaert 92995414b4 - Committed stage 1 of the menu callbacks improvements. Patch by Jonathan. 2003-11-08 09:56:22 +00:00
Dries Buytaert ef0fa006ed - Usability improvement: replaced many selection boxes by radio buttons.
Patch by Stefan.
2003-11-07 19:03:35 +00:00
Dries Buytaert ec33266795 - Improvement: made it possible to disable the comment controls and reworded some of the configuration settings.
- Improvement: removed a left-over from Drupal 4.2.0 (dead code).

- Improvement: replaced hard-coded XHTML around the XML icons with class="xml-icon".

- Improvement: removed the custom navigation menus shown at the top of the "user information page" and integrated them in the new navigation block.  The "my account" link in the navigation menu will unfold.  Also removed the "delete account" link/functionality (for now).

- Improvement: fix for "magic quotes" settings.  Patch by Steven.  I also removed check_php_settings().

- Improvement: block themability improvements.  Modified patch from Ax and Steve/CodeMonkeyX.

- Fixed bug #2617: editing user information does not work.  Patch by Kjartan.
2003-10-31 19:34:03 +00:00
Dries Buytaert dedb08a540 - Small corrections to the punctuation. 2003-10-28 19:42:10 +00:00
Dries Buytaert cf92958f3c - Bugfix: fixed usernames being shown in the "Who is online" block after
you logged out.  Patch by Jeremy.

- Bugfix: fixed the authmap table in the MSSQL scheme.  Patch by Moshe.

- Bugfix: properly themes some error messages in the user module.  Patch
  by Moshe.
2003-10-28 19:27:52 +00:00
Dries Buytaert c54b68c8da - Bugfix: removed depricated documentation. 2003-10-23 15:09:12 +00:00
Dries Buytaert 742410aafd - Bugfix: prefix not prepended to sequences. Fixes bug #3639.
Make sure to write:

    db_next_id({table}_field);

  instead of:

    db_next_id(table_field);
2003-10-22 13:03:32 +00:00
Dries Buytaert 752c0eb70e - Bugfix: changed id="menu" to class="menu" to avoid id="menu" being emitted
twice.  Patch by Jim Riggs.
2003-10-21 19:32:31 +00:00
Dries Buytaert 71db4f261a - Bugfix: don't list the anonymous user on the account overview pages. Fixes
bug #3688.
2003-10-21 17:58:05 +00:00
Dries Buytaert f54c384381 - Bugfix: fixed form() being called incorrectly. Fixed bug #3699 reported
by Julian.
2003-10-20 20:14:46 +00:00
Dries Buytaert 7f09419564 - Bugfix: fixed two problems with adding and deleting access rules. Patch by
Moshe.  Requires database upgrade.
2003-10-20 07:12:00 +00:00
Dries Buytaert 880842885b - Fixed bug #3637: made comment module settings translatable. Patch #13 by Moshe.
- Fixed bug #3642: removed duplicate settings from user page.  Patch #14 by Moshe.

- Fixed bug #3503: added 'forum topic' link to the 'create content' menu.  Patch
  by Gobar.  I think this might be more intuitive and consistent code-wise; I don't
  want to introduce small hacks.

- Cache improvement: small cache improvement to prevent SQL errors.  Patch by
  Jeremy.
2003-10-16 17:29:26 +00:00
Dries Buytaert 7624580f76 - Bugfix: added a missing break statement. Patch by Stefan. 2003-10-15 17:15:17 +00:00
Dries Buytaert e688dfe6db - Fixed prefix problem with the book module. Patch by Moshe.
- Usability improvements to the user module: removed some redundant menu
  items by taking advantage of the column sorting, added status messages
  and so on.  Patch by Moshe plus some fixes.

- Made the profile module use the table() function.  Patch by Moshe.

- Fixed breadcrumb spacing.  Patch by Moshe.

- Fixed colspan problem with node overview table.  Patch by Stefan.

- Fixed inconsistency with table sorting.  Patch 0122 by Al.
2003-10-13 19:18:39 +00:00
Dries Buytaert 2ff3222458 - Fixed translation bugs with statistics module. Patch by Gabor.
- Removed 'homepage' field from user table.  Patch by Gabor.

- Added 'real name' field to the profile module.  Patch by Gabor.
2003-10-12 21:25:42 +00:00
Dries Buytaert 250902621a - Fixed some link titles that were no longer correct due to the menu
changes.

- Fixed some broken links.
2003-10-09 22:00:29 +00:00
Dries Buytaert ba67040b63 - Fixed a broken link in the user module's documentaiton. 2003-10-09 21:29:51 +00:00
Dries Buytaert 1a5fcacdd9 - Committed part 3 of Michael's help system improvements: removed the $help
parameter from the menu() function.
2003-10-09 18:53:22 +00:00
Dries Buytaert 22c889e7c0 - Help system improvements: eliminated the _system hook. Patch by Michael.
- Bloggerapi module fixes.  Patch by Kjartan.

- Coding style fixes.  Patch by Michael.
2003-10-07 18:16:41 +00:00
Kjartan Mannes 934938c486 user_mail_encode() fixes:
- Made sure the chunk sizes always include groupings of 4 bytes.
- Added more comments so fixes are not lost in future changes.
2003-10-04 12:59:46 +00:00
Kjartan Mannes cb6e232990 - Re-wrote user_mail_encode(). 2003-10-03 22:44:32 +00:00
Dries Buytaert 95f3278e0e - Fixed small performance bug: when a user has no permissions, the query
in user_access() was not cached.
2003-10-03 07:09:34 +00:00
Dries Buytaert 392304da5f - Moved the locale settings from the user module to the locale module.
Patch by Stefan.

- Moved the theme settings from the user module to the system module and
  made the code more intelligent.  Patch by Stefan.
2003-09-30 21:48:32 +00:00
Dries Buytaert 446dc8244b - Changed 'view my blog' to 'my blog' and 'view recent posts' to 'recent
posts'.  See mailing list discussion.
2003-09-30 05:15:12 +00:00
Dries Buytaert 7531e82969 - Made sure non US-ASCII mails are sent out properly. Patch by Gabor.
TODO: rename user_mail() to drupal_mail() and move it to common.inc.
  Other modules, such as the project module, should use this as well
  or they risk to send out /invalid/ mails.
2003-09-29 18:35:46 +00:00
Dries Buytaert c1e7b3f43a - Fixed CSS. 2003-09-28 21:14:46 +00:00
Dries Buytaert 234f278487 - Fixed bug with "new user". Reported by Matt. 2003-09-28 20:32:59 +00:00
Kjartan Mannes e2c206dafa - Renamed User information block to Navigation.
- Fixed Navigation block header.
2003-09-28 18:53:30 +00:00
Dries Buytaert 32e8d77cd6 - Associate a callback with the menu links! (This callback is not yet being
called but will be as soon the remaining links have been transformed to use
  the menu system.)

- Made sure the menu does not render links with no callback and no children.
  Like this, the 'create content' link is not being shown when the user has
  no permission to add any content.
2003-09-28 17:53:04 +00:00
Dries Buytaert c8b28009cd - Made sure all menu items can be translated. Path by Goba. 2003-09-28 15:18:55 +00:00
Dries Buytaert 2fe79310df - Rewrote the most of the menu system; this fixes Al's problem with the
"create content" link.

- Manually merged the user module's new menu items.  Al's patch did not
  apply.

- Added some missing t()s.
2003-09-28 10:51:40 +00:00
Dries Buytaert fe09d5a786 - Committed Al's new admin link texts. Remarks:
1) As explained by Al, there is still a glitch with the 'create content'
     menu.
  2) The user module part of the patch did not apply due to Kjartan's earlier
     patch.
2003-09-27 06:00:43 +00:00
Dries Buytaert 0ff789c61d - Patch by Kjartan:
+ Fixed CSS to use the same format as the rest of drupal.css.
   + Added fallback routine for menu icons.
   + Fixed anonymous users not seeing the menu.
   + Added proper access checks for admin and help menu items.
2003-09-26 23:05:14 +00:00
Dries Buytaert f104d3cc12 - Committed the admin menu integration patch. Thanks Adrian, Stefan and others. 2003-09-26 10:04:09 +00:00
Dries Buytaert 9eb0067ce4 - Fixed off-by-one error in user admin pages. 2003-09-20 16:56:36 +00:00
Dries Buytaert 2fbc7fcf27 - Committed a partial administration page integration patch. 2003-09-19 07:41:55 +00:00
Dries Buytaert 9fbab016f9 - Tidied up the usage of module_invoke() and module_invoke_all(). Patch by
Jonathan Chaffer.
2003-09-14 18:33:16 +00:00
Dries Buytaert 18e840ac66 - Bugfix: fixed string being check_query()-ed twice. Bug #2425. Patch by
Matt.
2003-09-14 08:57:18 +00:00
Dries Buytaert 9801a1967d - Changed $theme->links() to theme("links", $links).
- Added page titles.  Modified version of patch 0104 by Kendow; patch updated
  for HEAD branch.

  > Modified 4.2.0 code to pass localized title text to theme header so user
  > pages have meaningful <title> element content.
2003-09-13 15:24:04 +00:00
Dries Buytaert b9633dcded - Patch by Bart Jansen:
<quote>

  This adds session support for anonymous users and fixes a bug/typo.

    1. changed rid for user #0 from 0 to 1 (rid 1 == anonymous user) to make
       inner join work.

    2. replaced "if ($user .." by "if ($user->uid .." because now $user is
       always set (my previous change probably caused this).

    3. db_next_id("user_uid") -> db_next_id("users_uid");
  </quote>

  I repeat:

  "This adds session support for anonymous users and fixes a bug/typo."
2003-09-10 19:30:34 +00:00
Dries Buytaert 8e657f64ef - Gerhard's uid 0 patches. These patches bring various performance
improvements.  Requires a database update.
2003-09-09 18:18:43 +00:00
Dries Buytaert 756a5da544 - Added an "edit account" link. 2003-08-30 21:52:39 +00:00
Dries Buytaert 6a5ce3cad1 - Fixed bug #2548: error reporting from modules didn't always work. 2003-08-23 12:15:45 +00:00
Dries Buytaert 4e2ee96d4c - Removed left-overs from the rating module. Patch by Gerhard. Updated the
PostgreSQL and MSSQL database scheme as well.

- Made sure the update script updates the correct tables when database
  prefixing is enabled.  Patch by Bart Jansens.

- Improved the breadcrumb navigation of the book and the forum module as per
  Keith Instone's suggestions.

- Updated page titles (or block titles) and links to match.  Suggested by
  Keith Instone.

- Added missing 'thread' field to the comment table of the MySQL database scheme.
  Fixes bug #2590.
2003-08-22 17:06:44 +00:00
Dries Buytaert 134c9eb887 - Added some missing {} to make database prefixing work. Patch by Moshe. 2003-08-22 05:07:25 +00:00
Dries Buytaert 7f6ecbec0e - Fixed bug with user sessions. Patch by Jeremy. 2003-08-22 05:00:43 +00:00
Dries Buytaert 8d013b1666 - Applied Moshe's tablesort patch! Note that I changed the arrow images
because those of Moshe where not identical.
2003-08-21 15:47:50 +00:00
Dries Buytaert 0431f0700f - Committed Jeremy's session patch: this brings us one step closer to having
session for anonymous users.
2003-08-20 19:19:13 +00:00
Dries Buytaert b79b831152 - Updated the user module to use the new help system approach. 2003-08-19 20:48:25 +00:00
Dries Buytaert 6842d59732 - Documentation fixes by Michael F. 2003-08-13 18:40:26 +00:00
Dries Buytaert e0b97a7587 - Usability improvement: changed the title of the main block on the user
information page.  Suggested by Keith Instone.
2003-08-13 07:08:27 +00:00
Kjartan Mannes 48805032c8 - Applied modified version of almaw's 0064 patch: form item attributes.
- Applied modified version of mathias' 0073 patch: node form name.
  $params["options"] is now an array so some contrib modules might
  need minor changes.

- Applied mathhias' 0074 patch: missing access check on who is new
  block.
2003-08-12 20:37:16 +00:00
Dries Buytaert 37310ee6f0 - Added missing t() functions to watchdog. Patch #80 by Stefan. 2003-08-12 19:12:22 +00:00
Kjartan Mannes 17ef869e3a Applied 0007.almaw.home-link-using-l.patch
- Fix link_page to use l() to generate home link.

Applied 0058.kika.themeable-usermenu.patch
- Modifies user menu be themeable.
2003-08-11 20:41:37 +00:00
Dries Buytaert 173dfb5950 - Added missing {}. Fixes bug 2423 reported by kenzky. 2003-08-05 07:06:26 +00:00
Dries Buytaert 9fe3d9c46a - Fixed bug in user_validate_name(): . (dot) should be allowed for DA to work.
Fixes bug #107.
2003-07-26 18:01:14 +00:00
Dries Buytaert 75512ae3dc - Fixed the update path of user_save(). Patch by Gerhard. Tnx. 2003-07-23 19:48:08 +00:00
Dries Buytaert 83ae5b5c36 - Fixed typo: implde() -> implode(). Reported by Moshe. 2003-07-23 05:16:10 +00:00
Dries Buytaert c39562ae03 - Fixed node_save() and user_save() bug introduced by table prefix changes.
Modified patches from Gerhard.

- Changed the order of the checks in node_teaser().  Patch from Kobus.
2003-07-21 15:36:05 +00:00
Dries Buytaert 337b3c9de9 - Committed a slightly modified version of Slavica's table prefix patch. 2003-07-10 17:46:44 +00:00
Dries Buytaert c89f78aa4d - Bugfix: fixed the "check for duplicate e-mail addresses" test. Patch by
Marco.
2003-07-09 21:54:35 +00:00
Dries Buytaert d017514eba - Improvement: made it possible to translate the forum module. Patch #53 by Stefan.
- Improvement: some small changes to the user module to ease translation and to make things slightly more consistent.  This should be a better alternative for patch #54.

- Improvement: increase the maxlength of the node title.  This should fix bug #2018 and #2176.
2003-07-02 17:09:09 +00:00
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