summaryrefslogtreecommitdiff
path: root/modules/node
Commit message (Collapse)AuthorAge
* - Modified patch #14170 by Neil: improved default workflow (default node ↵Dries Buytaert2005-01-24
| | | | | | type) configuration page. Modified the patch to remove some redundant code, to translate strings, and to better use the menu system.
* - I had to modify chx's patch/change because it did not work with PHP5. ↵Dries Buytaert2005-01-23
| | | | Please double-check.
* - Patch #16026 by chx: fixed node-level permissions.Dries Buytaert2005-01-23
|
* Documenting a tricky regexp.Steven Wittens2005-01-22
|
* - Another code style fix.Steven Wittens2005-01-19
|
* - Fix tracker pager count query being wrong (it did not return a count but a ↵Steven Wittens2005-01-19
| | | | | | set, and it counted nodes with more than 1 comment as multiple nodes). - Clean up various SQL queries: removing literally inserted data (db_escape_string is evil!), fixing single "%" which should be "%%", fixing integers being compared as strings.
* - #15500: Fix tracker not showing nodes without comments.Steven Wittens2005-01-19
| | | | - Tiny code style fix
* - The real code fixes ;)Steven Wittens2005-01-17
|
* - Reversing bad commit, sorry everyone.Steven Wittens2005-01-17
|
* - Various code style fixesSteven Wittens2005-01-17
|
* - Patch #14731 by chx: made it possible to rewrite node queries.Dries Buytaert2005-01-16
|
* - Make the search settings page more user-friendly.Steven Wittens2005-01-11
|
* - Fixing a couple of watchdog() calls.Steven Wittens2005-01-09
|
* - Patch #13260 by UnConeD: watchdog module improvements.Dries Buytaert2005-01-09
| | | | | | | | | | We added a 'severity' column to watchdog(): watchdog($type, $message, $link) --> watchdog($type, $message, $severity, $link); * Specify a severity in case you are reporting a warning or error. * The $link-parameter is now the fourth parameter instead of the third. TODO: document this in the upgrade guide.
* - Patch #14917 by UnConeD/Steven:Dries Buytaert2004-12-31
| | | | | | | | 1) The different types of search, which used to be radio button options in the search form, are now subtabs of "search" (default "search/node"). This seems better from a UI point of view, but also has another advantage: modules which implement a custom search form (flexinode, project) can add it as a subtab of search. This means that all search forms will be located in the same place, and also without needing an extra api call to search.module. 2) The current code was a bit hackish, as the indexing of comments along with nodes was hardcoded in node.module. Instead, I created a nodeapi operation "update index" which allows modules to add more data for a node that is being indexed. Comments are now indexed using this mechanism and from comment.module, which is a lot cleaner. 3) The search results format was also hardcoded to include "N comments". I replaced this with a nodeapi operation "search result" and moved the comment code to comment.module where it belongs. This op is quite useful, as for example I also modified upload.module to add "N attachments" to a search result if any are present.
* - Patch #6308 by gordon: allow node_submit() to be used by external interfaces.Dries Buytaert2004-12-26
|
* #11548: node.module - Ensure that only valid fields are savedSteven Wittens2004-12-24
|
* - Patch #14709 by matteo: added missing call to the nodeapi's 'view' hook.Dries Buytaert2004-12-23
|
* #12793: Remove dependency of node.module on search.module.Steven Wittens2004-12-20
|
* - Patch #13907 by Neil: less ways to set the page title.Dries Buytaert2004-12-15
| | | | | | | * Less logic in theme code. * Encourages use of the menu system. * Easier to find where a title or breadcrumb comes from in other people's code because there are less places to look. Look in menu and then grep for the appropriate set function. Looking for calls to theme_page() is hard because there are too many of them. * Very slightly more efficient.
* - Removed some cruft: left-over xxx_help_page() functions.Dries Buytaert2004-12-11
|
* - Refactored the queue module: removed the queue module's field from the ↵Dries Buytaert2004-12-07
| | | | | | | | | | node table. With help from Gerhard. - Slight addition to INSTALL.txt with regard to PHP versions. - Updated/reworded some node type descriptions as per Boris' suggestions. - Adding missing {} around a table name in update.php.
* Search: indexing should invoke nodeapi to catch all user-visible data (e.g. ↵Steven Wittens2004-12-02
| | | | file attachment names).
* - Patch #10697 by matteo: avoid that administrators can create nodes with ↵Dries Buytaert2004-11-29
| | | | the wrong node type.
* - Modified patch #11840 by Stefan: added conctext-sensitive help text to the ↵Dries Buytaert2004-11-27
| | | | 'revision'-page.
* - Patch #6166 by Moshe: node preview should not display links. Push the ↵Dries Buytaert2004-11-23
| | | | | | | | links to the theme instead of the theme having to pull them in using node_link(). TODO: 1. Update theme upgrade instructions in the handbook: node_link() is gone. 2. Remove page_link() just like we removed node_link().
* - Patch by Stefan: wrapped the help texts in <p></p> tags. Helps improve ↵Dries Buytaert2004-11-23
| | | | consistency.
* - Patch 13180 by chx: renamed check_query() to db_escape_string() and ↵Dries Buytaert2004-11-21
| | | | | | implemtented it properly per database backend. Read the manual for pg_escape_string: "Use of this function is recommended instead of addslashes()." Or read sqlite_escape_string: "addslashes() should NOT be used to quote your strings for SQLite queries; it will lead to strange results when retrieving your data."
* Search.module:Steven Wittens2004-11-18
| | | | | - Caching index statistics - Minor code cleanup
* Search indexing bug: last updated timestamp needs to take last comment ↵Steven Wittens2004-11-18
| | | | timestamp into account.
* - Patch #8506 by Gerhard: added basic node_load() caching.Dries Buytaert2004-11-17
|
* - Patch #12783 by Stefan: various small consistency/usability improvements.Dries Buytaert2004-11-15
|
* - Patch #11940 by kps: if the user is not allowed to view a newly submitted ↵Dries Buytaert2004-11-15
| | | | node, redirect him to the main page.
* - Slightly modified the API of node_title_list(): it will no longer call ↵Dries Buytaert2004-11-04
| | | | | | | | comment_num_all() for each node. Instead, it checks for the availability of the node_comment field, available through the node_comment_statistics table. If updated the Doxygen comments accordingly. People were using node_title_list() without realizing it would do numereous database queries. This change greatly reduces the number of database queries required to render the node statistics block as well as to render the forum block (coming up next). If your module is using node_title_list() and you want the number of comments to be shown as title attributes, chances are you have to update your SQL query to join node_comment_statistics.
* - Patch #12232 by Steven: more search improvements:Dries Buytaert2004-11-04
| | | | | | | | + When a comment is posted, a node needs to be re-indexed. Luckily, we can use node_comment_statistics for this easily. + When a node is deleted, it should be deleted from the search index as well. + The search wipe didn't properly remove links to nodes from the index. + Section url was faulty in _help. + Minor code rearrangement.
* - Patch by Steven:Dries Buytaert2004-11-03
| | | | | | | | | | | + Display 'friendly' name rather than module name in search watchdog messages. + Remove left-over from search_total table. + Add index wipe button to the admin + Moved the admin to admin/settings/search + Prevented menu bug when node modules update the breadcrumb in view (thanks JonBob). + Changed search_total table's word key to PRIMARY.
* - Patch #11875 by Neil Drumm: block module configuration improvements.Dries Buytaert2004-10-31
| | | | | | | | | | The primary goal of this patch is to take the 'custom' and 'path' columns of the block overview page and make them into something understandable. As of Drupal 4.5 'custom' lacked an explanation which wasn't buried in help text and path required dealing with regular expressions. Every block now has a configuration page to control these options. This gives more space to make form controls which do not require a lengthy explanation. This page also gives modules a chance to put their block configuration options in a place that makes sense using new operations in the block hook. The only required changes to modules implementing hook_block() is to be careful about what is returned. Do not return anything if $op is not 'list' or 'view'. Once this change is made, modules will still be compatible with Drupal 4.5. Required changes to core modules are included in this path. An additional optional change to modules is to implement the additional $op options added. 'configure' should return a string containing the configuration form for the block with the appropriate $delta. 'configure save' will come with an additional $edit argument, which will contain the submitted form data for saving. These changes to core modules are also included in this patch.
* - Patch #12232 by Steven/UnConed: search module improvements.Dries Buytaert2004-10-31
| | | | | | | | | | | | | | | | | | | | | | 1) Clean up the text analyser: make it handle UTF-8 and all sorts of characters. The word splitter now does intelligent splitting into words and supports all Unicode characters. It has smart handling of acronyms, URLs, dates, ... 2) It now indexes the filtered output, which means it can take advantage of HTML tags. Meaningful tags (headers, strong, em, ...) are analysed and used to boost certain words scores. This has the side-effect of allowing the indexing of PHP nodes. 3) Link analyser for node links. The HTML analyser also checks for links. If they point to a node on the current site (handles path aliases) then the link's words are counted as part of the target node. This helps bring out commonly linked FAQs and answers to the top of the results. 4) Index comments along with the node. This means that the search can make a difference between a single node/comment about 'X' and a whole thread about 'X'. It also makes the search results much shorter and more relevant (before this patch, comments were even shown first). 5) We now keep track of total counts as well as a per item count for a word. This allows us to divide the word score by the total before adding up the scores for different words, and automatically makes noisewords have less influence than rare words. This dramatically improves the relevancy of multiword searches. This also makes the disadvantage of now using OR searching instead of AND searching less problematic. 6) Includes support for text preprocessors through a hook. This is required to index Chinese and Japanese, because these languages do not use spaces between words. An external utility can be used to split these into words through a simple wrapper module. Other uses could be spell checking (although it would have no UI). 7) Indexing is now regulated: only a certain amount of items will be indexed per cron run. This prevents PHP from running out of memory or timing out. This also makes the reindexing required for this patch automatic. I also added an index coverage estimate to the search admin screen. 8) Code cleanup! Moved all the search stuff from common.inc into search.module, rewired some hooks and simplified the functions used. The search form and results now also use valid XHTML and form_ functions. The search admin was moved from search/configure to admin/search for consistency. 9) Improved search output: we also show much more info per item: date, author, node type, amount of comments and a cool dynamic excerpt à la Google. The search form is now much more simpler and the help is only displayed as tips when no search results are found. 10) By moving all search logic to SQL, I was able to add a pager to the search results. This improves usability and performance dramatically.
* #7607: Sort node types in node/add by translated names.Steven Wittens2004-10-29
|
* - Patch #11728 by Uwe Hermann: fixed some typos in the code comments, ↵Dries Buytaert2004-10-19
| | | | | | Doxygen documentation and screen output. Uwe: I dropped the 'iff' chunks as 'iff' stands for 'if and only if'.
* - Patch #10664 by TDobes: fixed collapsed comments + updated the code comments.Dries Buytaert2004-10-16
|
* - Modified patch #10613 by killes: generate a 'page not found'-page when a ↵Dries Buytaert2004-10-12
| | | | requested node does not exist. I modified the patch to avoid duplicate 'not found'-checking in the second bulk.
* - Code improvement: removed some redundant code from the node module.Dries Buytaert2004-10-10
|
* - Fixed bug #11405: unchecking the "publish" box in the default workflow ↵Dries Buytaert2004-10-09
| | | | admin page (admin/node/configure/defaults) did not cause the default workflow to change. This was caused by the fact that node_validate() forced the value of the status field to "1".
* - Simplified/reorganized version of patch #9620 by Jeremy: fixed errors when ↵Dries Buytaert2004-10-04
| | | | writing to cache.
* Part of #11280: node_preview() should only generate a teaser if none is ↵Steven Wittens2004-10-04
| | | | present (e.g. provided by a module like excerpt.module).
* Modified version of #10230: Put placement of filter format selector in a ↵Steven Wittens2004-09-28
| | | | module's hands, and move it below the relevant textarea.
* - Patch #10977 by Gerhard: added missing node access controls for RSS feeds.Dries Buytaert2004-09-21
|
* - Patch #10884 by killes: node_access_where_sql() lost a parameter.Dries Buytaert2004-09-20
|
* - Bugfix: it was not possible to delete nodes. Reported by Philippe.Dries Buytaert2004-09-20
|