Page 116 of 124 FirstFirst ... 1666106114115116117118 ... LastLast
Results 1,151 to 1,160 of 1238
  1. #1151
    Join Date
    Mar 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by sweetikins View Post
    I was wondering how to uninstall Admin profiles? It doesnt come with an uninstall sql
    There is an uninstall sql in with the install file pack.

  2. #1152
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by lavendersblue View Post
    I don't want the other admin users to be able to see anything at all on this page, or I need to redirect them to another page, is this possible?
    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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #1153
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by lavendersblue View Post
    There is an uninstall sql in with the install file pack.
    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.
    Last edited by kuroi; 2 Jun 2011 at 08:50 AM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #1154
    Join Date
    Mar 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    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 :-(

  5. #1155
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    <?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) { ?>
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #1156
    Join Date
    Mar 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Thank you so much for your help, very much appreciated. Brilliant add-on and working perfectly :-)

  7. #1157
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,550
    Plugin Contributions
    70

    Default Re: Admin Profiles Support Thread

    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'])]; 

  8. #1158
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    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:

    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>
    How do I merge the new coding which is this:

    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');
    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.

    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!
    Last edited by lauriesscraps; 30 Jun 2011 at 01:55 AM.

  9. #1159
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Can anyone help me?

  10. #1160
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    I could really use some suggestions on this one... can anyone help me out?

 

 

Similar Threads

  1. v150 Admin New Order [Support Thread]
    By lhungil in forum Addon Admin Tools
    Replies: 121
    Last Post: 5 Feb 2021, 07:51 PM
  2. v150 CSS Buttons for Admin [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 24 Dec 2015, 09:13 PM
  3. Admin-Editable Sidebox - Support Thread
    By kuroi in forum Addon Sideboxes
    Replies: 331
    Last Post: 29 Oct 2014, 04:15 AM
  4. v151 Blue Admin [Support Thread]
    By vvomble in forum Addon Templates
    Replies: 11
    Last Post: 27 May 2013, 09:43 PM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR