diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-10 20:35:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-10 20:35:20 +0000 |
commit | 7ce686c152416dc3a240861840f9c18791e38762 (patch) | |
tree | f771ce209303d39fed6915d1f90d5fc0030e3f23 /modules/aggregator | |
parent | eceead1819b8e480725db17816d1b2af4f3fd768 (diff) | |
download | brdo-7ce686c152416dc3a240861840f9c18791e38762.tar.gz brdo-7ce686c152416dc3a240861840f9c18791e38762.tar.bz2 |
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.
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 2c640cc4f..7c147a10a 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -57,7 +57,7 @@ function import_update() { function import_format_item($item, $feed = 0) { global $theme, $user; - if ($user->uid && user_access("post content")) { + if ($user->uid && user_access("maintain personal blog")) { $output .= lm("<img src=\"". $theme->image("blog.gif") ."\" border=\"0\" width=\"12\" height=\"16\" alt=\"". t("Blog this item") ."\" />", array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog."))); } @@ -568,7 +568,7 @@ function import_page_last() { $output .= "<table border=\"0\" cellpadding=\"4\" cellspacing=\"2\">"; while ($item = db_fetch_object($result)) { - if (module_exist("blog") && user_access("post content")) { + if (module_exist("blog") && user_access("maintain personal blog")) { $links[] = lm(t("blog it"), array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog."))); } $links[] = lm(t("feed"), array("mod" => "import", "op" => "feed", "id" => $item->fid), "", array("title" => t("Read more syndicated news from this feed."))); @@ -604,7 +604,7 @@ function import_page_feed($fid) { $output .= "<table border=\"0\" cellpadding=\"4\" cellspacing=\"2\">"; while ($item = db_fetch_object($result)) { - if (module_exist("blog") && user_access("post content")) { + if (module_exist("blog") && user_access("maintain personal blog")) { $links[] = lm(t("blog it"), array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog."))); } $links[] = "<a href=\"$item->link\">". t("visit") ."</a>"; @@ -641,7 +641,7 @@ function import_page_bundle($bid) { $output .= "<table border=\"0\" cellpadding=\"4\" cellspacing=\"2\">"; while ($item = db_fetch_object($result)) { - if (module_exist("blog") && user_access("post content")) { + if (module_exist("blog") && user_access("maintain personal blog")) { $links[] = lm(t("blog it"), array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog."))); } $links[] = lm(t("feed"), array("mod" => "import", "op" => "feed", "id" => $item->fid), "", array("title" => t("Read more syndicated news from this feed."))); |