Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Plugin Contributions
    0

    bug Can not edit your admin user profiles (v1.5.0)?

    After I install Zen-Cart V1.5.0, I found that I can not edit the admin user profiles after "add profiles".

    I try to find the answer at this forum, but find nothing

    Here is how I solve the problem:

    edit file" admin folder\profiles.php"

    line:199

    <form id="profileBoxes" name="profileBoxes" action="<?php echo zen_href_link(FILENAME_PROFILES) ?>" method="post">

    change to

    <?php echo zen_draw_form('profileBoxes', FILENAME_PROFILES, 'action=edit') ?>

    I think this post may be able to help some others.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Can not edit your admin user profiles (v1.5.0)?

    Actually this has already been posted as a bug report previously.

    And the correct fix to the /admin/profiles.php is ...

    to change:
    Code:
    <form id="profileBoxes" name="profileBoxes" action="<?php echo zen_href_link(FILENAME_PROFILES) ?>" method="post">
    to read:
    Code:
      <?php echo zen_draw_form('profileBoxes', FILENAME_PROFILES, 'action=insert') ?>
    One other change is to fix:
    Code:
      case 'update_name':
        zen_update_profile_name($profile, $_POST['profile-name']);
        $messageStack->add_session(SUCCESS_PROFILE_NAME_UPDATED, 'success');
        zen_redirect(zen_href_link(FILENAME_PROFILES));
        break;
    and change to:
    Code:
      case 'update_name':
      // bof: fix update name
        if (trim($_POST['profile-name']) == '') {
          $messageStack->add_session(ERROR_INVALID_PROFILE_NAME, 'error');
          zen_redirect(zen_href_link(FILENAME_PROFILES));
        }
      // eof: fix update name
        zen_update_profile_name($profile, $_POST['profile-name']);
        $messageStack->add_session(SUCCESS_PROFILE_NAME_UPDATED, 'success');
        zen_redirect(zen_href_link(FILENAME_PROFILES));
        break;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Admin profiles mod
    By mimi78 in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 27 May 2009, 10:29 AM
  2. Custom User Profiles
    By ixlr8 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 22 Feb 2007, 04:12 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
  •