-
Re: Admin Profiles Support Thread
I hate to ask these questions, with all that is going on, but I must so I can move slowley forward.
Questions regarding install of Admin Profiles V1.0.5
Reading your install notes, Step 1. you stipulate “If you are using a database prefix for your Zen Cart tables, you must either: run the install_adminlevels.sql file using Zen Cart's Admin > Tools > Install SQL Patch facility or edit the file to change the prefix for all create table and insert statements, before running it using your preferred tool.” Now for the first really, really dumb question: How do I tell if I have a database prefix for my ZC tables? I think I do, (I believe that the prefix is sawhorse_zc1 for the 1st database and sawhorse_zc2 for the 2nd (I assume backup) database), but since I do not know how the tables are to look “in their natural state” I am not sure. See below:
Example of tables for ZC1:
sawhorse_zc1.zen_address_book OK
sawhorse_zc1.zen_address_format OK
sawhorse_zc1.zen_admin OK
sawhorse_zc1.zen_admin_activity_log OK
sawhorse_zc1.zen_authorizenet OK
sawhorse_zc1.zen_banners OK
Example of tables for ZC2:
sawhorse_zc2.zen_address_book OK
sawhorse_zc2.zen_address_format OK
sawhorse_zc2.zen_admin OK
sawhorse_zc2.zen_admin_activity_log OK
sawhorse_zc2.zen_authorizenet OK
sawhorse_zc2.zen_banners OK
phpMyAdmin - 2.11.0, MySQL client version: 4.1.21, Used PHP extensions: mysql
Really, really dumb question 2: Step 1. also states “If you are not using a database, simply run the install_admin_profiles.sql file using your preferred tool for executing SQL (e.g. phpMyAdmin).” How can you run ZC without a database?
Really, really dumb question 3: What does this copy do? admin\includes\boxes\* Does this have anything to do with editing the box files to accommodate third party contributions? Does this copy really do anything? (I am sure it does, that is why I am calling this really, really dumb question 3).
1st Not so dumb question (asking just to make sure). I am running ZC 1.3.8a so I will need to manually patch admin\admin.php & admin/includes/languages/english.php. True?
2nd not so dumb question (just to be sure). I am assuming that ZC 1.3.8a did not add any additional admin pages not found in ZC 1.3.6. And, I have yet to add any additional pages so I thus, do not need to worry about manually editing the relevant box files using your step guide. True?
Thanks
-
Re: Admin Profiles Support Thread
@Sawhorse
sawhorse_zc1 and sawhorse_zc2 are database names. Your database prefix is zen_
Question two relates to a typo. It should read database prefix.
admin\includes\boxes\* refers to all files in that folder. They replace the default Zen Cart box files, for built-in functions rather than 3rd party additions. So yes it does do something.
You will need to patch the english.php file, but can use the admin.php from the extras folder.
Finally, I am not aware of any new admin options in 1.3.8 BUT it does correct some errors in the box files, which are not corrected in the version of Admin Profiles that you are using. But they're pretty minor and we've survived up until now without the fixes, so I wouldn't worry too much about this.
-
Re: Admin Profiles Support Thread
Thank you,
So, I do have a prefix (zen_) so I should use ZC Install SQL Patch facility.
I thought that that could be what was happening with admin\includes\boxes\* but I thought that you needed to have the following admin\includes\boxes\*.* to refer to all files in that folder. I was confused. I knew they did something ;-)
Given that we have minor fixes in the admin profiles in 1.3.8, if I had the time would it be at all useful to use WinMerge to make these minor changes or as you say "wouldn't worry too much about this".
Thanks again.
-
Re: Admin Profiles Support Thread
I believe we have done it!!! Thanks
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
Sawhorse
Thank you,
Given that we have minor fixes in the admin profiles in 1.3.8, if I had the time would it be at all useful to use WinMerge to make these minor changes or as you say "wouldn't worry too much about this".
Thanks again.
I am running an upgraded 1.38a shop, I just installed Admin Profiles 1.03 and I used WinMerge to modify ALL of the regular box files. For the new ones I had to create/replace, the trickiest new one was the linkpoint file for PayPal. There is a conditional clause before the BOX...FILENAME line which needs to be copied over. Otherwise it was a breeze and WinMerge made the .bak files automatically.
Two other points in the instructions:
1. In the "Code Patch" instructions for v1.02 it says:
Quote:
In admin\admin.php find the 2nd line containing the constant IMAGE_DELETE (line 427 in a clean install of ZC 1.3 with the above patch installed). Insert a new line immediately afterwards containing the following ...
<br /><a href="' . zen_href_link(FILENAME_ADMIN_CONTROL, 'adminID=' . $adminInfo->admin_id) . '">' . zen_image_button('button_edit_permissions.gif', IMAGE_PERMISSIONS) . '</a>
This code actually needs to be inserted WITHIN the line as shown:
Quote:
$contents[] = array('align' => 'center',
'text' => '<a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a><a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=resetpassword') . '">' . zen_image_button('button_reset_pwd.gif', IMAGE_RESET) . '</a><a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <br /><a href="' . zen_href_link(FILENAME_ADMIN_CONTROL, 'adminID=' . $adminInfo->admin_id) . '">' . zen_image_button('button_edit_permissions.gif', IMAGE_PERMISSIONS) . '</a>'); }
I also found that the line numbers you quoted for locations were significantly different, but the search function in Notepad++ found the spots easily.
2. In the upgrade to 1.0.3.txt file it says for step 2 that you have to overwrite 4 files in admin. But those files were just freshly installed and there are no new files provided. Is there any reason to have to install them AGAIN?
Great MOD...Worked perfectly after install and oes exactly what I needed to limit people's access to dangerous parts of the admin panel when all they need to do is generate reports and maybe update prices. :clap::clap:
-
Re: Admin Profiles Support Thread
Kuroi,
I just ran into a minor but annoying problem. I discovered that my Customers menu in the Admin panel has DOUBLE entries. i.e. the dropdown reads:
"Customers", "Orders","Group Pricing", "PayPal IPN", "Customers", "Orders","Group Pricing", "PayPal IPN", As if the submenus are being generated twice. But I can't figure out what's calling it to do that. And it's only happening in the CUSTOMERS menu, but I can't see anything wrong in customers_dhtml.php in the boxes directory. I even put all the .bak versions in a separate folder.
Any ideas?
-
Re: Admin Profiles Support Thread
I'm glad you like it but ...
Quote:
Originally Posted by
mauryg
I am running an upgraded 1.38a shop, I just installed Admin Profiles 1.03
why are you using this version? 1.0.3 was superceded months ago by 1.0.5, an upgrade specifically to take account of significant changes to 1.3.5 and since by 1.0.6 to maintain compatibility with 1.3.6 and happily 1.3.7 and 1.3.8 as well.
Quote:
Originally Posted by
mauryg
I also found that the line numbers you quoted for locations were significantly different
The install instructions for the version intended for your release of Zen Cart are rather more accurate.
Quote:
Originally Posted by
mauryg
my Customers menu in the Admin panel has DOUBLE entries. i.e. the dropdown reads:
"Customers", "Orders","Group Pricing", "PayPal IPN", "Customers", "Orders","Group Pricing", "PayPal IPN", As if the submenus are being generated twice. But I can't figure out what's calling it to do that. And it's only happening in the CUSTOMERS menu, but I can't see anything wrong in customers_dhtml.php in the boxes directory.
Not an Admin Profiles issue I'm afraid. AP doesn't build the menus, that's part of core Zen Cart. AP just adds an extra condition to suppress the inclusion of a menu entry if a user is blocked from using them. It can't add additional ones. This can only be done in the box files or extra_boxfiles. If your customers_dhtml.php file looks OK, I'd double chec the other box files in that same directory, then widen the search to the extra_boxfiles folder and keep widening until you find the duplicate entries - they're there somewhere!
Quote:
Originally Posted by
mauryg
I even put all the .bak versions in a separate folder.
I would strongly recommend against letting backup files anywhere near your production system, even in a separate folder, unless you are happy for them to be executed. I've seen a lot of people cause themselves odd and difficult to track down problems by doing this.
-
Re: Admin Profiles Support Thread
Kuroi,
Thanks for the prompt reply. All I can say is :oops:
I had downloaded Admin Profiles from ZenCart a while ago and didn't check for a newer version. Will get the new one and reinstall it. Maybe that will clear up the duplicate problem as well.
Maury
-
Re: Admin Profiles Problems
Kuroi,
When I completely uninstalled all of the v1.0.3 mod files and patches from my shop and removed the tables from the database, operation of the Admin panel returned to normal with no duplication of submenus on the Admin>Customers dropdown. I downloaded version 1.0.6 of the Admin Profiles mod from the ZenCart download site and installed it.
When I modified the existing box files in the boxes folder, I compared them to those provided with the mod using WinMerge. Remember I am running version 1.38a. The only difference between the original files and the mod files which I did NOT mod was a line near the end of most of the original files (e.g. line 37 in customers_dhtml.php) and not in the mod files, which reads $za_dir->close();. This was an addition between v1.37 and v1.38a. Was it appropriate to leave it there?
BTW also noted in the original and mod configurations_dhtml.php file the statement: "if (1 == 1) {". When would this NOT be true? Am I misreading something or is it simply my miniscule knowledge of php?
When I logged into the admin panel as user#1, I noted that:
1. There were no duplicate dropdown entries in "Customers", as in my previous install v1.0.3. So far so good.
2. There were no entries for the extra mods I listed above.
3. There was no "Contributions" menu which I expected.
After a little thinking and rereading the instructions I realized that
1. There is no "Contributions" menu in the Admin Panel, only in the Admin Settings>Set Permissions page.
2. I needed to check the boxes for the extra mods, even for user#1, in order for the extra mods to appear in their normal menus.
It might be helpful if these two points could be made clearer in the instructions
Thanks for a great mod. :clap::clap:
-
Re: Adding new Contrubtions to Admin Profiles
I just added Super Orders 2.0 to my cart. I modified the "extra_boxes" files as required. I noted that, even for user #1, some of the modules appeared in the Contributions section under Permissions immediately and checked them in order to see them while others DID NOT APPEAR until I invoked them the first time (e.g. invoice or packing slip) at which point I got an "Access Denied" error message. Then I had to go back to Admin Settings and give myself permission.
Is this normal behaviour for Admin Profiles?? :huh:
-
Re: Adding new Contrubtions to Admin Profiles
Quote:
Originally Posted by
mauryg
I just added Super Orders 2.0 to my cart. I modified the "extra_boxes" files as required. I noted that, even for user #1, some of the modules appeared in the Contributions section under Permissions immediately and checked them in order to see them while others DID NOT APPEAR until I invoked them the first time (e.g. invoice or packing slip) at which point I got an "Access Denied" error message. Then I had to go back to Admin Settings and give myself permission.
Is this normal behaviour for Admin Profiles?? :huh:
I alway get the same behavior with zen 1.3.7. It is a little confusing at first, but once you expect it to happen, it is not a problem, and everything seems to work fine after you assign the permissions.
-
Re: Admin Profiles Problems
Quote:
Originally Posted by
mauryg
I am running version 1.38a. The only difference between the original files and the mod files which I did NOT mod was a line near the end of most of the original files (e.g. line 37 in customers_dhtml.php) and not in the mod files, which reads $za_dir->close();. This was an addition between v1.37 and v1.38a. Was it appropriate to leave it there?
Yes.
Quote:
Originally Posted by
mauryg
BTW also noted in the original and mod configurations_dhtml.php file the statement: "if (1 == 1) {". When would this NOT be true? Am I misreading something or is it simply my miniscule knowledge of php?
That's very old-fashioned coding that probably got carried over from osCommerce. As you say it has no effect and is probably there to indicate taht you could add a condition if your wanted - though I'm not sure why you would do so.
Quote:
Originally Posted by
mauryg
When I logged into the admin panel as user#1, I noted that:
1. There were no duplicate dropdown entries in "Customers", as in my previous install v1.0.3. So far so good.
2. There were no entries for the extra mods I listed above.
3. There was no "Contributions" menu which I expected.
After a little thinking and rereading the instructions I realized that
1. There is no "Contributions" menu in the Admin Panel, only in the Admin Settings>Set Permissions page.
2. I needed to check the boxes for the extra mods, even for user#1, in order for the extra mods to appear in their normal menus.
Contributions is the dumping place for those files that are auto-added and therefore where Admin Profiles doesn't know where to put them. These might be files accessed before the box file is amended, or files that simply don't appear on the Admin menu and therefore don't have a box file entry.
Apart from at initial installation time, the default setting for Admin Profiles is to assume that access is permitted only when explicitly granted by somebody with rights to do so. Although user #1 is the default super user at installation time, AP doesn't know what's happened since.
-
Re: Adding new Contrubtions to Admin Profiles
Quote:
Originally Posted by
mauryg
I just added Super Orders 2.0 to my cart. I modified the "extra_boxes" files as required. I noted that, even for user #1, some of the modules appeared in the Contributions section under Permissions immediately and checked them in order to see them while others DID NOT APPEAR until I invoked them the first time (e.g. invoice or packing slip) at which point I got an "Access Denied" error message. Then I had to go back to Admin Settings and give myself permission.
Is this normal behaviour for Admin Profiles?? :huh:
It's normal for Super Orders which has a number of options that aren't accessed through the Zen Cart menu and so don't appear in the box files, so the first Admin Profiles knows of them is when they get auto-added when you try to access them. Being a good access control script it won't let you use them until it's told that's OK.
-
Re: Admin Profiles Support Thread
kuroi (and thomasw98)
thanks for the answers. I am feeling much more comfortable with both the mod and my increasing abilities with php.
Since order processing has to be done from the Admin panel by other employees, this mod is invaluable to keep straying fingers from making inadvertant changes to the site. Thanks. :clap::clap:
-
Re: Admin Profiles Support Thread
I'm having trouble with my install. I've tried all the patches and still don't have the little "P". Not sure I understand step 3. Do I have to do that if I'm running zencart 1.38a?
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
sped1530
I'm having trouble with my install. I've tried all the patches and still don't have the little "P". Not sure I understand step 3. Do I have to do that if I'm running zencart 1.38a?
Step 3 describes the code patches. If you don't do them, then you won't have access to the little "P" or the edit permissions button.
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
sped1530
I'm having trouble with my install. I've tried all the patches and still don't have the little "P". Not sure I understand step 3. Do I have to do that if I'm running zencart 1.38a?
Kuroi is quite correct. You need to do the patches. May I suggest that if you don't already have a good text editor, download a copy of the free editor called Notebook++. (I'm assuming you're using a PC) It will show you line numbers and will highlight the php code to make it easier to follow. Open the install instructions in one window and the admin files (e.g. admin.php) in a second window. Then you can search for the lines mentioned and cut and paste the patches from the install instructions to the file. BE SURE YOU MAKE A BACKUP of the file before you edit it and don't store the backup in the same folder.
If you've got other admin add-on modules like Easy Populate, Super Orders, How Did You Hear About Us, or Tabbed Products, you need to edit the 'box' files as described in the special set of instructions. Trust me....it's easy. Just more cut and paste between files.
Hope this helps and happy Zenning. :cool:
-
Re: Admin Profiles Support Thread
In the install notes it says "If you are using a database prefix for your Zen Cart tables, you must either: run the install_adminlevels.sql file using Zen Cart's Admin > Tools > Install SQL Patch facility, or edit the file to change the prefix for all create table and insert statements, before running it using your preferred tool."
however when I download the zip file from ZenCart the only files in it that were close to that are "install_admin_profiles.sql" and "upgrade_admin_profiles.sql".
Is it a typo in the install instructions or am I missing the file "install_adminlevels.sql"
Thanks! I really need to get this mod to work as my client has a call center set up to log in and take phone orders beginning 3/3.
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
Dreameffects
Is it a typo in the install instructions
:yes: it is
-
Re: Admin Profiles Support Thread
Aw thanks! So which one am I supposed to install?
The installation is daunting to me and I'm hoping I don't screw anything up as I have spent many many hours building the store.
I installed ZenCart via the Godaddy automatic install and database creation. Should I just be able to drop the files in their respective folders since I haven't done any mods other then a new theme install?
-
Re: Admin Profiles Support Thread
As you're installing, I'd recommend the install patch. Yes you can drop the files into their respective folders, including the admin.php file in the extras folder, but the english.php file needs to be patched manually in accordance with the installation instructions.
-
Re: Admin Profiles Support Thread
Thanks! But I'm still not clear on which of the files to install since there was a typo in the installation instructions.
is it "install_admin_profiles.sql" or "upgrade_admin_profiles.sql"
-
Re: Admin Profiles Support Thread
Ok I got it to work. It seems to work great now.
One other question though.
I had the "Add Customer from Admin" mod installed for v1.3.7 and that worked fine before I installed the Admin Profiles. Now when I go to Customers -> Add Customer, I get
"Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience."
I know I saw this on another thread but can't for the life of me find it again. I thought it had something to do with global settings but I can't find it.
Thanks
-
Re: Admin Profiles Support Thread
Never mind I found that too. I didn't see the option on the very bottom of the "admin profiles" module that allows me to enable "add customer" for authorized admins.
Great scripts! Thanks!
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
Dreameffects
I didn't see the option on the very bottom of the "admin profiles" module that allows me to enable "add customer" for authorized admins.
It's better though to follow the installation instructions about creating box files for 3rd party add-ons. What you have used here is the safety net that catches add-ons when they are executed for the first time after an Admin Profiles installation. But AP works better when it knows about them in advance.
-
Re: Admin Profiles Support Thread
Hi all, a total newbie here and I hope you can help.
Installed the latest zen-cart, then installed admin-profiles.
The installation works fine on my administrator login, but when I add new user and set their permissions, the new user cannot log into admin at all, just get an incorrect username or password message.
When password sent for just get the security message about not having permission to do this. Have reset password in admin, still no difference.
I reckon I've missed something somewhere, anyone any ideas?
Thanks
John
-
Re: Admin Profiles Support Thread
Please ignore the last post as i found the solution.
This is not a zen-cart problem, neither is it an admin-profiles problem.
The prroblem was that i was trying to add a user with a GMail account (XXX################################)
It took me ages to realise that googlemail is invisible to anyone who is not added to the GMAIL account.
Therefore, the cart would not recognise the email address in admin. Once I changed it to a hotmail address to see iof it made a difference, up came admin, with the permissions I gave to the user.
Hope this helps if anyone has the same problem.
John.
-
Re: Admin Profiles Support Thread
Thanks for the update. I have a version of Admin Profiles for Zen Cart 1.3.8 which will be made available within the next few days that will resolve that problem with the password forgotten function.
-
Re: Admin Profiles Support Thread
Well first off let me say... GREAT MOD!
but I have a question. All my modules I have added work great except for the Edit Orders module. The problem I think is it has no box files(guessing cause it does not have its own drop down menu icon?). But when in Orders and I clikc the edit button I get the message telling me I do not have permission. Is there a way to get these two to play nicely?
Here is a link to the mod in question
http://www.zen-cart.com/index.php?ma...roducts_id=444
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
shawnz28
Well first off let me say... GREAT MOD!
but I have a question. All my modules I have added work great except for the Edit Orders module. The problem I think is it has no box files(guessing cause it does not have its own drop down menu icon?). But when in Orders and I clikc the edit button I get the message telling me I do not have permission. Is there a way to get these two to play nicely?
Well the fact that Edit Orders has no box files means you can't modify them for Admin Profiles, but it works anyway. My guess is that you need to go into the Third Party Contrib section of Admin Profile and give yourself permission to see the Edit Order mod. Typical behaviour.
BTW, the Edit Orders mod has a lot of quirks and when you least expect it :lamo:
-
Re: Admin Profiles Support Thread
@shaunz28
maurygn is right on both counts. The edit orders mod should have been auto-detected and added to the section at the bottom of your Admin Profiles pages, and edit orders is a bit buggy so watch your step.
-
Re: Admin Profiles Support Thread
Thanks guys for some reason it was not there to be selected last night that or my eyes were playing tricks on me but now it is.
Oh and thanks for the heads up on the Edit Orders mod, when I had read on it it seemed pretty safe but looks can be deciving
-
Re: Admin Profiles Support Thread
Hi everybody,
I had been using Admin profiles on a few sites with zen cart 1.3.7. Are there any known troubles of installing AP 1.0.6 on zen 1.3.8? Should I wait for a new updated version or just install an old one?
Thanks
A
-
Re: Admin Profiles Support Thread
I am running AP 1.0.6 on a ZC1.38a install with no problems.
-
Re: Admin Profiles Support Thread
Can this mod be tweaked so that the new admin would only be able to access a set category?, we do digital and need them to care for there own products and prices, but dont want them to have access to other category's, to simplify things, each designer (digital supplier) is a category :mellow:
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
AndyII
Can this mod be tweaked so that the new admin would only be able to access a set category?, we do digital and need them to care for there own products and prices, but dont want them to have access to other category's, to simplify things, each designer (digital supplier) is a category :mellow:
An intriguing question...
I don't see how Admin Profiles can do this since it only controls functions in the Admin Panel and ALL of the categories are a single function in Admin.
In this day of cheap server space, have you considered linking multiple sites or subdomains, each with its own copy of ZenCart. The shopping cart on the main site would have links to the subsites for product information. That would password protect the individual product databases and you could have a master admin login on all of them and use Admin Profiles to control what functions your designers could access. :unsure:
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
AndyII
Can this mod be tweaked so that the new admin would only be able to access a set category?, we do digital and need them to care for there own products and prices, but dont want them to have access to other category's, to simplify things, each designer (digital supplier) is a category :mellow:
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
-
Re: Admin Profiles Support Thread
thanks for your reply Kuroi,
reading thru the forum I was pretty sure it was possible and you would be the one who knew how, I am not that experienced in php to be able to make the necessary changes on my own, I would be able, with assistance, modify files.
do you think it would be too much a project?
Andy
Quote:
Originally Posted by
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
-
Re: Admin Profiles Support Thread
Is this module compatible with Zen Cart 1.3.7 or 1.3.8? I installed it on 1.38, and it seems to work, but I just want to be certain if any of the core files changed by this extension have not changed themselves between ZC 1.3.6 (current supported version for this module) and ZC 1.3.8a?
Thanks,
-Randy
-
Re: Admin Profiles Support Thread
I have been using it for 1.3.7 and just installed for 1.3.8. No problems so far
-
Re: Admin Profiles Support Thread
-
Re: Admin Profiles Support Thread
Thank you very much for this Admin Profiles contribution!
It's very usefull!
-
Re: Admin Profiles Support Thread
Is the latest version of Admin profiles compatible with the latest version of zen cart (1.3.8)?
Edit: Sorry never mind, I just found my answer
-
Re: Admin Profiles Support Thread
I am looking for someone who can install this Admin profiles for me. I am too afraid of messing with the database and the tutorial is quite lengthy.
Thanks!
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
kuroi
Thanks for the update. I have a version of Admin Profiles for Zen Cart 1.3.8 which will be made available within the next few days that will resolve that problem with the password forgotten function.
Hi, kuroi!
When the update version will be avaiable? :smile:
Thanks for this wonderful mod.
Bye
Astrum
-
Re: Admin Profiles Support Thread
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.
-
Re: Admin Profiles Support Thread
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:
-
Re: Admin Profiles Support Thread
Hmm i guess i am missing somethign but, where's the download for this module?
-
Re: Admin Profiles Support Thread
The admin profiles module I'm using can be downloaded here:
http://www.zen-cart.com/index.php?ma...products_id=86
Any thoughts?
-
Re: Admin Profiles Support Thread
1st check that the files on question do infact exist on your site, and in the proper location.
I installed this on a test site the other day and and it works as expected, as long as you follow the install notes exactly
Quote:
Originally Posted by
sketchhgal
-
Re: Admin Profiles Support Thread
Hi,
I'm Using ZC 1.3.8a with no database prefix's used. I don't use PhpMyAdmin to manage the database, (never have). I use Navicat.
install.txt indicates - If you are not using database prefixes, simply run the install_admin_profiles.sql file using your preferred tool for executing SQL (e.g. PhpMyAdmin).
My (maybe) dumb question is, is using PhpMyAdmin required? Can I run the install either via Zen Cart's Admin > Tools > Install SQL Patch facility, or via Navicat?
-
Re: Admin Profiles Support Thread
Also, if I can upload install_admin_profiles.sql to the SQL Query Executor in ZC Admin (instead of using PhpMyAdmin), what's the complete command syntax I need to enter into the “Enter the query
to be executed:“ box to run the install_admin_profiles.sql file?
-
Re: Admin Profiles Support Thread
Quote:
My (maybe) dumb question is, is using PhpMyAdmin required? Can I run the install either via Zen Cart's Admin > Tools > Install SQL Patch facility, or via Navicat? Also, if I can upload install_admin_profiles.sql to the SQL Query Executor in ZC Admin (instead of using PhpMyAdmin), what's the complete command syntax I need to enter into the “Enter the query
to be executed:“ box to run the install_admin_profiles.sql file?
Very simple. DO NOT try to EXECUTE the file from the SQL Patch Install tool. Simply open the .sql file in a text editor, copy the whole file and paste it into the query window and run it. You can use any SQL tool to execute the query. The advantage of the ZenCart tool is that it will automatically apply the table prefix if you are using one in your database.
-
Re: Admin Profiles Support Thread
Thanks mauryg
Think I got it!
I assume that by sql patch install tool, that you mean the "SQL Query Executor" in Zen Cart Admin - correct?
When you say run the .sql file, do I just paste it in and click send, or do I need to also add an sql command at the begging of the .sql file?
-
Re: Admin Profiles Support Thread
Hi,
I ran the script as described and it installed. There seems to be a problem in my setup though.
The menu headers, even though I disabled them for a user, are still showing up whether or not I check them off in admin permissions.
I read this post earlier in this thread http://www.zen-cart.com/forum/showthread.php?t=35911&page=37 In which Kuroi assisted someone else who had a similar problem
Quote:
It sounds as though you have upgraded by over-writing the existing files, rather than merging changes into the new files.
If this is the case you will need to re-apply the admin box files from the mod as that's where the allowable menu accesses are checked. Even better would be to compare them with the new files in case there are new menu items added in this release that aren't allowed for in the mod's box files. I haven't yet checked this.
I did not upgrade, this was a fresh, new install with no changes to admin files other than the patches I applied as per install.txt step 3:
Quote:
Code patches:
If you have installed or upgraded to Zen Cart 1.3.6 and have NOT made changes to admin\admin.php or admin\includes\languages\english.php, and have NOT since installation/upgrade applied any other add-ons that affect these files, then you may use the pre-patched files in the folder named "extras - patched files for ZC1.3.6".
Otherwise you will need to apply the following patches manually. The patches differ a little between Zen Cart versions 1.3.0.2 and 1.3.6.
All I did was install and overwrite the old admin files which came with ZC with the new patches which is what I thought was the correct procedure.
My question is, even if this is a fresh install for a 1.3.8a store, is overwriting files not recommended? Do i need to run a compare – merge change with every file in extras - patched files for ZC1.3.6 and every ZC admin file that would be overwritten by the patches?
-
Re: Admin Profiles Support Thread
One more question on this, from the previous post: http://www.zen-cart.com/forum/showth...=35911&page=37
What is meant by “re-apply the admin box files from the mod”? Use the old box files from ZC? Over write old with new that come with the mod? Compare and merge?
-
1 Attachment(s)
Re: Admin Profiles Support Thread
Nadsab,
Quote:
The menu headers, even though I disabled them for a user, are still showing up whether or not I check them off in admin permissions
I learned a long time ago, "when you hear hoofbeats, think horses, not zebras."
Let's check the simple thing first. You unchecked the individual menu items for the user. Did you ALSO uncheck the menu name itself? It is a separate box on the blue bar.
When Kuroi said "reapply the box files from the mod" he means re-copy those files from the Admin Profiles mod set, specifically the files in the admin/includes/boxes folder. These are the ones which set the menu items. Since the mod was written BEFORE v1.38a ( I think 1.35), there may have been changes made to these files between the time the mod was written and 1.38a was released. If you simply replaced the 1.38a files with the mod files, you would lose those changes.
I also installed Admin Profiles over a fresh install of v1.38a. The procedure as I remember was to install the files in the 'admin' folder and then copy in the files from the patches for v1.36. That brings you to the latest version of Admin Profiles. It works fine, but I did do a WinMerge comparison of the files. I just checked my install and, for example, my copy of admin/includes/boxes/catalog.dhtml is essentially the same as the one in the Admin Profiles mod except for an extra line near the end which reads " $za_dir->close();" which came from v1.38a (it was a change from v1.37). This appears in most of the box files. I have zipped up all of my updated box files if you want to use them. They are all patched for 1.38a so you could just copy these files over your existing ones.
Hope this helps
-
Re: Admin Profiles Support Thread
Quote:
I learned a long time ago, "when you hear hoofbeats, think horses, not zebras."
:)
Quote:
Let's check the simple thing first. You unchecked the individual menu items for the user. Did you ALSO uncheck the menu name itself? It is a separate box on the blue bar.
Yes mauryg, actually I tried all possible combinations of check boxes, was pulling what's left of my hair out all day, and still could not find the problem. Finally instead of taking your kind and gracious offer of your above zip file, i decided to pull more hair out and try to learn what I did wrong, so I downloaded and installed KDiff3 and ran a file compare, found lo and behold that all of the local files and server side files in the boxes dir were identical. I realized that somehow I neglected uploading all of the files from the Admin Profiles Mod (boxes dir only) to server, and all the files in boxes dir server side were original 1.3.8a files, not Admin Profiles Mod files. Anyway I uploaded the older boxes files from the mod and all seems to be working ok (except one little problem below). I finally saw the horses (I seem to love zebras though :)).
Quote:
When Kuroi said "reapply the box files from the mod" he means re-copy those files from the Admin Profiles mod set, specifically the files in the admin/includes/boxes folder. These are the ones which set the menu items. Since the mod was written BEFORE v1.38a ( I think 1.35), there may have been changes made to these files between the time the mod was written and 1.38a was released. If you simply replaced the 1.38a files with the mod files, you would lose those changes.
So in reference to above, now all files in my boxes dir are from older modifications of the ZC 1.3.6 version for this mod. I have read that others are using this on 1.3.8a with no problems. Even though they are older files all seems to be working well, only concern here is, could this eventually cause admin problems if I don't do a merge and bring over code additions from the newer 1.3.8a boxes files into Admin Profiles boxes files?
Quote:
I also installed Admin Profiles over a fresh install of v1.38a. The procedure as I remember was to install the files in the 'admin' folder and then copy in the files from the patches for v1.36. That brings you to the latest version of Admin Profiles.
I read in install.txt that no patches were needed in fresh store install, but I assume that was for 1.3.6 (and install.txt is also outdated), so even though instructions say manual edit of patches are not necessary you did it anyway because of 1.3.8a?
Which brings me to the last problem – when a user with lesser privileges than full admin clicks on the “Version” link in upper right of admin menu, that annoying message comes up - “Sorry, your security clearance does not allow you to access this resource...” instead of showing the ZC version, which I would like all to see. Do you or anyone know what file I can edit to add that version check back in?
-
Re: Admin Profiles Support Thread
Strike that very last question - it's the Tools>Server Info checkbox that brought back the version.
-
Re: Admin Profiles Support Thread
:clap:
Glad to hear that you got it workinig
-
Re: Admin Profiles 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.
-
Re: Admin Profiles Support Thread
Can you give an example of a restriction needed for "categories"?
Quote:
Originally Posted by
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
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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:
-
Re: Admin Profiles Support Thread
Anyone know what has happened to kuroi ?
I have tried many ways to contact him, seems he has disappeared....:mellow:
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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).
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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.
-
Re: Admin Profiles 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:
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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
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;
}
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.
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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 Code:
<div id="coltwo">
<div class="reportBox">
3) Insert the following between them
PHP Code:
<?php if ($_SESSION['admin_id'] == <your admin ID>) { ?>
4) Go down 12 lines and insert the following immediately after the </div> line5) Now do the same between the following lines
PHP Code:
<div id="colthree">
<div class="reportBox">
and after the first </div> line a further 12 lines down.
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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.
-
Re: Admin Profiles 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. :(
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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.
-
Re: Admin Profiles Support Thread
Quote:
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
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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 Code:
<div id="coltwo">
<div class="reportBox">
3) Insert the following between them
PHP Code:
<?php if ($_SESSION['admin_id'] == <your admin ID>) { ?>
4) Go down 12 lines and insert the following immediately after the </div> line
5) Now do the same between the following lines
PHP Code:
<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:
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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:
Quote:
"The day has 24 hours.....THEN comes the night."
Welcome back.
-
Re: Admin Profiles 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?
-
Re: Admin Profiles 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...
-
Re: Admin Profiles Support Thread
Kuroi
on the user_tracking_tools_dhtml.php, how is it called?, maybe I'm just looking in the wrong area......
-
Re: Admin Profiles Support Thread
scratch that last post......
on the user_tracking_tools_dhtml.php,
I get an error after uploading and then accessing admin
Quote:
Fatal error: Call to undefined function: page_allowed() in........user_tracking_tools_dhtml.php on line 30
-
Re: Admin Profiles 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.
-
Re: Admin Profiles Support Thread [SOLVED]
got it working, was missing a couple files in the user tracking mod......
Quote:
Originally Posted by
AndyII
scratch that last post......
on the user_tracking_tools_dhtml.php,
I get an error after uploading and then accessing admin
-
Re: Admin Profiles Support Thread
Ok i get a weird one..
When i go into veiw the tracking for the users and i click on Veiw sessions it makes me a different user and restricts my access and it doesn't seem to matter how i try it.. it always changes me to a different user..
How do you stop this?
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
vitalwares
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...
I've checked this on a couple of live sites running Admin Profiles and they work fine. Can you give me some more clues ... how did you add the third party mods - originally via box files or auto detection? Do they appear once or twice in the third party mods area? Do they appear in any other listing? Are these mods which would normally appear under two headings (e.g. tools and configuration)? Which mods specifically are we talking about? Does this affect all third party mods, or just some of them? Can you give an example of the text that appears for an affected third party mod (or a screenshot of that section)?
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
Dashizna
Ok i get a weird one..
When i go into veiw the tracking for the users and i click on Veiw sessions it makes me a different user and restricts my access and it doesn't seem to matter how i try it.. it always changes me to a different user..
How do you stop this?
Admin Profiles doesn't change users, but because it applies different access rules to different users, is good at highlighting these issues when they do arise.
There was a problem in earlier versions of Zen Cart (you don't say which version you are using) but which was fixed some time ago (there are posts about this very early in this thread). Or it could be that User Tracking is causing the problem - I've never used it so I wouldn't know. Either way, I'm afraid that Admin Profiles is merely highlighting the problem and is very unlikely to be the source of the solution.
-
Re: Admin Profiles Support Thread
how did you add the third party mods - originally via box files or auto detection?
****I used the Box files that came with the User Tracking and just over wrote mine.
Do they appear once or twice in the third party mods area?
****Not sure what you mean??
Do they appear in any other listing?
****Not Sure what you mean??
Are these mods which would normally appear under two headings (e.g. tools and configuration)?
****Yes that is where they are at. BUt there is 2 User tracking Configs one is in tools and the other is in configuration???
Which mods specifically are we talking about?
****user Tracking were you can veiw the sessions..
Does this affect all third party mods, or just some of them?
*****Not Sure what you mean??
Can you give an example of the text that appears for an affected third party mod (or a screenshot of that section)?
*****Ok when i am logged in as the Admin and i go to user 1 and click on the Veiw session button there it goes to the page that says i don't have access to be there.. Then i click the back button and i am now user 1 and i have to log out and relogin as Admin..
There was a problem in earlier versions of Zen Cart (you don't say which version you are using) but which was fixed some time ago (there are posts about this very early in this thread). Or it could be that User Tracking is causing the problem - I've never used it so I wouldn't know. Either way, I'm afraid that Admin Profiles is merely highlighting the problem and is very unlikely to be the source of the solution.[/QUOTE]
****The version i am using is
Zen Cart 1.3.7.1
Database Patch Level: 1.3.7
v1.3.6 [2006-12-11 16:15:48] (Version Update 1.3.5->1.3.6)
v1.3.5 [2006-12-11 15:40:49] (Version Update 1.3.0.2->1.3.5)
v1.3.0.2 [2006-12-11 15:40:45] (Version Update 1.3.0.1->1.3.0.2)
v1.3.0.1 [2006-07-19 15:43:21] (Version Update 1.3.0->1.3.0.1)
v1.3.0 [2006-07-19 14:22:03] (Version Update 1.2.7->1.3.0)
v1.2.7 [2006-03-06 12:04:22] (Fresh Installation)
-
Re: Admin Profiles Support Thread
Ok I have a problem
in Tools there is 2 user tracking things
One is user Tracking
One is User Tracking Config
And then in Configuration there is a User Tracking Config
How do i go about fixing that??
-
Re: Admin Profiles Support Thread
I can not download admin profile from following url : http://www.kuroi.co.uk/zencart/downl...n_profiles.zip
Where can I have it ?.
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
Dashizna
Ok I have a problem
in Tools there is 2 user tracking things
One is user Tracking
One is User Tracking Config
And then in Configuration there is a User Tracking Config
How do i go about fixing that??
You would have to go into your database and delete the row that corresponds to the entry you don't want. It sounds from your earlier post as though you didn't follow the instructions for amending the box files and instead just used the one that came with the user tracking mod. This is most likely what has caused the duplicate entries.
Could you provide more information as to why you think the user is being changed? Is this a normal part of the user tracking mod?
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
tcminh
From this site's downloads area. Click the "downloads" link at the top of this page and search for "Admin Profiles".
-
Re: Admin Profiles Support Thread
Hi Kuroi!
Is there a way, to give partial access to categories? for example, if I have 10 categories, I like give to the user Mod 1, only access to the category 1 and give to the user Mod 2, only access to the category2 .
what do you think?
thanks in advance!
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
mipavluk
Is there a way, to give partial access to categories? for example, if I have 10 categories, I like give to the user Mod 1, only access to the category 1 and give to the user Mod 2, only access to the category2 .
what do you think?
Already discussed. See post 437.
-
Re: Admin Profiles Support Thread
I have such a mod, but spent plenty on getting written... :cool:
-
Re: Admin Profiles Support Thread
Hi Kuroi,
I'm just wondering if we can tweak the logic of the module a bit, I take customers_dhtml.php as an example:
PHP Code:
<?php
/**
* @package admin
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: customers_dhtml.php 6027 2007-03-21 09:11:58Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$za_contents = array();
$za_heading = array();
$za_heading = array('text' => BOX_HEADING_CUSTOMERS, 'link' => zen_href_link(FILENAME_ALT_NAV, '', 'NONSSL'));
$za_contents[] = array('text' => BOX_CUSTOMERS_CUSTOMERS, 'link' => zen_href_link(FILENAME_CUSTOMERS, '', 'NONSSL'));
$za_contents[] = array('text' => BOX_CUSTOMERS_ORDERS, 'link' => zen_href_link(FILENAME_ORDERS, '', 'NONSSL'));
$za_contents[] = array('text' => BOX_CUSTOMERS_GROUP_PRICING, 'link' => zen_href_link(FILENAME_GROUP_PRICING, '', 'NONSSL'));
$za_contents[] = array('text' => BOX_CUSTOMERS_PAYPAL, 'link' => zen_href_link(FILENAME_PAYPAL, '', 'NONSSL'));
if ($za_dir = @dir(DIR_WS_BOXES . 'extra_boxes')) {
while ($zv_file = $za_dir->read()) {
if (preg_match('/customers_dhtml.php$/', $zv_file)) {
require(DIR_WS_BOXES . 'extra_boxes/' . $zv_file);
}
}
$za_dir->close();
}
?>
<!-- customers //-->
<?php
echo zen_draw_admin_box($za_heading, $za_contents);
?>
<!-- customers_eof //-->
So say right before zen_draw_admin_box, we loop thru $za_contents and remove any one that we dont want (unset). If we do it that way then perhaps we dont need to change anything in the extra boxes?
Regards
-
Re: Admin Profiles Support Thread
@yellow1912
I'm considering a very radical overhaul of this mod for the the next release of Zen Cart. Personally I don't like all this box model stuff, or the way that the mod is resolutely monolingual.
-
Re: Admin Profiles Support Thread
Hey Kuroisan,
Considering how solid and useful the current mod is, I for one very much look forward to seeing and implementing your 'radical overhaul'.:thumbsup::thumbsup:
Happy coding.
Pierrick
-
Security Clearance
I get this error: (Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience)
When I click on the permissions link for a new admin user.
What did I jack up to make this happen.
Since I am admin 1 I am locked out of a few things, like posting a new product under free shipping, I am blocked.
I went through the intall file, installed sql, which worked with flying colors.
uploaded all the files, did the box thing. Checked and rechecked file locations.
I am using the lastest greatest verison of Zen Cart from a clean install.
The only add-on i have is the auction product type and it works fine.
Anyone?
-
Re: Admin Profiles Support Thread
if anyone is interested, I had the Admin mod revised (paid programming) to do full restrictions on category assignments, support for custom sales report, multiple owners for manufactures, ++++++++++ many things....:cool:
-
Re: Security Clearance
Quote:
Originally Posted by
duketrac
I get this error: (Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience)
When I click on the permissions link for a new admin user.
What did I jack up to make this happen.
Since I am admin 1 I am locked out of a few things, like posting a new product under free shipping, I am blocked.
I went through the intall file, installed sql, which worked with flying colors.
uploaded all the files, did the box thing. Checked and rechecked file locations.
I am using the lastest greatest verison of Zen Cart from a clean install.
The only add-on i have is the auction product type and it works fine.
Anyone?
In your admin_allowed_pages table, do you have an entry with page_id = 76 and admin_id = 1?
-
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
AndyII
if anyone is interested, I had the Admin mod revised (paid programming) to do full restrictions on category assignments, support for custom sales report, multiple owners for manufactures, ++++++++++ many things....:cool:
So you keep telling us ....
-
Re: Security Clearance
Quote:
Originally Posted by
kuroi
In your admin_allowed_pages table, do you have an entry with page_id = 76 and admin_id = 1?
Yes. All the pages go from 1 - 88.
All the admin_id's are 1's.