From 2952d16f78eea91724760f526504010cb8f796a9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Jan 2001 12:20:31 +0000 Subject: - updated/improved discussion engine: it needs additional fine-tuning though but I think this is stable enough for public consumption and real-life testing. ==> a first big step towards a flexible comment engine. IMPORTANT: - Required theme updatins: UnConeD: check your $theme->controls() as I added a very, very dummy implementation - Required database updates: alter table users modify mode tinyint(1) DEFAULT '' NOT NULL; alter table comments change sid lid int(6) DEFAULT '0' NOT NULL; alter table comments add link varchar(16) DEFAULT '' NOT NULL; update comments set link = 'story'; --- modules/drupal/drupal.module | 99 ++++++++++++++++++++++++++++++-------------- 1 file changed, 69 insertions(+), 30 deletions(-) (limited to 'modules/drupal/drupal.module') diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module index d03a3bc5b..fca8c6119 100644 --- a/modules/drupal/drupal.module +++ b/modules/drupal/drupal.module @@ -2,41 +2,80 @@ $module = array("page" => "drupal_page"); -include "includes/common.inc"; +include_once "includes/common.inc"; +include_once "includes/comment.inc"; -function drupal_page() { - global $theme; - - $output .= " -

Introduction

-

Drupal is the English pronunciation for the Dutch word 'druppel' which stands for 'drop'. Drupal is a full-featured content management/discussion engine suitable to setup a news-driven community or portal site. Drupal aims towards easy installation, excessive configuration and fine-grained maintenance capabilities. Due to its modular design drupal is flexible and easy to adapt or extend.

-

Drupal is primarily written by Dries Buytaert (dries_at_drop.org) and build after Slash (http://slashcode.com/) and Scoop (http://scoop.kuro5hin.org/) and source code is available under terms of GNU General Public License (GPL).

-

Download

-
  • drupal 1.00 (2000/01/15)
  • -
  • drupal 1.00-rc2 (2000/01/08)
  • -
  • drupal 1.00-rc1 (2000/01/01)
  • -

    Screenshots

    - "; +function drupal_render($id, $cid) { + global $theme, $threshold, $mode, $order, $user; + + $output = "

    Drupal is the English pronunciation for the Dutch word 'druppel' which stands for 'drop'. Drupal is a full-featured content management/discussion engine suitable to setup a news-driven community or portal site. Drupal aims towards easy installation, excessive configuration and fine-grained maintenance capabilities. Due to its modular design drupal is flexible and easy to adapt or extend.

    \n"; + $output .= "

    Drupal is primarily written by Dries Buytaert (dries_at_drop.org) and build after Slash (http://slashcode.com/) and Scoop (http://scoop.kuro5hin.org/). The source code is available under terms of GNU General Public License (GPL).

    \n"; + $output .= "

    We don't have a real demo site yet but drupal is used by (and created for) http://drop.org/. Create an account, play with it for a bit, read the documentation and spend some time getting used to it.

    \n"; + $theme->box("Introduction", $output); + + $output = "
  • drupal 1.00 (2000/01/15 - latest version)
  • \n"; + $output .= "
  • drupal 1.00-rc2 (2000/01/08)
  • \n"; + $output .= "
  • drupal 1.00-rc1 (2000/01/01)
  • \n"; + $theme->box("Download", $output); + unset($output); $handle = opendir("drupal"); while ($file = readdir($handle)) if (ereg(".jpg", $file) || ereg(".gif", $file)) $output .= "
  • $file
  • \n"; closedir($handle); + $theme->box("Screenshots", $output); + + $output = "

    Documentation

    \n"; + $output .= "
  • documentation
  • \n"; + $output .= "
  • wishlist
  • \n"; + $output .= "

    Mailing list

    \n"; + $output .= "

    The drupal-support@drop.org list discusses drupal development. All submissions relevant to that, such as bug reports, enhancement ideas, patches or reports that a patch fixed a bug are appropriate.

    \n"; + $output .= "
  • To subscribe to the drupal-support@drop.org mailing list, send an e-mail to drupal-support-request@drop.org with no subject and put subscribe in the body of your message.
  • \n"; + $output .= "
  • To unsubscribe from the drupal-support@drop.org mailing list, send an e-mail to drupal-support-request@drop.org and put unsubscribe in the body of your mail.\n"; + $theme->box("Support and development", $output); + + print "

    Comments

    \n"; + + // Display 'comment control'-box: + if ($user->id) $theme->controls($threshold, $mode, $order); + + // Display comments: + comment_render($id, $cid); +} + +function drupal_page() { + global $cid, $comment, $id, $op, $pid, $lid, $link, $mode, $order, $subject, $theme, $threshold; - $output .= " -

    Demo

    -

    We don't have a real demo site yet but drupal is used by (and created for) http://drop.org/. Create an account, play with it for a bit, read the documentation and spend some time getting used to it.

    -

    Documentation

    -
  • documentation
  • -
  • wishlist
  • -

    Mailing list

    -

    The drupal-support@drop.org list discusses drupal development. All submissions relevant to that, such as bug reports, enhancement ideas, patches or reports that a patch fixed a bug are appropriate.

    -
  • To subscribe to the drupal-support@drop.org mailing list, send an e-mail to drupal-support-request@drop.org with no subject and put subscribe in the body of your message.
  • -
  • To unsubscribe from the drupal-support@drop.org mailing list, send an e-mail to drupal-support-request@drop.org and put unsubscribe in the body of your mail. - "; - - $theme->header(); - $theme->box("Drupal", $output); - $theme->footer(); + switch($op) { + case "Preview comment": + $theme->header(); + comment_preview($pid, $id, $subject, $comment); + $theme->footer(); + break; + case "Post comment": + comment_post($pid, $id, $subject, $comment); + break; + case "reply": + $theme->header(); + comment_reply($pid, $id); + $theme->footer(); + break; + case "Update": + comment_settings($mode, $order, $threshold); + $theme->header(); + drupal_render($id, $cid); + $theme->footer(); + break; + case "Moderate comments": + comment_moderate($moderate); + $theme->header(); + drupal_render($id, $cid); + $theme->footer(); + break; + default: + $theme->header(); + drupal_render(0, $cid); + $theme->footer(); + } } -?> +?> \ No newline at end of file -- cgit v1.2.3