Zen Cart Logo
Forums / All Other Contributions/Addons / Admin Profiles (for v1.3.x only!) Support Thread

Admin Profiles (for v1.3.x only!) Support Thread

Views: 334,216

Results 461 to 480 of 1,242
6 Mar 2008, 8:04 AM
#461
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Admin Profiles (for v1.3.x only!) Support Thread

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.

8 Mar 2008, 3:14 AM
#462
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Can you give an example of a restriction needed for "categories"?

kuroi:

Yes it can be so tweaked. But to make this work would involve lots of restrictions being inserted across the Zen Cart Admin. As a starting point, I would suggest that you would need to make changes to each of the following files:- >

  • admin/attributes_controller.php
  • admin/categories
  • admin/coupon_admin.php
  • admin/coupon_restrict.php
  • admin/login.php
  • admin/logoff.php
  • admin/product.php
  • admin/specials.php
  • admin/includes/header.php
  • admin/includes/modules/category_products.php
  • admin/includes/modules/document_general/collect_info.php
  • admin/includes/modules/document_product/collect_info.php
  • admin/includes/modules/product/collect_info.php
  • admin/includes/modules/product_free_shipping/collect_info.php
  • admin/includes/modules/product_music/collect_info.php
  • admin/includes/init_includes/overrides/init_admin_auth.php
  • admin/admin.php
15 Mar 2008, 3:04 AM
#463
vitalwares avatar

vitalwares

New Zenner

Join Date:
Jan 2008
Posts:
83
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

mauryg:

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. :hug:

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 ? :unsure:

15 Mar 2008, 12:44 PM
#464
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Anyone know what has happened to **kuroi ?
I have tried many ways to contact him, seems he has disappeared....:mellow:
**

15 Mar 2008, 12:57 PM
#465
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

travel124:

I want to add the Profiles, however in reading the tuts I need to find out if I am using a prefix in the database.

Looking at the database I have a zc1 installed and with prefix zen with 95 files. I also have installed zenstore with 190 files with prefix of zen and prefix of zenstore.

This does not look right to me and I cannot tell which one is the upgrade and whick one I should delete.If you go to your site's includes folder and look at the configure.php file there, it will tell you which database and what database prefix you are using (towards the bottom of the file).

15 Mar 2008, 1:04 PM
#466
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

sketchhgal:

Hi

I've just added the admin profiles module to my site and I'm having a few problems.
It looks to be installed correctly but when I go to the admin tools and click on the permissions icon I'm getting the following 404 error:

The requested URL /store/admin/FILENAME_ADMIN_CONTROL.php was not found on this server.

Anyone have any ideas as to where I've gone wrong with the install?

I'd appreciate any help with this one, it looks like such a good module for a store.

Thanks in advance: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.

15 Mar 2008, 1:23 PM
#467
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi, so glad to see you here :smile:
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 :clap:

15 Mar 2008, 1:25 PM
#468
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

AndyII:

Can you give an example of a restriction needed for "categories"?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

  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;
  }
```and wrap an if statement around it so that it is only executed if the user is allowed to go to other categories.

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.
15 Mar 2008, 1:45 PM
#469
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

vitalwares:

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 ?
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 lines ```php

<div id="coltwo"> <div class="reportBox"> ```
  1. Insert the following between them```php
<?php if ($_SESSION['admin_id'] == <your admin ID>) { ?>

4) Go down 12 lines and insert the following immediately after the </div> line```php
<?php } ?>
  1. Now do the same between the following lines```php
