Commit Graph

494 Commits (62212c7b3d08c4162c7ee7bc29895c8d98710ce8)

Author SHA1 Message Date
Kjartan Mannes 32989e14db - Fixed blog.module to accept blog/name URLs as well as blog/id
- Changed the RewriteRule in .htaccess.
- Fixed form_select() matching incorrectly.
- Added missing $Id$ to menu.inc
2003-02-12 21:37:56 +00:00
Dries Buytaert 074b9bf421 - Added temporary check around inclusion of "xmlrpc.inc". 2003-02-12 16:21:48 +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 9281d0cdd7 - Applied Alastair's date patch.
- Removed all instances of '$user->nodes'.

- Committed Moshe's taxonomy patch - minus the node_compact_list() bit.  It needs a bit more thought/work.  This patch changes the links of taxonomy pages/feeds so update your custom code and themes accordingly!

Themes should now use "taxonomy_link("taxonomy terms", $node)" to get an array of taxonomy term links.  The old construct is deprecated and should be changed.

// old theme blob:
if (function_exists("taxonomy_node_get_terms")) {
  foreach (taxonomy_node_get_terms($node->nid) as $term) {
    $terms[] = l($term->name, NULL, array(), "or=$term->tid");
  }
}

// new theme blob:
if (module_exist("taxonomy")) {
  $terms = taxonomy_link("taxonomy terms", $node);
}

// old URL:
http://foo.com/index.php?or=1,2

// new URL:
http://foo.com/?q=taxonomy/page/or/1,2
2003-02-09 17:39:40 +00:00
Dries Buytaert e4ff410614 - Patch by Moshe: sometimes modules display content composed by people who
are not members of the site. Two examples are listhandler and import modules.
There is no easy way for these modules to display the true author of the
content. Usually, the content appears as if authored by Anonymous User. This
3 line patch enables modules to override the author name in their _view() hook.
2003-02-02 10:13:13 +00:00
Dries Buytaert cfd31c93f1 Patch by Ax:
- Bad usage of css ID's: they may be used for a single element only,
but were used as #node, #block, which can occur multiple times in a
single page.

- Moved HTML from theme to template - thats what templates are all
about!

- Added support for head() hook

- Added support for diffentiating between boxes and blocks.

- Typo: secundary -> secondary
2003-02-01 19:54:19 +00:00
Dries Buytaert bb9f9868eb - Committed Alastair Tse's getallheaders() patch. 2003-01-31 08:32:41 +00:00
Dries Buytaert 4088adad1a - Fixed bug introduced by Moshe's common.inc patch; posting content would
cause "Array" to be displayed.
2003-01-27 19:37:07 +00:00
Dries Buytaert 92b5fc369a - Fixed XHTML glitch in the sitemap. Thanks Moshe and Michael. 2003-01-27 19:15:20 +00:00
Dries Buytaert a32e3d1408 - Added sitemap feature to administration pages. Requested by various
people including Michael and Moshe.
2003-01-26 13:27:59 +00:00
Dries Buytaert 4028362fda - Applied Moshe's _exit patch (slightly modified).
- Fixed bug in system.module.
2003-01-26 13:22:02 +00:00
Dries Buytaert 4dac201e7c - Patch by Ulf: XHTML-ified the code. 2003-01-21 22:57:43 +00:00
Dries Buytaert 9a23223e25 - Applied Ori's format_plural() patch; see mailing list for details.
NOTE: some modules in the contributions repository might need to be updated.
2003-01-21 22:44:25 +00:00
Dries Buytaert 389dc00886 - Replaced "&" by "&". Patch by Ulf. 2003-01-20 19:54:11 +00:00
Dries Buytaert 5b1e1da22e - Tidied up a SQL query.
- Changed a "&" to a "&".
2003-01-20 19:20:22 +00:00
Dries Buytaert f6da12ca19 Patch by Marco:
- forum: fixed link to new topic
- forum: new topic shows default forum correctly
- forum: first_new is back; the anchor didn't consider multiple pages
- forum: use standard pager, needed some changes/fixes to pager.inc
- forum: some cleanup
- forum: taxonomy hook
- renamed first_new to simply new
- added an optional parameter to pager_query for the count query
- used the optional count param for paging forum topics
- internal change: moving a topic doesn't duplicate the node anymore but just
  changes the forum (term); no change in functionality, and shadow still
  works (suggested by Dries).  This probably also made some queries somewhat
  lighter.
- bug fixed: anonymous users always saw "n (n new)" in the replies column
- updated pager help and moved from _help to phpdoc
2003-01-15 23:01:42 +00:00
Dries Buytaert 6f15124748 - Enabled XML-RPC. 2003-01-15 05:57:55 +00:00
Dries Buytaert e25bc4fda3 - Fixed glitch in table_cell(). Spotted by Michael. 2003-01-15 05:56:50 +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 7d677b5c5a - Added some more URL rewrite rules based on contributions from Gerhard. 2003-01-12 11:53:31 +00:00
Dries Buytaert d1521b48e5 - Rewrite old-style URLs. Based on patch by Gerhard. 2003-01-11 20:07:42 +00:00
Dries Buytaert 0d384c8ead - Fixed "clean URL" glitch in queue module. Patch by Ax.
- Small improvement to url().  Patch by Ax.
2003-01-11 10:46:11 +00:00
Dries Buytaert 640128b08d - Added some isset()s to kill some "Undefined variable" warnings. Patch by
Julio.
2003-01-09 20:06:00 +00:00
Dries Buytaert 6744e34066 - Fixed the pager. It might not be 100% correct, but it will work in 95%
of the cases.
2003-01-09 19:53:51 +00:00
Dries Buytaert 28aa217f90 - Made sure the $links array is properly initialized before doing an
array_merge.  According to Ori, this fixes a problem when using PHP
  as an ISAPI module with the Sambar server.
