Re: Admin Profiles 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
Re: Admin Profiles 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 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 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:
Re: Admin Profiles 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
Re: Admin Profiles Support Thread
You're very welcome pierrick. Nice to meet a user who follows the installation instructions too! :D
Re: Admin Profiles Support Thread
Hey, whats that mean.....ok sorry, :blush:
It really is a great one, I think it should come stock with it!
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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:
Re: Admin Profiles Support Thread
1.6...wow, thats a big jump..when is that going to be out?
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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:
Re: Admin Profiles 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
Re: Admin Profiles 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.