Nadsab,
If you are concerned about the changes in the 1.38a version, then simply upload the files I sent you to the box directory. They are 1.36 Admin Profile files merged with 1.38a ZenCart.
Nadsab,
If you are concerned about the changes in the 1.38a version, then simply upload the files I sent you to the box directory. They are 1.36 Admin Profile files merged with 1.38a ZenCart.
Mauryg,
You have helped me and possibly many others having the same problem as nasab, thank you so much.
I do have another question though, is there any way to also turn off the information on the admin home page (the page you land on then you log into admin).
What I really want to achieve is not show any customer or order information to some of my employees, and this info is right there on the admin home page, any way to conceal it ?![]()
Anyone know what has happened to kuroi ?
I have tried many ways to contact him, seems he has disappeared....
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
This suggests a problem with your installation Specifically that the packages admin/includes/extra_datafiles/admin_profiles_data.php file is not present, or is in the wrong place. However, if this is the the case, then it's possible that other components are misplaced too. I'd recommend checking all the files against the locations listed in the install.txt file that comes in the package that you downloaded.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
kuroi, so glad to see you here
After several attempts to find someone to assist in witting these restriction for admin profiles, I have come up empty and only found people who are either scamming or really dont know how to do it, so I plead with you to please
give an example of a restriction needed for "categories"?
I would be deeply appreciative![]()
Yes. Though there are usually multiple ways of going about this and what is appropriate would depend upon the specific requirement you were trying to meet.
For example, if you are restricting admin users to a single category, you would need suppress the dropdown menu on the categories page that allows them to navigate to other categories. To do this you would need to find the following code in the category_product_listing module, which generates that dropdown
and wrap an if statement around it so that it is only executed if the user is allowed to go to other categories.PHP Code:
if ($_SESSION['display_categories_dropdown'] == 0) {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'set_display_categories_dropdown=1&cID=' . $categories->fields['categories_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_ICONS . 'cross.gif', IMAGE_ICON_STATUS_OFF) . '</a> ';
echo zen_draw_form('goto', FILENAME_CATEGORIES, '', 'get');
echo zen_hide_session_id();
echo HEADING_TITLE_GOTO . ' ' . zen_draw_pull_down_menu('cPath', zen_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"');
echo '</form>';
} else {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'set_display_categories_dropdown=0&cID=' . $categories->fields['categories_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_ICONS . 'tick.gif', IMAGE_ICON_STATUS_ON) . '</a> ';
echo HEADING_TITLE_GOTO;
}
If they are allowed access to different categories, but only a limited subset, you would need to change the same bit of code in a different way. In this case you would need to replace the zen_get_categories_tree() function with an alternative that prepared a list of the categories to which the user is to have access.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
There are no switches to turn this off (though they are on the TO DO list for a future version of Admin Profiles.
For the time being you would have to make code changes. These would be done in in the admin/index.php file as follows:
1) Find out what your admin ID is (you can see it to the left of your name on the Admin Settings page
2) Open admin index.php and fin the following lines3) Insert the following between themPHP Code:
<div id="coltwo">
<div class="reportBox">
4) Go down 12 lines and insert the following immediately after the </div> linePHP Code:
<?php if ($_SESSION['admin_id'] == <your admin ID>) { ?>
5) Now do the same between the following linesPHP Code:
<?php } ?>
and after the first </div> line a further 12 lines down.PHP Code:
<div id="colthree">
<div class="reportBox">
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Bookmarks