Commit Graph

992 Commits (3d3a60740a63e8c803d0905b2727bb202e6de370)

Author SHA1 Message Date
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 e5aae050a7 - Changed '%s' into '%d' such that an empty $user->uid is converted to 0. Required for Drupal to work on new versions of PostgreSQL. Patch by James. 2003-02-09 18:01:32 +00:00
Dries Buytaert f3c093f638 - 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, backported to CVS by me.
2003-02-09 17:58:56 +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 6953d95b2d - Fixed bug #1133: disabled comments are no longer shown. Thanks Gerhard. 2003-02-09 14:38:20 +00:00
Dries Buytaert 10cb57a0b7 - Removed redundant code. 2003-02-02 21:05:34 +00:00
Dries Buytaert 6fcadb8ef5 - Made it possible to print forum submission guidelines. Patch by Moshe. 2003-02-02 10:02:37 +00:00
Dries Buytaert c23f53f786 - Fixed typo: '$node->nide' -> '$node->nid'. Patch by Alastair. 2003-02-01 20:04:00 +00:00
Dries Buytaert 6746ee41f5 - Added some caching. Patch by Moshe. 2003-02-01 20:01:43 +00:00
Dries Buytaert 74a3318ca9 - Bugfix; we got redirected to the wrong URL. 2003-01-29 23:33:50 +00:00
Dries Buytaert 2e6e1efbae - Renamed "Allow HTML tags" to "Filter HTML tags" for clarity. Reported by
Ax.
2003-01-29 23:15:10 +00:00
Dries Buytaert 5b720be335 - Corrected misplaced quote. Reported by Gerhard. 2003-01-29 18:40:47 +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 ad9b03033a - Some first changes to the system.module; tidied up some code, preparations
for theme settings and borrowing some ideas from Kjartan's long-awaited
  system.module patch.
2003-01-26 12:54:56 +00:00
Dries Buytaert 37fe442d89 - Moved the filter()s back to the individual node modules as it used to be. 2003-01-23 18:11:19 +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 c52a3feafe - Applied David's calendar patch: you can now configure at what day a week
start.
2003-01-21 22:50:03 +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 ef0acbf2dd - A node's comment table is now being emitted by the new table rendering
functions.
2003-01-21 22:38:47 +00:00
Dries Buytaert d6adac7421 - Tidied up some SQL queries. 2003-01-21 22:35:54 +00:00
Dries Buytaert 966f0811a2 - Tidied up some SQL queries. 2003-01-21 22:31:37 +00:00
Dries Buytaert a7b5d34cf5 - Corrected the documentation. 2003-01-21 22:30:52 +00:00
Dries Buytaert ca68e8a3c7 - Tidied up some SQL queries. 2003-01-20 20:19:21 +00:00
Dries Buytaert 73d46a64c3 - Tidied up some SQL queries. 2003-01-20 20:18:06 +00:00
Dries Buytaert 1fecd287f2 - Fixed bug #1041; sime queries where broken.
- Fixed problem with page links not being displayed.
2003-01-20 20:00:45 +00:00
Dries Buytaert fe72ab1c22 - Bugfix: statistics.module can't give referrer statistics other than the
external ones with clean URLs.  Patch by Ulf Rompe.
2003-01-16 22:27:01 +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 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 457e5a1b23 - Small improvement to the admin menu based on feedback from Michael. 2003-01-14 20:58:14 +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 dc3df67590 - Small bugfix and small cleanup. Patch by Marco. 2003-01-13 19:35:16 +00:00
Dries Buytaert 81efba930f - Removed depricated function. 2003-01-12 15:29:56 +00:00
Dries Buytaert 0fba793aff - Fixed a typo that caused quite a few redundant SQL queries. 2003-01-12 15:29:28 +00:00
Dries Buytaert 97f4bdb945 - Made sure all table headers could be translated.
- Made the book module use the new table rendering function.
2003-01-12 09:57:20 +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 ba3eead0d6 - Made sure the text doesn't wrap. 2003-01-10 22:19:47 +00:00
Dries Buytaert 6334ee2093 - Code improvement: forgot to update an URL to the clean URL scheme. 2003-01-09 21:55:51 +00:00
Dries Buytaert 87dbb8236e - Minor comment module improvements/fixes. 2003-01-09 21:50:04 +00:00
Dries Buytaert a4b1397677 - Ported David's taxonomy patch to Drupal CVS. 2003-01-09 20:02:42 +00:00
Dries Buytaert 22c3f055e1 - Bugfix: fixed the SQL query in _forum_topics_read to avoid counting shadowed
topics in forums.  Patch by David.
2003-01-08 19:43:35 +00:00
Dries Buytaert 33da658c4d - Bugfix: RSS auto-discovery was broken due to clean URL work. Patch by
Breyten.
2003-01-07 19:16:59 +00:00
Dries Buytaert 485e1c394a Great patch from Ulf:
- The href target for a new window is "_new", not "new".

