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

Results 221 to 240 of 1,242
11 Apr 2007, 14:03
#221
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

I am also getting a weird error, I am sure its my install error. I am running this on 1.3.7

On Third Party Mods section not all of the mods are showing up, then I click on it and get that I don't have permission to be there and go to the back to the box selection and it shows up under the Third Party Mods but it also makes everything in that drop down menu repeat so there are two of everything now. Example:

Customers, Orders, ....and then it will repeat again.

Help please,
Thanks

13 Apr 2007, 08:17
#222
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

Ok, well you know when you were a kid and the teacher wrote on your report card, Doesn't fallow written instructions well!, you can add that to this here.

So this is the error you get when you write the code like I did, so I will give an example that might help people like me:

So lets take super_orders_customers_dhtml.php, and go from the original code to the admin profiles code

Original code:

<?php
$za_contents[] = array('text' => BOX_CUSTOMERS_SUPER_ORDERS, 'link' => zen_href_link(FILENAME_SUPER_ORDERS, '', 'NONSSL'));
$za_contents[] = array('text' => BOX_CUSTOMERS_SUPER_BATCH_STATUS, 'link' => zen_href_link(FILENAME_SUPER_BATCH_STATUS, '', 'NONSSL'));
$za_contents[] = array('text' => BOX_CUSTOMERS_SUPER_BATCH_FORMS, 'link' => zen_href_link(FILENAME_SUPER_BATCH_FORMS, '', 'NONSSL'));
?>

Modified code:

<?php
  if (!defined('IS_ADMIN_FLAG')) {
   die('Illegal Access');
  }
$options = array( array('box' => BOX_CUSTOMERS_SUPER_ORDERS, 'page' => FILENAME_SUPER_ORDERS),
					array('box' => BOX_CUSTOMERS_SUPER_BATCH_STATUS, 'page' => FILENAME_SUPER_BATCH_STATUS),
					array('box' => BOX_CUSTOMERS_SUPER_BATCH_FORMS, 'page' => FILENAME_SUPER_BATCH_FORMS),
				);

  foreach ($options as $key => $value)
  if (page_allowed($value['page'])=='true')
    $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL'));
  ?>

I really hope that helps some people out there, I guess we learn from our mistakes, lets just say I am learning a lot!:blink:

15 Apr 2007, 08:55
#223
pierrick avatar

pierrick

New Zenner

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

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

Hi Kuroi,

Well, just downloaded your contrib, followed your install.txt -step by step- and... it works great! :clap:
Just wanted to say thanks for a very useful tool.

Pierrick

15 Apr 2007, 10:38
#224
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

You're very welcome pierrick. Nice to meet a user who follows the installation instructions too! :D

15 Apr 2007, 14:29
#225
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

Hey, whats that mean.....ok sorry, :blush:

It really is a great one, I think it should come stock with it!

15 Apr 2007, 14:32
#226
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

godspeed27:

Hey, whats that mean.....ok sorry, :blush:

It really is a great one, I think it should come stock with it!:oops:
LOL. That wasn't aimed at you. I promise!

The Admin is scheduled for re-write in Zen Cart 1.6 and hopefully fully-integrated (and therefore better) access control will form part of that delivery.
:thumbsup:

15 Apr 2007, 14:37
#227
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

1.6...wow, thats a big jump..when is that going to be out?

15 Apr 2007, 14:49
#228
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

godspeed27:

1.6...wow, thats a big jump..when is that going to be out?Zen Cart never publishes release dates in advance - very sensibly in my view. With a large installed base and a small development team, it's more important to get it right, than rush it out to meet a deadline. So the most that one could say would be that 1.6 will probably come out sometime after 1.4 and 1.5.
:wink:

18 Apr 2007, 10:13
#229
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Somehow I managed to screw something up. I had AP working like a charm but now my defined admins all get the full menus in the admin where they had only the ones they needed. Access restrictions are still in order though.

I checked the database and all the visible header settings are still in place but somehow they are not applied anymore.

Can someone please tell me in what file (and preferably what lines of code) I should check to make the admin interface look like it did?

Using ZC1.3.7 and AP1.0.6

18 Apr 2007, 12:11
#230
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

Have you thought about a reinstall? Have you downloaded all of your files to see if they are still correct...use winmerge to compare them to stock ones. I would start there. If you did a backup or something ftp clients can mess them up.

18 Apr 2007, 12:48
#231
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Yep, your right. A reinstall did the trick. Read about problems with FTP but never experienced them myself. Thanks for the reminder. Guess I have to be more aware of the FTP hick ups that can occur.

Only thing is that Image Handler and Cross-Sell now show up twice in the menus. Is there any way to remove these double entries? Within the permissions window they only display once.

18 Apr 2007, 12:52
#232
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

there was a post about something like that in this thread...but thats 24 pages to go through.

18 Apr 2007, 13:31
#233
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Should have searched the thread first but I was on a roll with my previous question.

Found something in post 135 about the the admin_files and admin_allowed_pages tables that could have been it if only I could find double entries for these mods but I can't.
The admin_visible_headers and admin_menu_headers are also clean.

What am I missing?

19 Apr 2007, 08:28
#234
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

davale:

Image Handler and Cross-Sell now show up twice in the menus.Is that twice in the same menu, or two different menus? and which menus?

19 Apr 2007, 09:18
#235
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Twice within the same menu. Cross-Sell appears twice under Catalog and ImageHandler twice under Tools.

19 Apr 2007, 09:37
#236
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Solved! Please hit me hard on the head (I just did the same).

Turns out that I left backups of the unedited dhtml files within the extra_boxes directory when reinstalling. Guess what happened when I removed them. Sorry to have bothered you with this extremely stupid move.

But I have to ask if this in any way polluted the database. There doesn't seem to be any problem but do I have to clean up some of the tables?

19 Apr 2007, 12:51
#237
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

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

kuroi:

Is that twice in the same menu, or two different menus? and which menus?

Who's on first ? :laugh:

(Sorry, :oops: i couldn't resist).

:clap:

21 Apr 2007, 06:05
#238
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

davale:

I have to ask if this in any way polluted the database. There doesn't seem to be any problem but do I have to clean up some of the tables?No, to both questions. Your database should be fine. New entries should only be added when there is not an entry already there for the file needing permission, rather than when there is a duplicate.

24 Apr 2007, 03:59
#239
rodi01 avatar

rodi01

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

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

I've installed the admin profile it works fine but I disabled 2 menus both catalog menu and tools menu. However they are still visible but when you click on any item, it shows that the user can't access that area, which is good.

But is there anyway to remove the menus?

thanks,

Rodrigo

24 Apr 2007, 04:32
#240
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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

if installed right it should take them away, did you unchecked the menu bar..if you did that I would make sure its installed right or you didn't override or change any of the files.