Copyright (c) 2003-2006 Barnraiser. All rights reserved.
http://www.barnraiser.org/

 
>> WHO SHOULD INSTALL
   This is a web site module and should be installed by a web site systems 
   administrator (webmaster). An understanding of FTP, changing directory 
   privileges and web servers is required. We cannot support you if you are 
   not able to understand these things.

   
>> MANUAL INSTALL  
   
   1. Copy 'assets/lbr' into your assets directory, 'components/lbr' to your 
      components directory and  'doc/lbr' into your documents directory of your 
      AROUNDMe installation.

   2. Use the included install/am_mod_lbr.sql file to apend your AROUNDMe database.

      Note: remember to change the table name prefix if you customised it when you 
      installed AROUNDMe.
   
   3. Edit your 'components/core/config/aroundme_core.config.php. Under the '// MODULE 
      INCLUSION' section insert:
      
         note: module_id 4 is used for example. You can use your own number. Module_ids 
         must be unique.
      
         $core_config['module_id']['library'] = 4;
         $core_config['module'][4]['title'] = 	"library";
         $core_config['module'][4]['db_tbl'] = "library_set";
         $core_config['module'][4]['prefix'] = 		"lbr";
         $core_config['module'][4]['version'] = 	"1.1";
   
   
   4. Edit your 'components/core/config/aroundme_core.config.php. Under the '// MODULE 
      ACCESS PERMISSIONS' section insert:
      
         note: Every  $core_config['resource']['module'] value needs to be a binary 
         number value. The first one is always number 1, then you go 1+1=2; hence 2 is 
         the second value. 2+2=4, so four is the third value -> 1, 2, 4, 8, 16, 32, 
         64, 128, 256...


         $core_config['resource']['module']['lbr']['access'] = 		1;
         $core_config['resource']['module']['lbr']['maint'] = 		2;
         $core_config['resource']['module']['lbr']['create'] = 		4;


    5. Edit your 'components/core/language/1/barnraiser_01/common.lang.php file. Under 
       the '// MODULES' section insert:

         $lang['arr_module'][4] = 						"wiki";

         $lang['menu_main_library'] = 					"Wiki";

  
   6. Place the wiki menu item in the main template - Edit your 'components/core/
       template/barnraiser_01/default.tpl.php' file and add at line 165:

       <?php
       if ($_SESSION['user_mod_permission'] & $resource['module']['lbr']['access']) {
       ?>
       <p>
           <?php
           if (isset($section) && $section == "library") {
           echo $lang['menu_main_library'];
           }
           else {
           echo "<a href='index.php?amn=lbr_overview'>" . $lang['menu_main_library'] . "</a>";
           }
           ?><br />
        </p>
        <?php }?>
        
        
   7. Optionally Edit your 'components/core/config/aroundme_core.config.php. You have a 
      valiable set for $core_config['resource']['core']['module']['visitor'] which is 
      1 by default. This variable sets the permissions for a site visitor. Say you 
      module settings were:
      
         // grp
         $core_config['resource']['module']['grp']['access'] = 		1;
         $core_config['resource']['module']['grp']['maint'] = 		2;
         $core_config['resource']['module']['grp']['create'] = 		4;
         // lbr
         $core_config['resource']['module']['lbr']['access'] = 		8;
         $core_config['resource']['module']['lbr']['maint'] = 		16;
         $core_config['resource']['module']['lbr']['create'] = 		32;
         // event
         $core_config['resource']['module']['evt']['access'] = 		64;
         $core_config['resource']['module']['evt']['maint'] = 		128;
         $core_config['resource']['module']['evt']['create'] = 		256;

      If you want visitors to your site to see the groups, events and library buttons 
      you add those permissions up (1+8+64=73) then set the variable:
      
         $core_config['resource']['core']['module']['visitor'] = 73;
         
         
   8. start playing.


>> TECHNICAL SUPPORT
   See our community at http://build.barnraiser.org/ for support. If in doubt 
   contact Barnraiser and we will try to help you - http://www.barnraiser.org/





