There is an uninstall sql in with the install file pack.
Printable View
You can prevent them from seeing other boxes by extending the approach you've already implemented for your order information.
Redirecting them to another page on login (and keeping them from coming back the landing page) is a little more complex and, yes, beyond the scope of this mod's support thread.
This is true for the current version, but I suspect not for older versions.
I'm pretty sure that there are uninstall instructions in this thread, but just in case. You can see which tables need to be dropped from the install SQL for your version. But (and this is really important). Don't drop them until you have reversed and code changes made in the install and removed the files that were added.
Just as an aside though. I wouldn't bother to uninstall it. PCI requirements make mandatory some form of access control over and above a simple login. So I expect you'll find yourself dealing with something similar again in the future anyway.
Thanks, I will continue preventing them seeing the other boxes, however I also cannot see the boxes when I log in as administrator now, despite having added my username to the code. I did get a code error when I added this code
<?php if ($_SESSION['admin_id'] == <myusername>) { ?>
- this was solved by removing the <> from around my username, but I think this is stopping my being able to see the boxes when I log in. How can I solve this? Sorry I am not very good at php code :-(
<?php if ($_SESSION['admin_id'] == <myusername>) { ?>
should use your admin user id rather than user name. The ID is numeric. If you were the first user and haven't been re-entered, that would be "1", in which case this would read
<?php if ($_SESSION['admin_id'] == 1) { ?>
Thank you so much for your help, very much appreciated. Brilliant add-on and working perfectly :-)
Possible Bug
If a module's name contains punctuation like a period (.), then admin profiles will not work for that mod.
The fix is on line 41 of admin/includes/functions/admin_control.php, change to:
PHP Code:
$field = $_POST[str_replace(array(' ', '.'), '_', $pages->fields['page'])];
I am having the hardest time getting this module to work. I have installed it 2 other times just fine, but am now trying to install it for a third time on a new site.
When I try and merge the header_navigation.php file it does not work and makes my header bar disspear. This is what I have for my original php coding:
How do I merge the new coding which is this:Code:<?php
/**
* @package admin
* @copyright Copyright 2003-2006 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: header_navigation.php 3089 2006-03-01 18:32:25Z ajeh $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
?>
<!-- Menu bar #2. -->
<div id="navbar">
<ul class="nde-menu-system" onmouseover="hide_dropdowns('in')" onmouseout="hide_dropdowns('out')">
<?php
require(DIR_WS_BOXES . 'configuration_dhtml.php');
require(DIR_WS_BOXES . 'catalog_dhtml.php');
require(DIR_WS_BOXES . 'modules_dhtml.php');
require(DIR_WS_BOXES . 'customers_dhtml.php');
require(DIR_WS_BOXES . 'taxes_dhtml.php');
require(DIR_WS_BOXES . 'localization_dhtml.php');
require(DIR_WS_BOXES . 'reports_dhtml.php');
require(DIR_WS_BOXES . 'tools_dhtml.php');
require(DIR_WS_BOXES . 'gv_admin_dhtml.php');
require(DIR_WS_BOXES . 'extras_dhtml.php');
?>
</ul>
</div>
Then when I try and add these 2 files, it crashes the admin screen all together to where I am not able to even view the log in screen: admin/includes/functions/DS.Store and admin/includes/functions/admin_profiles.php.Code:if (menu_header_visible('Configuration')) require(DIR_WS_BOXES . 'configuration_dhtml.php');
if (menu_header_visible('Catalog')) require(DIR_WS_BOXES . 'catalog_dhtml.php');
if (menu_header_visible('Modules')) require(DIR_WS_BOXES . 'modules_dhtml.php');
if (menu_header_visible('Customers')) require(DIR_WS_BOXES . 'customers_dhtml.php');
if (menu_header_visible('Taxes')) require(DIR_WS_BOXES . 'taxes_dhtml.php');
if (menu_header_visible('Localization')) require(DIR_WS_BOXES . 'localization_dhtml.php');
if (menu_header_visible('Reports')) require(DIR_WS_BOXES . 'reports_dhtml.php');
if (menu_header_visible('Tools')) require(DIR_WS_BOXES . 'tools_dhtml.php');
if (menu_header_visible('GV_Admin')) require(DIR_WS_BOXES . 'gv_admin_dhtml.php');
if (menu_header_visible('Extras')) require(DIR_WS_BOXES . 'extras_dhtml.php');
I have insatlled the SQL patch, I did that first. I then started adding each file individually so I could find out which files were causing the problems. I am now not able to view any of the menus when I click under the admin menu. I can't see the layout boxes controller or anything let alone the admin settings.
The site address is http://www.scraps-n-pieces.com/store/
Any help you could give me would be great!
Can anyone help me?
I could really use some suggestions on this one... can anyone help me out?