- Generating <div> sections within <p> sections is forbidden by the
  XHTML standard. Using just the right aligned <div> should be
  sufficient and makes XHTML themes possible.
  (Prove at http://blog.rompe.org/ )

- While parsing the header of an RSS feed one should be aware that
  there may be more <title> tags in subsections and that POSIX regular
  expressions are always gready. So make shure we don't get too much.
  (If you agree that using PCRE instead of the POSIX ones would be
  generally a good idea, then I am willing to make the patch, but for
  now I didn't want to mix POSIX and PCRE in one file.)
  (Prove at http://blog.rompe.org/index.php?q=import/feed/43 , try
  this feed without my patch)

- Some RSS 2.0 feeds don't have a per item <link> section but have the
  permalink embedded in the <guid> section. This is not perfectly
  correct and the documentation mentions this possibility only in the
  examples, but since Dave Winer himself implements it this way it
  will happen more than once. So, if there is no link available and
  the guid looks like an address, then use that one.
  (Prove at http://blog.rompe.org/index.php?q=import/feed/22 , try
  this feed without my patch)

- Don't only write eventually new Feed Header information into the
  database but also use them immediatly. Reuse the $feed array that is
  made for it.

- If a feed doesn't provide per item titles, make shure to not produce
  defective markup by cutting the remainder of an entity. Instead of
  just cutting off anything behing the leading 30 characters of the
  cleaned description, it seems slicker to use up to 40 characters and
  split on word boundaries, but not on "&" or ";".
  (Prove also at http://blog.rompe.org/index.php?q=import/feed/22 .
  This feed will have title tags starting on February 1st, but I
  suspect many others without them out there.)

With this patch one could consider Drupals aggregator RSS 2.0 ready.
2003-01-07 19:09:42 +00:00
Dries Buytaert 337b80b1a6 - Fixed access log update bug introduced during clean URL commit. Patch by
Moshe.
2003-01-07 05:58:36 +00:00
Dries Buytaert bfb3575c09 - Some usability improvements requested by Michael. 2003-01-06 20:51:39 +00:00
Dries Buytaert 89b2069e4d - Clean URL patch. 2003-01-06 19:51:01 +00:00
Dries Buytaert 36556762f9 - Made a database query ASNI compliant. Patch by Ax. 2003-01-05 00:05:53 +00:00
Dries Buytaert 520416d977 - In the taxonomy administration pages, the dropdown to select a term's
parent is supposed to exclude terms that are descendants of the current
term, to avoid creating cycles. However, the terms with the first few
term IDs are excluded instead.  Patch by JonBob.
2003-01-04 23:58:27 +00:00
Dries Buytaert 2da18e8d0c - The statistics module would sometimes mistake a non-node ID with that
of a node.  Thanks David and Jeremy.
2003-01-04 23:38:58 +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