2003-01-08 05:47:57 +00:00
Dries Buytaert affacdf508 - Added a few line breaks in the HTML emitted by the table() function
for better readability of the HTML code.  Patch by Moshe.
2003-01-07 19:21:28 +00:00
Dries Buytaert 56d0434f82 - Fixed bug in update of taxonomy links. 2003-01-06 21:43:07 +00:00
Dries Buytaert 2647a943f0 - Forgot to update the taxonomy links. Reported by Adam. 2003-01-06 21:24:21 +00:00
Dries Buytaert a380356d6e - Fixed typo in watchdog(). Reported by Marco. 2003-01-06 20:58:31 +00:00
Dries Buytaert 89b2069e4d - Clean URL patch. 2003-01-06 19:51:01 +00:00
Steven Wittens 97858f9b2e Typo ('tat' > 'that') 2003-01-05 01:19:37 +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 92758279fa - Bugfix: wrapped an RSS item's description in a check_output() to ensure
proper markup.
2002-12-31 10:58:47 +00:00
Dries Buytaert e97c6a73d6 - Code improvement: menu_tree() will no longer generate empty "<ul></ul>"
constructs.
2002-12-30 15:54:06 +00:00
Dries Buytaert 769ebb666c - Check input given to table rendering functions to avoid warning. 2002-12-30 08:33:02 +00:00
Dries Buytaert 14158fbc6b - Added table rendering functions. As an example, I changed the node module
to take advantage of it.
2002-12-29 12:03:08 +00:00
Dries Buytaert a3ad12a9b6 - We don't have to show the main row anymore. 2002-12-27 14:58:57 +00:00
Dries Buytaert 26e0b9b75c - Made Drupal report an error when magic_quotes are disabled. 2002-12-26 12:16:09 +00:00
Dries Buytaert 22fa9ed70a - Refactored the administration pages. 2002-12-24 15:40:32 +00:00
Dries Buytaert 8f673be382 - Small improvement. Patch by Moshe. 2002-12-21 19:10:47 +00:00
Dries Buytaert 20e22ad292 - Removed some backslashes. Reported by Adam. 2002-12-20 22:08:17 +00:00
Dries Buytaert 146beb5156 - Fixed bug in cache_clear_all(). Patch by Marco. 2002-12-16 16:42:49 +00:00
Dries Buytaert eacfd45863 - Forgot a tag. 2002-12-15 23:05:25 +00:00
Dries Buytaert 99d84c9330 - Committed Marco's pager improvements.
- Fixed another annoyance with editing content.
2002-12-14 11:55:54 +00:00
Dries Buytaert b6b24c28e0 Applied patch by Natrak:
- page_header() now adds Last-Modified and ETag http headers.
- When running PHP as an Apache module page_header() will check the HTTP
  headers for conditional gets, and will only push the content when it
  fails. (Works for html and xml pages as they are all cached). Note:
  this is a PHP limitation, so until PHP makes it work for other web
  servers this won't work for them.
- Added created field to cache database to hold the timestamp when the
  cache was created.
- Changed cache_get() to return an object with ->data and ->created.
- Update forum and locale modules.
2002-12-11 22:00:04 +00:00
Dries Buytaert 81a6bcd7a2 - Fixed typo. Reported by Kobus. 2002-12-11 20:21:04 +00:00
Dries Buytaert 7ce686c152 o Permission improvements:
+ Removed the "post content" permission and replaced it by more fine-grained permissions such as "maintain static pages", "maintain personal blog", "maintain stories", etc.

o Usability improvements to teasers:

   + Teaser forms are no more.  Teasers are extracted automatically but can also be instructed using a delimiter "---".  Furthermore, when a post it too short for a teaser, the user won't be bother with teaser stuff anymore.

   + Added an option to set the teaser length, or to disable teasers all together.

   + When previewing a post, both the short (if any) and the full version of a post are shown.  This addresses a common complaint; for example, when writing a book page there was no way you could preview the short version of your post.

   + Forum posts can be teasered now.  This is particularly helpful in the context of drupal.org where we promote forum topics.

o Bugfix: replaced all PHP short tags (<?) with long tags (<?php).

o Bugfix: removed hard-coded dependence on comment module.

o Bugfix: when the queue module was disabled, it was not possible to approve updated book pages.

o Bugfix: applied modified version of Marco's node_teaser() fix.
2002-12-10 20:35:20 +00:00
Dries Buytaert 296a01f399 - Made sure session.cache_limiter is set to "none" as suggested by Moshe
and Ax.
2002-12-08 08:19:29 +00:00
Dries Buytaert 7c187f894c - Added "short_open_tag 1" to the PHP settings. 2002-12-07 21:21:35 +00:00