<div id="colthree"> <div class="reportBox"> ``` and after the first </div> line a further 12 lines down.
15 Mar 2008, 1:47 PM
#470
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

AndyII:

Anyone know what has happened to **kuroi ?
I have tried many ways to contact him, seems he has disappeared....:mellow:
**Kuroi has been working back-to-back 16 hour days to deliver a complex site in an impossibly short timeframe, and even though that's pretty well done and dusted, is still working crazy hours to catch up on work for other clients that got delayed as a result.

15 Mar 2008, 2:21 PM
#471
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

still good to see you here.. and now understand your absence .
as for your reply, it opens more concerns and would seem to further complicate the the idea. for example doing as you suggest would work for a Specific admin user, this would have to be hard codes each time a new admin user was added ?, and not controllable thu the super admin.
Another question would be, are there any changes needed in the database to reflect or control these sub users, or are these already accounted for.....
Can you recommend someone who could code this for me?, really hard to find a reliable source on the freelance boards. :(

15 Mar 2008, 5:33 PM
#472
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

AndyII:

still good to see you here.. and now understand your absence .
as for your reply, it opens more concerns and would seem to further complicate the the idea. for example doing as you suggest would work for a Specific admin user, this would have to be hard codes each time a new admin user was added ?, and not controllable thu the super admin.
Another question would be, are there any changes needed in the database to reflect or control these sub users, or are these already accounted for.....
Can you recommend someone who could code this for me?, really hard to find a reliable source on the freelance boards. :(It would be difficult to "further" complicate this idea. It's inherently complicated due to the wide range of interventions into some of the the most complex and non-overrideable core code that would be needed to achieve it.

I certainly wouldn't recommend hard-coding this for specific admin users. The Admin user system should be extended to make setting user access to categories maintainable.

The forum is not the place for offering recommendations about coders. But I will say that this would require advanced knowledge of Zen Cart and I suspect that there are just a handful of people who could carry it off. I would very much doubt that any of them would need to go to the freelance boards to source business.

15 Mar 2008, 5:46 PM
#473
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

The forum is not the place for offering recommendations about coders. But I will say that this would require advanced knowledge of Zen Cart and I suspect that there are just a handful of people who could carry it off. I would very much doubt that any of them would need to go to the freelance boards to source business.

Understood, I would have expected a PM if you did know of some opposed to a forum recommendation because of the nature of the request.
I have found that the freelance boards are not what they were a couple years back.
Any suggestions on where to look would be appreciated

15 Mar 2008, 10:12 PM
#474
vitalwares avatar

vitalwares

New Zenner

Join Date:
Jan 2008
Posts:
83
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

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 lines ```php

<div id="coltwo"> <div class="reportBox"> ``` > > 3) Insert the following between them```php <?php if ($_SESSION['admin_id'] == <your admin ID>) { ?> ``` > > 4) Go down 12 lines and insert the following immediately after the </div> line```php <?php } ?> ``` > > 5) Now do the same between the following lines```php <div id="colthree"> <div class="reportBox"> ``` and after the first </div> line a further 12 lines down.

Excellent solution Sir. You are a stellar example of the Zencart spirit!

Thank you. :hug:

16 Mar 2008, 11:45 PM
#475
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

Kuroi has been working back-to-back 16 hour days to deliver a complex site in an impossibly short timeframe, and even though that's pretty well done and dusted, is still working crazy hours to catch up on work for other clients that got delayed as a result.

Sounds like Kuroi needs to avail himself of my father-in-law's old saying:

"The day has 24 hours.....THEN comes the night."

Welcome back.

17 Mar 2008, 5:16 PM
#476
dfoxengr avatar

dfoxengr

New Zenner

Join Date:
Mar 2008
Posts:
36
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

im getting the 1146 Table 'MY_DB.admin_menu_headers' doesn't exist

problem, but i dont know how to run the script properly in phpmyadmin

any help?

21 Mar 2008, 10:35 PM
#477
vitalwares avatar

vitalwares

New Zenner

Join Date:
Jan 2008
Posts:
83
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Hi,

I am having a problem with th 3rd party mods, if I give the permission once and then later uncheck it the third party mods do not disappear from the menu, they donot allow the user to make changes but still appear in the menu as a list item, this happens only with the third party mods, not with the others.

Also I have made the file changes for 1.38a and rechecked my changes to the box files it all seems to as it should be.

Please help...

25 Mar 2008, 6:31 PM
#478
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Kuroi
on the user_tracking_tools_dhtml.php, how is it called?, maybe I'm just looking in the wrong area......

25 Mar 2008, 7:05 PM
#479
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

scratch that last post......

on the user_tracking_tools_dhtml.php,
I get an error after uploading and then accessing admin

Fatal error: Call to undefined function: page_allowed() in........user_tracking_tools_dhtml.php on line 30

25 Mar 2008, 11:34 PM
#480
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I will second the thanks to Kuroi from Vitalwares on how to modify index.php. I only wanted the employees to see the 'orders' and 'new orders' info so I suppressed half of column one and all of column two. Worked like a charm.