From 6f628a4079f3346376e3d98773c9b5cf6e3e0bdc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 May 2006 08:38:11 +0000 Subject: - Patch #60358 by webchick: improved welcome message. --- modules/node.module | 37 ++++++++++++++++++++++++++++++------- modules/node/node.module | 37 ++++++++++++++++++++++++++++++------- 2 files changed, 60 insertions(+), 14 deletions(-) (limited to 'modules') diff --git a/modules/node.module b/modules/node.module index ab6ae83e1..6e4835056 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1661,7 +1661,7 @@ function node_form_array($node) { function node_form_add_preview($form) { global $form_values; - + $op = isset($_POST['op']) ? $_POST['op'] : ''; if ($op == t('Preview')) { drupal_validate_form($form['form_id']['#value'], $form); @@ -1954,12 +1954,35 @@ function node_page_default() { $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); } else { - $output = t(" -

Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupal, and will disappear once you have posted your first piece of content.

-

The first thing you will need to do is create the first account. This account will have full administration rights and will allow you to configure your website. Once logged in, you can visit the administration section and set up your site's configuration.

-

Drupal comes with various modules, each of which contains a specific piece of functionality. You should visit the module list and enable those modules which suit your website's needs.

-

Themes handle the presentation of your website. You can use one of the existing themes, modify them or create your own from scratch.

-

We suggest you look around the administration section and explore the various options Drupal offers you. For more information, you can refer to the Drupal handbooks online.

", array('%drupal' => 'http://drupal.org/', '%register' => url('user/register'), '%admin' => url('admin'), '%config' => url('admin/settings'), '%modules' => url('admin/modules'), '%themes' => url('admin/themes'), '%handbook' => 'http://drupal.org/handbooks')); + $output = t(' +

Welcome to your new Drupal website!

+

Please follow these steps to set up and start using your website:

+
    +
  1. + Create your administrator account + To begin, create the first account. This account will have full administration rights and will allow you to configure your website. +
  2. +
  3. + Configure your website + Once logged in, visit the administration section, where you can customize and configure all aspects of your website. +
  4. +
  5. + Enable additional functionality + Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section. +
  6. +
  7. + Customize your website design + To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section. +
  8. +
  9. + Start posting content + Finally, you can create content for your website. This message will disappear once you have published your first post. +
  10. +
+

For more information, please refer to the Help section, or the online Drupal handbooks. You may also post at the Drupal forum, or view the wide range of other support options available.

', + array('%drupal' => 'http://drupal.org/', '%register' => url('user/register'), '%admin' => url('admin'), '%config' => url('admin/settings'), '%modules' => url('admin/modules'), '%download_modules' => 'http://drupal.org/project/modules', '%themes' => url('admin/themes'), '%download_themes' => 'http://drupal.org/project/themes', '%content' => url('node/add'), '%help' => url('admin/help'), '%handbook' => 'http://drupal.org/handbooks', '%forum' => 'http://drupal.org/forum', '%support' => 'http://drupal.org/support') + ); + $output = '
'. $output .'
'; } return $output; diff --git a/modules/node/node.module b/modules/node/node.module index ab6ae83e1..6e4835056 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1661,7 +1661,7 @@ function node_form_array($node) { function node_form_add_preview($form) { global $form_values; - + $op = isset($_POST['op']) ? $_POST['op'] : ''; if ($op == t('Preview')) { drupal_validate_form($form['form_id']['#value'], $form); @@ -1954,12 +1954,35 @@ function node_page_default() { $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); } else { - $output = t(" -

Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupal, and will disappear once you have posted your first piece of content.

-

The first thing you will need to do is create the first account. This account will have full administration rights and will allow you to configure your website. Once logged in, you can visit the administration section and set up your site's configuration.

-

Drupal comes with various modules, each of which contains a specific piece of functionality. You should visit the module list and enable those modules which suit your website's needs.

-

Themes handle the presentation of your website. You can use one of the existing themes, modify them or create your own from scratch.

-

We suggest you look around the administration section and explore the various options Drupal offers you. For more information, you can refer to the Drupal handbooks online.

", array('%drupal' => 'http://drupal.org/', '%register' => url('user/register'), '%admin' => url('admin'), '%config' => url('admin/settings'), '%modules' => url('admin/modules'), '%themes' => url('admin/themes'), '%handbook' => 'http://drupal.org/handbooks')); + $output = t(' +

Welcome to your new Drupal website!

+

Please follow these steps to set up and start using your website:

+
    +
  1. + Create your administrator account + To begin, create the first account. This account will have full administration rights and will allow you to configure your website. +
  2. +
  3. + Configure your website + Once logged in, visit the administration section, where you can customize and configure all aspects of your website. +
  4. +
  5. + Enable additional functionality + Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section. +
  6. +
  7. + Customize your website design + To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section. +
  8. +
  9. + Start posting content + Finally, you can create content for your website. This message will disappear once you have published your first post. +
  10. +
+

For more information, please refer to the Help section, or the online Drupal handbooks. You may also post at the Drupal forum, or view the wide range of other support options available.

', + array('%drupal' => 'http://drupal.org/', '%register' => url('user/register'), '%admin' => url('admin'), '%config' => url('admin/settings'), '%modules' => url('admin/modules'), '%download_modules' => 'http://drupal.org/project/modules', '%themes' => url('admin/themes'), '%download_themes' => 'http://drupal.org/project/themes', '%content' => url('node/add'), '%help' => url('admin/help'), '%handbook' => 'http://drupal.org/handbooks', '%forum' => 'http://drupal.org/forum', '%support' => 'http://drupal.org/support') + ); + $output = '
'. $output .'
'; } return $output; -- cgit v1.2.3