Re: Admin Profiles Support Thread
Quote:
Originally Posted by
johnny_99
How does the second admin user chnage their password? I can give them the admin privaleges but this second user is then able to also chnage the primary admin's password as well? any solutions?
The Primary Admin (you?) assigns a password and privaleges for each user ...why would you want the users to then be able to change their own privaleges? Do not give them access to the Admin settings. If they need to have their password changed, that is a job for the Primary Admin (you?).
If they forget their password, then they can retrieve it at the regular Admin login screen.
Re: Admin Profiles Support Thread
I'm using Zen Cart 1.3.8a
I'm using admin profiles v1.0.7.1
I just installed the addon. I've installed install sql patch, uploaded the admin files. First I got errors that zen_admin_files did not exist. I found that I had to rename admin_files, admin_menu_header, admin_visible_headers, and admin_allowed_pages by adding the zen_ prefix to the names.
I can now operate the admin pages OK but I don't get the permissions icon on the admin listing. They just show up as they did before I installed the add on.
I've successfully done this on other installs that I have but I can't seem to get it to work on this one.
Thanks in advance.
Steve
Re: Admin Profiles Support Thread
Any help would be appreciated please.
Steve
Re: Admin Profiles Support Thread
Hello, I just installed admin profiles v1.071 but have a problem.
During install you have to make table with this code:
CREATE TABLE `admin_visible_headers` (
`header_id` int(11) NOT NULL default '0',
`admin_id` int(11) NOT NULL default '0'
) TYPE=MyISAM;
This code execute OK. But later you use this code:
INSERT INTO `admin_visible_headers` VALUES (1, @superuser);
This code inserts value in previously created table, but I get this error:
#1048 - Column 'admin_id' cannot be null
I think it's error cause we create table with "int" variables but we try to put in characters (@superuser)
How do I fix this, cause installation now isn't working?
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
fision
I think it's error cause we create table with "int" variables but we try to put in characters (@superuser)
How do I fix this, cause installation now isn't working?
Only put "int" values into the "int" column.
Re: Admin Profiles Support Thread
Actually "int" is type of varible in column "admin_id". Value to put in is @superuser.
When I execute sqlquery INSERT INTO `admin_visible_headers` VALUES (1, @superuser); I get error (#1048 - Column 'admin_id' cannot be null )
If I go and insert manually in db column value @superuser it wont do it cause it wants integer and @superuser isn't integer. I guess?
So what is proper syntax to INSERT this variable.
Re: Admin Profiles Support Thread
Oh, I see what you mean. @superuser is a mysql variable. You need to assign it an integer value and then that will be used to create the table entries for the admin with that integer ID (look for the line higher up that by default is
Quote:
SET @superuser = 1;
Re: Admin Profiles Support Thread
Yes this worked. Look like I didn't follow install instructions right.
Thank you very much.
Re: Admin Profiles Support Thread
I have a fairly new install of Zencart v1.3.8, which has been patches, the admin folder, moved, etc. I have installed Admin Profiles, and aisde from as few minor stumbles (my fault), it works great! Very handy.
I've looked and looked, but I can't find a thread on this. How do I create new box files for add ons that don't come with their own?
I'm trying to make one for edit_orders.php. I finally monkeyed around some and just made a new one based on the procedure for modifying an existing one. It works ok, except it added an unneeded "FILENAME EDIT ORDERS" checkbox in the permissions screen, and it's made a "BOX EDIT ORDERS" item on the Admin menu, which doesn't work since Edit Orders is called from a button.
I'm not sure whether this is much simpler or more complicated than I'm making it, but one way or another, I'd appreciate any help. Thanks
Re: Admin Profiles Support Thread
i had sucessfully installed the add-in and could edit permissions. But for some reason when i tried to edit permissions again today, i could not get in and was presented with the acccess denied page. Can i run some SQL to correct this issue so i can edit my superuser profile?