Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to integrate Module:Zucker User Hierarchy

  1. #1
    velocity00723 is offline Senior Member
    Join Date
    Jan 2009
    Location
    Nasik,Maharashtra
    Posts
    31

    Arrow How to integrate Module:Zucker User Hierarchy

    i want exactly same functionality as author mention about Module:Zucker User Hierarchy
    but i fail to find the way to integrate this module
    anyone tell me how to integrate Zucker User Hierarchy module in sugercrm5.2

  2. #2
    velocity00723 is offline Senior Member
    Join Date
    Jan 2009
    Location
    Nasik,Maharashtra
    Posts
    31

    Question Re: How to integrate Module:Zucker User Hierarchy

    hi,
    You have any idea about Zucker User Hierarchy module,
    >
    i want to build a hierarchical user tree, where each branch is separated from its siblings. It can be used to make Sugar multi-client capable and to build user hierarchies of any depth: a user in one branch won't see contacts, accounts, opportunites etc assigned to a user in another branch.
    Last edited by velocity00723; 2009-02-18 at 11:50 AM.

  3. #3
    tgryffyn is offline Junior Member
    Join Date
    Apr 2009
    Posts
    3

    Default Re: How to integrate Module:Zucker User Hierarchy

    I just had to handle this for my company. There was an issue with User Hierarchy not displaying properly on the admin page. Here's all I had to do to get it to display properly. (note: I haven't tested it beyond installation, so I don't know what other issues may come up later, but this got it to install and work at least mostly ok)

    1. In the ZuckerHierarchy_1.1_module zip file, you need to edit manifest.php and update the acceptable version:
    PHP Code:
    $manifest = array(
        
    'acceptable_sugar_versions' => array("regex_matches" => array("5.2.*")), 

    2. Next, there is a 1.1 patch file (attached to this post) that you need to apply

    3. Lastly, what was making it not show up on the admin page properly, was we need to add the ['Administration'] level to an array in the /custom/administration.php file. The entire file will look like this:

    PHP Code:
    <?php
    // User hierarchy menu
    foreach ($admin_group_header as $i => $group) {
        if (
    $group[0] == 'LBL_USERS_TITLE') {
            
    $admin_group_header[$i][3]['Administration']['user_hierarchy'] = array(
                
    $image_path 'Users',
                
    'LBL_USER_HIERARCHY_TITLE',
                
    'LBL_USER_HIERARCHY',
                
    './index.php?module=UserHierarchy&action=ShowHierarchy'
            
    );
        }
    }
    ?>
    I think that's it. Hope that helps a bit.

    -TG
    Attached Files Attached Files

  4. #4
    tgryffyn is offline Junior Member
    Join Date
    Apr 2009
    Posts
    3

    Default Re: How to integrate Module:Zucker User Hierarchy

    One more thing that's needed in order to make UH work with SugarCRM 5.2.

    In the /scripts/post_install.php (pre-install), change the three 'User' tags to something unique in the check_logic_hook_file calls:

    PHP Code:
        // Install logic hooks
        
    check_logic_hook_file("Users""before_save",
            array(
                 
    1,
                 
    'uh_save',
                 
    'modules/UserHierarchy/UserHierarchy.php',
                 
    'UserHierarchy',
                 
    'beforeUserSave'
            
    )
        );
        
    check_logic_hook_file("Users""before_delete",
            array(
                 
    1,
                 
    'uh_delete',
                 
    'modules/UserHierarchy/UserHierarchy.php',
                 
    'UserHierarchy',
                 
    'afterUserDelete'
            
    )
        );
        
    check_logic_hook_file("Users""before_restore",
            array(
                 
    1,
                 
    'uh_restore',
                 
    'modules/UserHierarchy/UserHierarchy.php',
                 
    'UserHierarchy',
                 
    'afterUserRestore'
            
    )
        ); 
    I guess the older version either didn't require unique names or 'User' designated the module or something that UH was part of. Now unique names are required to identify the hook so I chose uh_save, uh_restore and uh_delete.

    If you've already installed and want to fix it, then you want to edit the /custom/modules/Users/logic_hooks.php file to look something like this:

    PHP Code:
    // Do not store anything in this file that is not part of the array or the hook version.  This file will
    // be automatically rebuilt in the future.
     
    $hook_version 1;
    $hook_array = Array();
    // position, file, function
    $hook_array['before_save'] = Array();
    $hook_array['before_save'][] = Array(1'uh_save''modules/UserHierarchy/UserHierarchy.php','UserHierarchy''beforeUserSave');
    $hook_array['before_delete'] = Array();
    $hook_array['before_delete'][] = Array(1'uh_delete''modules/UserHierarchy/UserHierarchy.php','UserHierarchy''afterUserDelete');
    $hook_array['before_restore'] = Array();
    $hook_array['before_restore'][] = Array(1'uh_restore''modules/UserHierarchy/UserHierarchy.php','UserHierarchy''afterUserRestore'); 
    As it says, it will be automatically rebuilt at some point, so make sure the source has the edits too so this file doesn't get overwritten by the 'User' version.

    -TG

  5. #5
    analyst123 is offline Member
    Join Date
    Jun 2009
    Posts
    17

    Default Re: How to integrate Module:Zucker User Hierarchy

    Hello tgryffyn
    may you post the right Hierarchy module installation pack for Sugar 5.2 ?

  6. #6
    amritagr87 is offline Junior Member
    Join Date
    Jan 2010
    Posts
    1

    Default Re: How to integrate Module:Zucker User Hierarchy

    I want to install Zucker User Hierarchy in SugarCRM CE 5.0.0c/5.0.0h but i am facing problems. I tried uploading the file ::ZuckerHierarchy_1.1_patch but the following error occurred-->"The uploaded file is not compatible with this version of Sugar: 5.0.0h". This module is vital for implementing CRM in my firm. I would be really obliged if you could provide some help on how to upload and install this module in the above mentioned version of sugarcrm .
    Regards,
    Amrit Agarwal

  7. #7
    amolbansode Guest

    Default userHierarchy Module for 6.5.2 ? or any other solution ?

    userHierarchy Module for 6.5.2 ? or any other solution ?

  8. #8
    amolbansode Guest

    Default Re: userHierarchy Module for 6.5.2 ? or any other solution ?

    Quote Originally Posted by amolbansode View Post
    userHierarchy Module for 6.5.2 ? or any other solution ?
    I found a solution For user hierarchy. Work perfectly !!!


    userHierarchy Module for 6.5.2 ? or any other solution ?

  9. #9
    Ken Mark Guest

    Default Re: userHierarchy Module for 6.5.2 ? or any other solution ?

    Quote Originally Posted by amolbansode View Post
    I found a solution For user hierarchy. Work perfectly !!!


    userHierarchy Module for 6.5.2 ? or any other solution ?


    Do you mind to share what solution you have found?

  10. #10
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    423

    Default Re: userHierarchy Module for 6.5.2 ? or any other solution ?

    Quote Originally Posted by Ken Mark View Post
    Do you mind to share what solution you have found?
    Hi Ken,
    Check this thread

    Roles and Hierarchy

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User Hierarchy
    By mrbaddy23 in forum Developer Help
    Replies: 124
    Last Post: 2010-09-14, 08:08 PM
  2. MODULE: Zucker User Hierarchy
    By ftreml in forum Downloads
    Replies: 19
    Last Post: 2009-02-18, 10:03 AM
  3. Replies: 0
    Last Post: 2008-07-09, 12:39 PM
  4. Problem with Zucker Hierarchy and sugarcrm 4.5
    By jitchavan in forum Developer Help
    Replies: 0
    Last Post: 2008-07-09, 12:28 PM
  5. Problem with Zucker Hierarchy and sugarcrm 4.5
    By jitchavan in forum Downloads
    Replies: 0
    Last Post: 2008-07-09, 12:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •