<pre>

# INSTALL for phpwsbusinesses
# $Id: INSTALL,v 1.2 2005/05/19 15:05:28 verdonv Exp $

INSTALL steps for phpwsBusinesses

IMPORTANT: phpwsBusinesses is a module for phpWebSite 0.9.3-2 or better.
 You HAVE to install phpWebSite >= 0.9.3-2 first, phpwsBusinesses will
not work with earlier versions of phpWebSite.

If you don't have phpWebSite installed, first get the latest code here: 
https://sourceforge.net/project/showfiles.php?group_id=15539

Then follow the install instructions found in the INSTALL.txt included
in the docs directory of that download.

Once this is done then you can start installing phpwsBusinesses:

1. Download the .tar.gz from a sourceforge mirror.  (There is also a
   .zip file for windows users.)

2. Unpack the tarball with:
    tar -xvzf module-phpwsbusinesses-*.tar.gz

3. Move the new directory into your phpwebsite mod directory

    Example: If you are installing phpwsBusinesses and your
    phpwebsite doc root is /home/httpd/htdocs/phpwebsite, you could run
    
    mv phpwsbusinesses /home/httpd/htdocs/phpwebsite/mod/phpwsbusinesses

4. Go to your phpWS website and install phpwsBusinesses from Boost.

   CUSTOM: By default, a link is not placed in the user settings tab of
   the user control panel. If you wish a link to be installed here when
   you boost, go to /mod/phpwsbusinesses/conf/controlpanel.php and
   uncomment the 2nd \$link[] before you boost phpwsBusinesses.

   NOTE: If you are on a server with php SAFE_MODE=ON , you may need to
   create this module's image directory manually. Be sure it is writable
   by the webserver. The following directory is required for this
   module:
   /images/phpwsbusinesses
   This module will also create directories in the following manner for
   each individual user who owns a phpwsbusinesses record:
   /images/phpwsbusinesses/username

5. CUSTOM - Optional integration with users mod

   If you wish to integrate this mod with the phpwebsite users mod, so
   that new users signing up to your website are immediately directed
   to filling out thier business profile, do the following steps in
   /mod/users/class/Users.php
   
   1) around line 720, look for...
      if ($user_signup=='hold'){
      $this->RSVP($username, $email);
         
   2) just below that add...
      // added for phpwsbusinesses
      setcookie("app_name", $username, time()+600); // will expire in 10 minutes
      
   3) then edit the next line...
      $GLOBALS["CNT_user"]["content"] = $_SESSION["translate"]->it("Your request is being reviewed").".";
   
   4) so that it looks like this...
      // link added for phpwsbusinesses
      $GLOBALS["CNT_user"]["content"] = $_SESSION["translate"]->it("Your request is being reviewed. <a href=\"index.php?module=phpwsbusinesses&BUSINESSES_MAN_OP=addAppl\">Click here to complete your business profile.</a>").".";


</pre>
