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,209

Results 361 to 380 of 1,242
1 Dec 2007, 2:21 AM
#361
johnny43 avatar

johnny43

Zen Follower

Join Date:
Feb 2006
Posts:
231
Plugin Contributions:
0

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

kuroi:

Johnny

You can uninstall by working backwards through the steps in the install.txt file and undoing each of them.

Easier though would probably be to use phpMyAdmin to change the admin_id of the Admin that you inserted to be 1 (you would need to change the ID of any admin that is already 1 to something else first) which should cause all your previous accesses to reappear.

Thanks Kuroi,

Setting the admin id to 1 did the trick !

Regards,
Johnny

3 Dec 2007, 12:27 AM
#362
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

@ Haley

I had a quick look at those user tracking files today. The SQL file should be run using whatever method you used to run the Admin Profiles SQL file when you installed it.

The user_tracking_tools_dhtml.php should be placed in your admin/includes/boxes/extra_boxes folder.

9 Dec 2007, 3:44 AM
#363
zackf avatar

zackf

New Zenner

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

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

Hi Kuroi,

Hope all is well! Had a quick question. I upgraded to 1.38 and just manually added the patches to admin.php. Everything works except when I log in with the other admin profiles it shows up every menu and option as soon as you login where as before it would only show what they have access too. I went over everything but I dont think I missed anything. Any ideas?

Thanks - Zack

9 Dec 2007, 10:29 AM
#364
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

zackf:

I upgraded to 1.38 and just manually added the patches to admin.php. Everything works except when I log in with the other admin profiles it shows up every menu and option as soon as you login where as before it would only show what they have access too.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.

9 Dec 2007, 1:54 PM
#365
nrg avatar

nrg

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

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

I read in the wiki, more access rights - level will come in Zencart 1.6 Is there a forecast when this is? i'm looking for some more levels of control :)

10 Dec 2007, 2:42 AM
#366
zackf avatar

zackf

New Zenner

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

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

Hi Kuroi - thanks for the help! I fixed everything up and it works great again :) Just one question... I have the Tax Exempt module and it shows up whether they have access to it or not. How do I modify the boxes? to hide it if they dont have access?

Thanks - Zack

kuroi:

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.

10 Dec 2007, 9:28 AM
#367
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

NRG:

I read in the wiki, more access rights - level will come in Zencart 1.6 Is there a forecast when this is? I'm looking for some more levels of control :)The Zen Cart don't do estimates of when deliveries will happen. Their focus is on delivering updates that are robust and work, rather that delivering to a schedule. However, my uninformed guess would be that it will be at least two years away, as Zen Cart 1.4 and 1.5 are in the queue before it.

10 Dec 2007, 9:52 AM
#368
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

zackf:

I have the Tax Exempt module and it shows up whether they have access to it or not. How do I modify the boxes? to hide it if they dont have access?I'm not sure that I follow you. If we're thinking of the same tax exempt mod (from numinix) the admin changes are the addition of a single field to the customer table and equivalent page. Admin Profiles controls access to pages, it doesn't interfere with access to the content on those pages (at least not currently), so couldn't be used to restrict access to this one field.

10 Dec 2007, 12:37 PM
#369
zackf avatar

zackf

New Zenner

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

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

Hi Kuroi. Sorry about that I shouldn't send messages when i'm tired lol. I should've asked what code do I have to add to remove 3rd party modules (like the tax exempt) from the menus if an admin doesn't have access to it. All of the built in zen modules (like orders) disappear if they don't have access but the 3rd party modules dont.

thanks - zack

kuroi:

I'm not sure that I follow you. If we're thinking of the same tax exempt mod (from numinix) the admin changes are the addition of a single field to the customer table and equivalent page. Admin Profiles controls access to pages, it doesn't interfere with access to the content on those pages (at least not currently), so couldn't be used to restrict access to this one field.

10 Dec 2007, 12:47 PM
#370
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

zackf:

what code do I have to add to remove 3rd party modules (like the tax exempt) from the menus if an admin doesn't have access to it. All of the built in zen modules (like orders) disappear if they don't have access but the 3rd party modules dont.3rd party modules generally add themselves to the menus by adding extra box files to the admin. These need to be amended for Admin Profiles to be able to suppress them when appropriate. There's a step-by-step guide to this inlcuded with the Admin Profiles release package.

