Already discussed. See post 437.
Printable View
I have such a mod, but spent plenty on getting written... :cool:
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:
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?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 //-->
Regards
@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.
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
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?
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: