Commit Graph

193 Commits (8b8a2bd63443dc9defbba4b0ab03801955ae406a)

Author SHA1 Message Date
Dries Buytaert cfe20d0b8e - Patch #9654 by Bart Jansens: added some missing {} and fixed the upgrade path from Drupal 4.4.x. 2004-08-21 15:52:45 +00:00
Dries Buytaert 94e30bf776 - Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks. 2004-08-21 06:42:38 +00:00
Dries Buytaert 6ea5c56ded - Theme system changes. Please consult http://drupal.org/node/view/9576 for details. 2004-08-20 07:51:27 +00:00
Dries Buytaert 6e14528192 - Patch #10196 by drumm: fixed off by one error. 2004-08-20 05:40:16 +00:00
Dries Buytaert 78b052a6af - The upload (filehandler) module has landed! 2004-08-17 21:35:26 +00:00
Steven Wittens 6a380525d4 #10012 - Profile.module:
- Restoring broken update path.
- Adding birthday/date function back, with update path.
- Show private fields when viewing your own profile, or for admins.
- Do not allow browsing of private fields for non admins (403)
- Throw a 404 for browsing unbrowsable fields, rather than an SQL error
- Fixing input processing: nothing is filtered twice anymore, and I replaced several strip_tags with specialchars (more flexible).
- Minor admin UI tweaks + added friendly field type names.
2004-08-14 11:54:31 +00:00
Dries Buytaert 0f088b79ca - Patch #9983 by Stefan: various code style improvements. 2004-08-12 18:00:11 +00:00
Steven Wittens c1ca7c326f *bangs head against wall* 2004-08-12 15:16:15 +00:00
Steven Wittens 441b63accd Moving all legacy handlers into legacy.module. 2004-08-12 15:12:26 +00:00
Dries Buytaert 1831e1b690 - New locale module thanks to Gerhard, Goba, Marco, Kristjan and others.
The new locale module provides every functionality on the web interface, so you don't need to edit the configuration files or add columns, when you add a new language. This module is an integration of the old locale and localegettext modules, plus a bunch of logic to parse Gettext Portable Object files (opposed to Machine Object files, as supported by localegettext).

  Note: I made some minor changes to the context-sensitive help texts and to some of the status messages.
2004-08-11 11:26:20 +00:00
Steven Wittens 660f99287d The Input formats - filter patch has landed. I still need to make update instructions for modules and update the hook docs.
Here's an overview of the changes:
1) Multiple Input formats: they are complete filter configurations (what filters to use, in what order and with which settings). Input formats are admin-definable, and usage of them is role-dependant. For example, you can set it up so that regular users can only use limited HTML, while admins can free HTML without any tag limitations.
The input format can be chosen per content item (nodes, comments, blocks, ...) when you add/edit them. If only a single format is available, there is no choice, and nothing changes with before.

The default install (and the upgrade) contains a basic set of formats which should satisfy the average user's needs.

2) Filters have toggles
Because now you might want to enable a filter only on some input formats, an explicit toggle is provided by the filter system. Modules do not need to worry about it and filters that still have their own on/off switch should get rid of it.

3) Multiple filters per module
This was necessary to accomodate the next change, and it's also a logical extension of the filter system.

4) Embedded PHP is now a filter
Thanks to the multiple input formats, I was able to move the 'embedded PHP' feature from block.module, page.module and book.module into a simple filter which executes PHP code. This filter is part of filter.module, and by default there is an input format 'PHP', restricted to the administrator only, which contains this filter.
This change means that block.module now passes custom block contents through the filter system.
As well as from reducing code duplication and avoiding two type selectors for page/book nodes, you can now combine PHP code with other filters.

5) User-supplied PHP code now requires <?php ?> tags.
This is required for teasers to work with PHP code. Because PHP evaluation is now just another step in the filter process, we can't do this. Also, because teasers are generated before filtering, this would result in errors when the teaser generation would cut off a piece of PHP code.

Also, regular PHP syntax explicitly includes the <?php ?> tags for PHP files, so it makes sense to use the same convention for embedded PHP in Drupal.

6) Filter caching was added.
Benchmarking shows that even for a simple setup (basic html filtering + legacy URL rewriting), filtercache can offer speedups. Unlike the old filtercache, this uses the normal cache table.

7) Filtertips were moved from help into a hook_filter_tips(). This was required to accomodate the fact that there are multiple filters per module, and that filter settings are format dependant. Shoehorning filter tips into _help was ugly and silly. The display of the filter tips is done through the input format selector, so filter_tips_short() no longer exists.

