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
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
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.
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:
I think that's it. Hope that helps a bit.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'
);
}
}
?>
-TG
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:
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.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'
)
);
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:
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.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');
-TG
Hello tgryffyn
may you post the right Hierarchy module installation pack for Sugar 5.2 ?
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
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 ?
Hi Ken,
Check this thread
Roles and Hierarchy
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks