From 41547a199fe157d80996eb426bb498d540541488 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 2 Dec 2013 14:34:04 -0800 Subject: [PATCH] Improving end of install messages --- install/index.php | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/install/index.php b/install/index.php index d70c360066..c6b46082ac 100644 --- a/install/index.php +++ b/install/index.php @@ -1061,6 +1061,12 @@ class Installer extends InstallRequirements { if (!$this->errors) { global $installType, $installURLPath; + $registerSiteURL = "http://civicrm.org/civicrm/profile/create?reset=1&gid=15"; + $commonOutputMessage = " +
  • Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to fill out the site registration form. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check Keep in Touch to receive technical updates (a low volume mailing list).
  • +
  • We have integrated KCFinder with CKEditor and TinyMCE. This allows a user to upload images. All uploaded images are public.
  • +"; + $output = NULL; if ( $installType == 'drupal' && @@ -1086,12 +1092,10 @@ class Installer extends InstallRequirements { $drupalURL = civicrm_cms_base(); $drupalPermissionsURL = "{$drupalURL}index.php?q=admin/people/permissions"; $drupalURL .= "index.php?q=civicrm/admin/configtask&reset=1"; - $registerSiteURL = "http://civicrm.org/civicrm/profile/create?reset=1&gid=15"; $output .= "
  • Drupal user permissions have been automatically set - giving anonymous and authenticated users access to public CiviCRM forms and features. We recommend that you review these permissions to ensure that they are appropriate for your requirements (learn more...)
  • Use the Configuration Checklist to review and configure settings for your new site
  • -
  • Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to fill out the site registration form. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check Keep in Touch to receive technical updates (a low volume mailing list).
  • -
  • We have integrated KCFinder with CKEditor and TinyMCE, which enables user to upload images. Note that all the images uploaded using KCFinder will be public.
  • "; + {$commonOutputMessage}"; // automatically enable CiviCRM module once it is installed successfully. // so we need to Bootstrap Drupal, so that we can call drupal hooks. @@ -1157,12 +1161,10 @@ class Installer extends InstallRequirements { $drupalURL = civicrm_cms_base(); $drupalPermissionsURL = "{$drupalURL}index.php?q=admin/user/permissions"; $drupalURL .= "index.php?q=civicrm/admin/configtask&reset=1"; - $registerSiteURL = "http://civicrm.org/civicrm/profile/create?reset=1&gid=15"; $output .= "
  • Drupal user permissions have been automatically set - giving anonymous and authenticated users access to public CiviCRM forms and features. We recommend that you review these permissions to ensure that they are appropriate for your requirements (learn more...)
  • Use the Configuration Checklist to review and configure settings for your new site
  • -
  • Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to fill out the site registration form. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check Keep in Touch to receive technical updates (a low volume mailing list).
  • -
  • We have integrated KCFinder with CKEditor and TinyMCE, which enables user to upload images. Note that all the images uploaded using KCFinder will be public.
  • "; + {$commonOutputMessage}"; // explicitly setting error reporting, since we cannot handle drupal related notices error_reporting(1); @@ -1202,15 +1204,18 @@ class Installer extends InstallRequirements { $cmsURL = civicrm_cms_base(); $cmsURL .= "wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/configtask&reset=1"; - $registerSiteURL = "http://civicrm.org/civicrm/profile/create?reset=1&gid=15"; - - echo "
  • Use the Configuration Checklist to review and configure settings for your new site
  • -
  • Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to fill out the site registration form. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check Keep in Touch to receive technical updates (a low volume mailing list).
  • -
  • We have integrated KCFinder with CKEditor and TinyMCE, which enables user to upload images. Note that all the images uploaded using KCFinder will be public.
  • "; - echo ''; - echo ''; - } - } + $wpPermissionsURL = "wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/access/wp-permissions&reset=1"; + + $output .= " +
  • WordPress user permissions have been automatically set - giving Aanonymous and Subscribers access to public CiviCRM forms and features. We recommend that you review these permissions to ensure that they are appropriate for your requirements (learn more...)
  • +
  • Use the Configuration Checklist to review and configure settings for your new site
  • + {$commonOutputMessage} +"; + + echo ''; + echo ''; + } + } return $this->errors; } -- 2.25.1