However, I'm still confused about your references to tax exempt, since the only tax exempt mod that I know of doesn't have any menu entries.

10 Dec 2007, 12:49 PM
#371
zackf avatar

zackf

New Zenner

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

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

Ok that's what i was looking for (1st paragraph) - was to supress the 3rd party modules. Disregard about the tax exempt.

kuroi:

3rd party modules generally add themselves to the menus by adding extra box files to the admin. These need to be amended for Admin Profiles to be able to suppress them when appropriate. There's a step-by-step guide to this inlcuded with the Admin Profiles release package.

However, I'm still confused about your references to tax exempt, since the only tax exempt mod that I know of doesn't have any menu entries.

10 Dec 2007, 7:40 PM
#372
nrg avatar

nrg

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

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

I´ve got another regarding the install. I understand I should keep things-updates in the overwrite system/ personal folders. However, the install.txt tell me to upload the files right in the admin folders.

Is it not better to put it in overwrite? or will this not work?

(just asking, as i'm trying to keep it tidy before installing, as I'm not insider enough to clean up if I mess up :$ )

10 Dec 2007, 7:52 PM
#373
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

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

The Admin does not have the override system the Catalog side does, but if the files are "new" and not modified core files you will not have to worry about them. Core files that are modified still need to be merged into files that are updated in the future.

11 Dec 2007, 12:35 AM
#374
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

Whenever I have to modify a core file, I first make a backup of the original file and name it something like "add_customersORIGINAL.php" (for example). I then save the modified core file as "add_customers.php".

Months later, when I am trying to figure out which core files I modified, the fact that there is an ORIGINAL version is a clear sign.

I also add comments inside the core files above the sections that I modify. For example: "//Thomas changed the following two lines to make the admin box wider." (I always start with "Thomas")

This allows me to run a search on "Thomas" and find all the files and the exact locations that I modified. I have to admit though that I have not done this for all changes on my current cart, since I did not think of this until later. But on my next fresh zencart install, I will do it this way from the beginning and hopefully not have to panic when an upgrade comes out...ok, I will still panic, but slightly less! :wink:

11 Dec 2007, 12:40 AM
#375
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

@thomasw98

You have missed out the vital step of getting those backups a safe distance from your Zen Cart. There are a number of bits of Zen Cart that work by executing or loading all the files in a directory and I've spent far too long recently tracking down problem that were caused by people mixing live files and backups with the result that the unchanged backups were over-riding (i.e. undoing) the changes.

11 Dec 2007, 12:54 AM
#376
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

kuroi:

@thomasw98

You have missed out the vital step of getting those backups a safe distance from your Zen Cart. There are a number of bits of Zen Cart that work by executing or loading all the files in a directory and I've spent far too long recently tracking down problem that were caused by people mixing live files and backups with the result that the unchanged backups were over-riding (i.e. undoing) the changes.

I always wondered if that would be a problem. Fortunately for me, I do not store the backups on the server; I only store them on my harddrive. But it's good to know that I should not store them on the server.

11 Dec 2007, 1:04 AM
#377
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

thomasw98:

I always wondered if that would be a problem. Fortunately for me, I do not store the backups on the server; I only store them on my harddrive. But it's good to know that I should not store them on the server.

Hmmm...on second thought, now I just figured out why my address book listings were always double, i.e. if a customer had two addresses stored, they would both list twice when viewing the address book. :laugh:

11 Dec 2007, 10:52 AM
#378
nrg avatar

nrg

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

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

I should some how catalog all the files I customise. I am installing more and more modules, and do get scared of the new versions of zen cart. But also new modules that override an already customised core file.

seems like taxes, have to keep it administered properly :)

thanks for the replies

12 Dec 2007, 9:48 PM
#379
kjflorence avatar

kjflorence

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

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

Hi,

I tried to install the admin profiles download and made a mistake. I tried to restore from a server backup and I'm receiving messages such as this whenever I make a selection from the menus on the admin page

1146 Table 'kazbonco_coffee.admin_files' doesn't exist
in:
[select id from admin_files where page = 'Index Listing']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

How can I get back to where I started.

Thanks
kathy

13 Dec 2007, 7:00 AM
#380
kjflorence avatar

kjflorence

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

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

I got out of this problem. Thanks anyway.