summaryrefslogtreecommitdiff
path: root/modules/page.module
Commit message (Collapse)AuthorAge
...
* - bug fixes:Kjartan Mannes2002-04-22
| | | | | | | | | | * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch.
* - Applied Marco's big patch, including contributions from Moshe:Dries Buytaert2002-04-20
| | | | | | | | | | | | | | | | | | | | | | + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ...
* - Added Marco's long-awaited taxonmy module and patches - a replacementDries Buytaert2002-04-14
| | | | | | | | | | | | | | | | | | | for the meta system. The patches add some extra functionality to the comment system (for example, comments can be set read-only) and fix a couple of small problems. + I integrated the required SQL updates from the varius *.mysql files into the "update.php" script. Upgrading should be easy ... + I did not apply/commit the "user.diff" as requested by Marco ... + I didn't know what to do with "forum.module" and "forum2.module": what do you want me to do with it Marco? Which one should go in? + Can we remove "node_index()" now; both from "node.module" and the themes? + Thanks Marco!
* - my editor got set up to insert tabs instead of spaces. Cleaning up.Kjartan Mannes2002-04-05
|
* - page node's can now be promoted to the front page and the abstract willKjartan Mannes2002-03-19
| | | | show instead of the whole content.
* - fixing some access issues.Kjartan Mannes2002-03-09
|
* - Included the documentation contributed by Moshe.Dries Buytaert2002-02-25
|
* - Made the calendar module accept a $date parameter such that youDries Buytaert2002-01-31
| | | | | | | | | | | | | | | | | | | | | | can jump directly to a certain date in the archives. Also made the calendar link to itself such that it is self-contained. - Code beautifications: quoted a lot of arrays, removed dead code and simplified a few things. - Replaced the Calendar class by one function "calendar_display": using a class (or class instance, or object) doesn't make sense in the archives' case. - Renamed "calendar.module" to "archive.module". - Fixed a /problem/ with node settings not always being saved like expected. - Reorganized the user menu: renamed a couple of links for clarity and structure. - Fixed a few typos.
* - Fixed typo.Dries Buytaert2001-12-15
|
* - Bugfix: don't display links that point to hidden/disabled pages.Dries Buytaert2001-12-15
|
* - node system:Dries Buytaert2001-12-08
| | | | | | | | + made a small change in the node overview page in the admin section such that it lists both new and updated pages by default. + reworked the filter-mechanism: it is not 100% finished yet but it sure is taking shape.
* - Fixed small form glitches.Dries Buytaert2001-12-08
|
* - book.module:Dries Buytaert2001-12-06
| | | | | | | | | | | | | | | | | | | + Added (1) support for "PHP pages" (dynamic pages), and (2) made it possible to link other node types into the book's tree/outline. It works just fine, yet the only (obvious) downside of (2) is that the navigation tree/links gets "interrupted" when you view non-book pages in the book. [SQL update required, see update.php] + Tidied up the book table. [SQL update required, see update.php] - various updates: + Fine-tuned the new node system. + Updated the inline/code documentation. + Improved teaser handling of all node types. + Made several small usability improvements to the node admin pages.
* - Removed Windows line feeds ...Dries Buytaert2001-12-05
|
* - fixed pass by reference errors. PHP only allows declaration of &$vars, notKjartan Mannes2001-11-26
| | | | | passing them that way. For more info: http://no.php.net/manual/en/language.references.pass.php
* - A couple of new node updatesDries Buytaert2001-11-12
|
* - node modules:Dries Buytaert2001-11-12
| | | | | | | | | | + made some improvements to the node access checks - queue module: + form()-ified the queue module and added some extra information or guidelines + added a few missing translations + ...
* - node system:Dries Buytaert2001-11-07
| | | | | | | | | | | | + Added the "delete node"-link: apparently it got lost during the last commit. Odd. + Changed "Edit node" to "Edit <node_name>" on the 'edit node'-page of the admin section. (There a 4 "Node"s that still need to be removed though.) + Updated the initial submission page (the old submit.php) to include some descriptions.
* - Made the node forms support "help texts": it is not possible to configureDries Buytaert2001-11-03
| | | | | | | | | | | | | | | | | | | | | | | Drupal to display submission guidelines, or any other kind of explanation such as "NO TEST POSTS", for example. - Added node versioning: it is possible to create revisions, to view old revisions and to roll-back to older revisions. You'll need to apply a SQL update. I'm going to work on the book module now, so I might be changing a few things to enable collaborative, moderated revisions - but feel free to send some first feedback, if you like. - Added some configuration options which can be used to set the minimum number of words a blog/story should consist of. Hopefully this will be usefull to stop the (almost empty) test blogs. - Various improvements: + Fine-tuned new node permission system. + Fine-tuned the functions in node.inc. + Fine-tuned some forms. + XHTML-ified some code.
* - Added error handling support to the <node>_form hook.Dries Buytaert2001-11-01
|
* - Another batch of updates/improvements:Dries Buytaert2001-11-01
| | | | | | | | | | | | | | | + introduced basic node permissions ("create", "delete", "update" and "view") at the node level: it's up to the "<$node->type>_module" to hide gory details (if any). + made the "blog it"-feature in the blog and import module work with the new node system, in specific with the new centralized forms. + made it possible to update blogs. + made the page module work with the new node system. + various smaller improvements.
* - A large batch of updates, amongst them a rewritten node system. MoreDries Buytaert2001-11-01
| | | | information available on the mailing list.
* - added the CVS keyword $Id$ to all files to make future version trackingKjartan Mannes2001-10-20
| | | | easier. Also changed the <? tag to <?php in some cases.
* - Removed a node's link ID (lid) as discussed on the mailing list. SeeDries Buytaert2001-10-16
| | | | | | | | | | | | | | 'updates/3.00-to.x.xx.mysql' for the required MySQL updates. - Renamed some "author" fields to "uid" fields for sake of consistency. - Fixed the coding style of some PHP files. - Fixed the moderation queue (fairly untested though). - Re-introduced the temporary SQL table in _node_get(). - Added a missing 'auto_increment' to 'updates/3.00-to-x.xx.mysql'.
* - Small improvement: quoted all strings when used as an array index.Dries Buytaert2001-10-14
|
* - Quote string tables indexes (patch by Mike Krus).Dries Buytaert2001-10-14
|
* - fixed small glitch in node_del()Dries Buytaert2001-09-28
| | | | | | | | | | | | | | | | | | | | | - fixed small glitch in comment_del() - changed the API of the form() function. The first parameter, the "action"-attribute in the <form>-tag has been made optional. By default, it will be set to "$REQUEST_URI". Why? Because in 98% of the cases we would do: global $REQUEST_URI; $form = form($REQUEST_URI, $form_content); while we can do: $form = form($form_content); now. Update your modules (and sorry for the inconvenience)!
* - Added the new user module!Dries Buytaert2001-09-16
|
* - Changed the authentication and login scheme as discussed on the mailingDries Buytaert2001-08-11
| | | | | | list. - Fixed the export function in book.module (patch my Julian). - Fixed the comment alignment (comments got truncated).
* account.phpKjartan Mannes2001-07-24
| | | | | | | | | | - real name is now shown to all users. page.module - improved the locale support. comment.inc - added a wrapper table for comment_thread_max() as suggested by nick.
* page.moduleKjartan Mannes2001-07-20
| | | | - removed access checking for links.
* page.moduleKjartan Mannes2001-07-17
| | | | | | | | | | | | - added a links option so pages can be displayed on the links of the site in an easy way. (Requires an SQL update.) - made HTML and text type pages be $theme->box()ed again. - made the page body hidden in a comment during editing, in case things crash you should still be able to retrieve your code. Will keep working on a better solution. node.module - made all node types be listed in the node listings.
* - Fixed bug in page.module:Dries Buytaert2001-07-07
| | | | | | | | + PHP-pages were rendered invalid under certain criteria. - Fixed bug in meta.module: + When editing an existing node, the meta-field was not properly set in the forms.
* - Added a brand-new access.module which allows you to manage 'roles'Dries Buytaert2001-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | (groups) and 'permissions' ... (inspired by Zope's system). + Once installed, click the help-link for more information. + See updates/2.00-to-x.xx.sql for the SQL updates. - Modified loads of code to use our new access.module. The system still has to mature though: new permissions have to be added and existing permissions need stream-lining. Awaiting suggestions. - As a direct result of the new access system, I had to rewrite the way the top-level links in admin.php are rendered and displayed, and xhtml-ified admin.php while I was at it. TODO - Home-brewed modules need updating, home-brewed themes not. (Examples: file.module, trip_link.module) - As soon we *finished* the refactoring of the user system (KJ has been working on this refactoring already) we should consider to embed this role and permission code into account.module ...
* This a rather large commit that needs a lot of fine-tuning. If youDries Buytaert2001-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update, you'll break your site as you need switching from structure to index.module: so this can be considered an intermediate commit. If you upgrade, and you are welcome to, just create a collection called "section" (for now) and assign your nodes some attributes in the described format. Feedback and bugreports are welcomed. Questions will be answered. CHANGES: - comment system: + when replying to a node (rather then to a comment), that node is displayed above the reply form. + when replying to a comment (rather then to a node), that comment is displayd above the reply form. - removed structure.inc, removed structure.module. - node.inc: + added 2 new node functions called 'node_attribute_edit()' and 'node_attribute_save()' used to 'hook in' any indexing system including your home-brewed stuff if you'd want to. Currently, index.module is the facto default index system. See story.module for usage. - book.module, story.module, poll.module, page.module, forum.module: + added preview functionality to administration section (via node module). + removed all references to structure.inc (category, topic). - moderate.module: + removed all references to structure.inc (category, topic). - book.module, story.module, page.module, forum.module: + increased the sizes of some textareas. - submit.php: + removed all references to structure.inc (category, topic). - marvin.theme: + removed dead code: function story() was depricated. - unconed.theme: + removed hardcoded references to drop.org. - marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme: + removed all references to structure.inc (category, topic). TODO: - file.module, trip_link.module: + update preview functionality: see story.module for example. + remove references to 'cid' and 'tid', use 'attribute' instead: see story.module for example. - extend and build upon index.module as well as making it configurable
* - page.module:Dries Buytaert2001-06-10
| | | | | | | + we no longer wrap the output in a $theme->box(). If you want it in a box, just use $theme->box(). + increased the sizes of the main "body"-form to make editing larger pages easier.
* CHANGES:Dries Buytaert2001-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added improved node scheduler: + Automatically post node at date 'xx/xx/xx, xx:xx'. + Automatically queue node at date 'xx/xx/xx, xx:xx'. + Automatically dump node at date 'xx/xx/xx, xx:xx'. Requires a database update, see ./updates/2.00-to-x.xx.sql! - Refactored the admin interface of node.module. It is only a start but it should show the direction we are going. + The new interface is easier to extend with new functionality and operations. New "edit xxx" links can easily be added on our way. + The new interface tries to cover all content- or node-related functions. Thus making a special admin interface for each new node type redundant. To demonstrate this, I removed the admin hook from page.module and forum.module. This removes quite a bit of logic from the invidual modules which is a good sign if you ask me. A centralized GUI or interface covering all node-related administration should make Drupal easier to administer. TODO: - All node-related nodes need updating. This should be trivial and I'll hapilly tackle this later tonight. - There will be bugs, and I'm still working on this but I would like to get some feedback (from Natrak et all) on both user-friendliness and usability of this new interface. I'm still working on it as we speak ...
* - Moved most of the options in structure.module to node.module. TheDries Buytaert2001-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | structure.module either needs work, or replacement by index.module: see "admin > node > node settings". It will do for now and it can always made better when we can think of a better solution; it is the best I could think of. Now what? index.module or structure.module? I'm currently pro index.module. - Drastically simplified "variable.inc". - Removed most dependecies on structure.module from all content related modules. Thus making our modules more modular. ;) - Fixed calculation glitch in queue.module. - Fixed potential function name clash/conflict in rating.module, and simplified some code on my way. - Started removing all global variables $status and $rstatus. Global variables are "yucky" so in near future, we will replace all global $status variables by a call to node_status(). Originally, $status was only introduced as a temporary hack and nothing is as permanent as a temporary hack so I took it out when still possible. - Changed the watchdog messages a bit.
* - Rewrote the headline module from scratch. Note that the oldDries Buytaert2001-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | headline code is still in place 'till the new code has proven to be stable. See "syndication.module" for the new code. Changes: + Improved the parser and tested it against RSS 0.9, RSS 0.91, RSS 0.92, RSS 1.0, RDF and XML feeds. + Improved the administration interface. It might be a bit fuzzy at first. Maybe some native English like Julian, Michael (or any one else with knowledge in the field) can help out by suggesting better naming, terminology or descriptions - as well as by writing the help section for this module? I'd have no idea how much this would be appreciated. + We can *easily* recognize new tags or extensions: we parse out "link", "title", "description" and "author" right now, but we will have to revise which tags to support and which not. New tags can be added in less than 10 minutes (if you are familiar with the code). Read: we have something we can build on. + Within each item, tags can now appear is random order which is or was not the case with the old headline code where we expect <link>s prior to <description>s for example. + Feed updates only (ie. always) happen through cron. Neither do we use one global cron for updating all feeds; instead, every feed can specify his own update-interval. + Newly fetched headlines are "appended" to the pool of existing headlines (read: we don't replace the whole feed), and headlines automatically "expire" after x days or hours. (Every headline has a timestamp.) + Got rid of backend.class; it is integrated in the module. + Switched to more generic names: "headline" became "item" and "backend" became "feed". This should ease future non-headline oriented syndication. + You can associate attributes or keyword lists with every feed. At the moment new items will automatically inherit their feeds attributes but in future we can use heuristics to make these attributes "mutate" when and where we see fit. The attributes can be maintained by hand as well. + We don't export any blocks yet; we will soon do as soon this new code has been tested for a bit more. We will only export bundles though so if you want to export by feed/source, you will have to make a source-specific bundle. - Polished a bit on a few other modules: nothing major.
* - Changed the node_get_object() and node_get_array() functions to allow ↵Steven Wittens2001-05-20
| | | | | | | | multiple conditions - Added the "delete" hook for node-modules. When called, a module should do additional clean-up if necessary. - Updated all node-modules
* - Created 2 new functions:Dries Buytaert2001-05-15
| | | | | | | | | | | | | | | | | | | | | + path_uri(): returns the fully-qualified URI of your drupal site. + path_img(): returns the image directory or http://image-server.com/ in case you prefer to load-balance bandwidth usage. Replaced all occurences of the variable "site_url" with path_uri() and removed "site_url" from "setting.module". - Drastically simplified the node_save() API, which should make the node-forms more secure. Updated "story.module", "book.module", "forum.module", "page.module" and "node.module" to reflect this change. This is needs more testing so hit it, beat it, tease it. - Fixed an occasional glitch in the configuration file loading logic. - Made "queue.module" display an informative notice when an anonymous user tries accessing the moderation queue. - Updated the hard-coded information in drupal.module a bit.
* - Renamed "hostname.conf" to "setting.php" (cfr. "setting.module").Dries Buytaert2001-05-14
| | | | | | | | | | | | | Note that - when upgrading - you have to rename all your existing configuration files to reflect this change: yourdomain.com.conf -> yourdomain.com.php By default, i.e. if no configuration file is found, setting.php will be used instead. Using the ".php"-extension will fix most configuration/security issues with .htaccess-files ... - Removed some dead code from forum.module.
* - Fixed a problem with $format not being defined as global.Kjartan Mannes2001-05-14
|
* - Fixed a problem with $format not being defined as global.Kjartan Mannes2001-05-14
|
* - Uhm. Rewrote the module system: less code clutter, less run-timeDries Buytaert2001-05-05
| | | | | | | | | | | | | | | | | | | | overhead, and a lot better (simpler) module API. I had to edit a LOT of files to get this refactored but I'm sure it was worth the effort. For module writers / maintainers: None of the hooks changed, so 95% of the old modules should still work. You can remove some code instead as "$module = array(...)" just became obsolete. Also - and let's thank God for this - the global variable "$repository" has been eliminated to avoid modules relying on, and poking in drupal's internal data structures. Take a look at include/module.inc to investigate the details/changes. - Improved design of the content modules "story", "book" and "node" (to aid smooth integration of permisions + moderate.module). I'm still working on the permissions but I got side tracked for which I "Oops!".
* CHANGES:Dries Buytaert2001-05-03
| | | | | | | | - Added moderator information to forum.module. - Simplified story.module, page.module, forum.module and book.module by removing redundant code, and by doing other small house-keeping tasks.
* CHANGES:Dries Buytaert2001-05-02
| | | | | | | | | | | | | | | | | | | | - Added moderator permissions to nodes. - Added moderator support to structure.module. - Added new moderate.module. - Renamed moderation.module to queue.module to avoid confusing. Updated theme yaroon as it seems to have a hard-coded reference to moderation.module. - Polished on: + account.module: improved access list + fixed HTML typo in node.module ACTIONS: - Jeroen: can jeroen2.theme be removed from ./themes/yaroon?
* Welp. Large commit ahead.Dries Buytaert2001-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CHANGES: - Added "read" and "write" permissions into drupal but removed it again because - when finished after 3 hours of work - it was considered nothing but added complexity that didn't buy us anything. :I (I'll explain this in detail on the mailing list, I guess.) - Added a very simple help.module to group all available documentation on a single page. - Fixed bug in node_control(), book.module: UnConeD forgot to global $user when updating the combobox code. - Removed static wishlist.module: in future, the wishlist can be maintained as a page in our collaborative book. - Revised most of settings.module: tidied up the code and the descriptions to accompany the settings and introduced a new "default maximum number of nodes to display on the main page" variable. - Revised most of comment.module: the administration interface looks better now, integrated node permissions, and -finally- made it possible to delete comments. - Polished on: + account.module + structure.module + locale.module + module.module + forum.module - Form-ified: + account.php + account.module + setting.module + cvs.module + submit.php + comment.module + forum.module + book.module + page.module + locale.module - Updated CHANGELOG INFO: - Designed a "generic tracker system with optional backends" on paper. The idea is to allow registered users to hot-list certain topics, individual nodes or threads (comments) and to "plug-in" output backends like - for instance - an e-mail digest. The design requires "intelligent blocks" though. TODO: - I want to tidy up the headline.module and backend.class as well as merge in headlineRSS10.module. Julian spent quite some time working on headline.module but I'm not sure what he changed and whether he'd contribute it back?
* - Addition: added a new, tiny forum module: I will use this forumDries Buytaert2001-04-29
| | | | | | | | | | | | module to develop and test the permission system along with the regular nodes. And hopefully, this forum module will grow into a very useable piece of code for drop.org. Requires a new SQL table "forum", see 2.00-to-x.xx.sql. - Removed 1 unused hook from page.module. - Removed 1 unused function from comment.inc.
* - Addition: added a "promote" field to the node table, whichDries Buytaert2001-04-21
| | | | | | | | | | | | | | | | | | makes "promoting nodes" to the main page possible. Stories and reviews could be promoted by default, but - on accasion a good book entry could be manually promoted too. Thus all existing content types can be shown on the main page, not just stories. Requires a SQL update, see 2.00-to-x.xx.sql! - Addition: implemented "auto-post new submissions" feature to disable or by-pass the moderation queue in addition to "moderate new submissions". TODO: admin moderation versus registered user moderation. - Addition: added category and topic support to page.module.