From 7ce686c152416dc3a240861840f9c18791e38762 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 10 Dec 2002 20:35:20 +0000 Subject: 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 (uid && user_access("post content")) { + if ($user->uid && user_access("maintain personal blog")) { $output .= lm("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 .= ""; 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 .= "
"; 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[] = "link\">". t("visit") .""; @@ -641,7 +641,7 @@ function import_page_bundle($bid) { $output .= "
"; 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."))); -- cgit v1.2.3