/[drupal]/contributions/modules/project_issue_file_review/INSTALL.txt
ViewVC logotype

Diff of /contributions/modules/project_issue_file_review/INSTALL.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Tue Sep 30 21:59:32 2008 UTC revision 1.3, Wed Oct 1 01:13:50 2008 UTC
# Line 1  Line 1 
1  // $Id: INSTALL.txt,v 1.1 2008/09/30 21:53:50 boombatower Exp $  // $Id: INSTALL.txt,v 1.2 2008/09/30 21:59:32 boombatower Exp $
2    
3  AUTHOR  AUTHOR
4  ------  ------
# Line 6  Jimmy Berry ("boombatower", http://drupa Line 6  Jimmy Berry ("boombatower", http://drupa
6    
7  PRE-INSTALLATION NOTES  PRE-INSTALLATION NOTES
8  ----------------------  ----------------------
9  Only perform steps 1-3 on a slave server. If the server will act as the project  Only perform steps 1-2 on a slave server. If the server will act as the project
10  or testing master server then don't bother. Of course if the server acts as any  or testing master server then don't bother. Of course if the server acts as any
11  combination of the three roles that includes a slave you need to perform those  combination of the three roles that includes a slave you need to perform those
12  steps.  steps.
13    
14  INSTALLATION  INSTALLATION
15  ------------  ------------
16  1.  Download SimpleTest 6.x-2.4 and make the following change to  1.  Download SimpleTest 6.x-2.4 and make the following change to remove the
17      drupal_web_test_case.php, method getAbsoluteUrl($path):      notices generated by Drupal HEAD during installation. In curlConnect()
18        change the CURLOPT_USERAGENT from $db_prefix to 'pifr' instead of the
19      else {      check for $db_prefix and all.
       // Use current URL's host.  
       $options['external'] = TRUE;  
       $base = parse_url($this->getUrl());  
       if (!empty($base['host'])) {  
         $path = $base['schema'] . $base['host'] . '/checkout/' . $path;  
       }  
     }  
   
     The resulting method should look something like the following:  
   
     function getAbsoluteUrl($path) {  
       $options = array('absolute' => TRUE);  
       $parts = parse_url($path);  
       // This is more crude than the menu_is_external but enough here.  
       if (empty($parts['host'])) {  
         $path = $parts['path'];  
         $base_path = base_path();  
         $n = strlen($base_path);  
         if (substr($path, 0, $n) == $base_path) {  
           $path = substr($path, $n);  
         }  
         else {  
           // Use current URL's host.  
           $options['external'] = TRUE;  
           $base = parse_url($this->getUrl());  
           if (!empty($base['host'])) {  
             $path = $base['schema'] . $base['host'] . '/checkout/' . $path;  
           }  
         }  
         if (isset($parts['query'])) {  
           $options['query'] = $parts['query'];  
         }  
         $path = url($path, $options);  
       }  
       return $path;  
     }  
   
     Don't attempt to use the modified SimpleTest 6.x-2.4 for general testing.  
     The modificate is specfic to this module.  
   
 2.  Make the following change to remove the notices generated by Drupal HEAD  
     during installation. In curlConnect() change the CURLOPT_USERAGENT from  
     $db_prefix to 'pifr' instead of the check for $db_prefix and all.  
20    
21      if (preg_match('/simpletest\d+/', $db_prefix)) {      if (preg_match('/simpletest\d+/', $db_prefix)) {
22        $curl_options[CURLOPT_USERAGENT] = $db_prefix;        $curl_options[CURLOPT_USERAGENT] = $db_prefix;
# Line 69  INSTALLATION Line 26  INSTALLATION
26    
27      $curl_options[CURLOPT_USERAGENT] = 'pifr';      $curl_options[CURLOPT_USERAGENT] = 'pifr';
28    
29  3.  Enable the SimpleTest module.      Don't attempt to use the modified SimpleTest 6.x-2.4 for general testing.
30        The modification is specfic to this module.
31    
32    2.  Enable the SimpleTest module.
33    
34  4.  Create a symbolic link in the root of the Drupal installation to the site  3.  Create a symbolic link in the root of the Drupal installation to the site
35      files directory to the "checkout" directory which should have been created      files directory to the "checkout" directory which should have been created
36      when you enable this module. If you create the directory manually you need      when you enable this module. If you create the directory manually you need
37      to make sure that Drupal (the server user) has access to delete the      to make sure that Drupal (the server user) has access to delete the
# Line 80  INSTALLATION Line 40  INSTALLATION
40    
41      ln -s ./sites/[site_folder]/files/checkout .      ln -s ./sites/[site_folder]/files/checkout .
42    
43  5.  Go to Administer >> Site configuration >> PIFR (admin/settings/pifr) and  4.  Go to Administer >> Site configuration >> PIFR (admin/settings/pifr) and
44      set the server's roles.      set the server's roles.
45    
46  6.  To see what pages PIFR provides view /pifr in your browser.  5.  To see what pages PIFR provides view /pifr in your browser.

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2