8) A more intelligent linebreak convertor was added, which doesn't stop working if you use block-level tags and which adds <p> tags.
2004-08-10 18:34:29 +00:00
Steven Wittens daf175182e - Adding an update to convert old taxonomy URL aliases to new ones. 2004-08-07 21:20:41 +00:00
Steven Wittens 3e39fa864a Added an upgrade path for old URL aliases to node/view, book/view and user/view. This is amongst other things required for old node aliases to appear in the node form. 2004-08-06 22:43:12 +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
Steven Wittens cabd6c892c #9810: PostgreSQL updates by Adrian. 2004-08-06 09:49:25 +00:00
Dries Buytaert 0b15fd476a - Patch #9740 by Bart: added missing {} for table prefixing. 2004-08-04 17:38:24 +00:00
Dries Buytaert c0f6fccac3 - Patch #7336 by TDobes: in various parts of Drupal, we use the title attribute for links to provide a slightly more detailed explanation as to the purpose of a link or where it goes. 2004-08-03 18:01:48 +00:00
Dries Buytaert 0582a304fd - Patch by Jeremy: statistics module improvements. 2004-08-03 09:27:00 +00:00
Dries Buytaert 64dae93af7 - Patch #9654 by Bart: since the $category paramater was added to user_save,
update 80 (moving the profile fields to their own tables) no longer works.
2004-07-31 16:25:04 +00:00
Dries Buytaert ca3e769fa6 - Patch by Matt: fixed small typo. 2004-07-31 16:18:26 +00:00
Dries Buytaert 202eee42a9 - Patch #9543 by JonBob: added node-level access control! 2004-07-31 09:30:09 +00:00
Steven Wittens c16ada8c46 - #7295: Fixing issue with latest comments being incorrectly displayed on PostgreSQL 2004-07-22 01:31:33 +00:00
Steven Wittens 6316803373 - Fixing static -> sticky update so it works for node types with underscores in the name. 2004-07-21 14:56:08 +00:00
Dries Buytaert 71eca36547 - RDF is not RSS so removing that for now. 2004-07-12 07:25:49 +00:00
Dries Buytaert 6d0971ff4c - Added URL aliases for 'index.rdf' and 'rss.xml'. Google, Feedster and
possibly other crawlers try fetching these frequently as can be seen
  from the watchdog logs.  Made possible by the recent path module change.
2004-07-11 07:19:22 +00:00
Dries Buytaert 9e43afadc7 - Patch by Matt: made it possible to alias an URL multiple times. 2004-07-11 06:53:39 +00:00
Dries Buytaert a95d597c53 - Fixes small warning 2004-07-10 16:03:30 +00:00
Dries Buytaert a067187711 - Patch #8509 by Killes and Steven: added support for sending compressed
pages.  Useful to reduce your site's bandwidth.
2004-07-08 19:22:48 +00:00
Dries Buytaert 747db4763f - Added missing homepage column to the comments table in the PostgreSQL scheme. 2004-07-07 21:12:06 +00:00
Dries Buytaert e3e051cc0d - Patch #8585 by Junyor: sort blog items by creation date. Added some database indices. 2004-06-30 07:26:02 +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 cbc230a36c - Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a more
logical name.  Requires a database upgrade.
2004-06-19 10:39:36 +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 059534b079 Patch #7938 by moshe: menu -> {menu} 2004-05-22 21:28:51 +00:00
Dries Buytaert d0090e69e6 - Patch #7614 by jhriggs: fixed some role related problems. 2004-05-19 14:55:19 +00:00
Dries Buytaert 10c5e95a2f - Made it possible for anonymous users to leave their name, e-mail address
and the URL of their homepage.  Patch by Pablo.
2004-05-18 18:41:46 +00:00
Dries Buytaert 4e5872faa8 - Return to avoid warning message. 2004-05-13 18:19:29 +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 3c604109dc - Patch #7498 by nereocystis: PostgreSQL updates for HEAD 2004-05-03 05:41:21 +00:00
Dries Buytaert 3117258552 - Various aggregator module improvements. Modified patch by drumm. 2004-04-27 20:10:09 +00:00
Dries Buytaert 5403982589 - Patch #6009 by Matthias: reworked the help texts of the taxonomy module generated forms. The help text can now be customized. 2004-04-24 16:42:39 +00:00
Dries Buytaert df97450834 - Patch #7286 by LiDave: improved filter table indices. I updated database/updates.inc as well. 2004-04-24 07:50:39 +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 57f52eb93c - Patch #7121 by Adrian: added missing PostgreSQL update function. 2004-04-13 18:04:36 +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 93cf70d72e - Profile module improvements: added a URL-type field to the profile module.
We can use this for the 'URL of homepage' field on drupal.org.  URL fields
  are rendered as links and are being validated.
2004-03-21 10:28:10 +00:00
Dries Buytaert b5c441a926 - Profile module improvements:
+ Made it possible to define the page title of the user listing pages.

   + Used form_group()s for the profile administration page.

   + Fixed bug in database/updates.inc.
2004-03-20 19:41:42 +00:00
Dries Buytaert a71c5ef538 - Fix #6393 by TDobes: fixed users table after. It was not updated properly after the recent profile module changes. 2004-03-12 18:30:27 +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 d3069eefdd - Removed the MSSQL port as discussed with Moshe. 2004-03-06 19:12:44 +00:00