Page 3 of 124 FirstFirst 123451353103 ... LastLast
Results 21 to 30 of 1238
  1. #21
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    Sorry, for clarity, when I wrote that the problem was within Zen Cart, I didn't mean to inply that there was a problem with Zen Cart, simply that it was Zen Cart which was unable to continue with one of it's database accesses, rather than say, a more general server problem.

    Why does it happen? I can't give you a definitive answer because I only joined the Zen Cart community when v1.3 was released and so have very limited experience of the innards of 1.2.7 or ealier (just enough to have done a small number of site upgrades). However, I know that there were some structural changes, some of which will have affected the database structure and in this case it seems likely that Admin Profiles is trying to access a database table or field that exists in v1.3 but didn't (or was named differently) in v1.2.7.
    Kuroi Web Design and Development | Twitter

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

  2. #22
    Join Date
    May 2006
    Location
    Japan
    Posts
    36
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    I just installed this Admin Profiles. Followed instructions. However, am having problems. Only configuration menu is showing, rest are not.

    Please see copy of screen image. How do I fix it?
    Attached Images Attached Images  

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

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by makulit
    I just installed this Admin Profiles. Followed instructions. However, am having problems. Only configuration menu is showing, rest are not.

    Please see copy of screen image. How do I fix it?
    This is a problem with your admin/includes/boxes/configuration_dhtml.php file. It has some missing characters that are causing this error. However, curiously, from the little of it that I can see, it doesn't look like the file from Zen Cart v1.3.0, v1.3.0.1 or the one installed as part of Admin Profiles - what version of Zen Cart are you using? Have you made other changes? Please can you post the code from this file (it's not very long)?
    Last edited by kuroi; 21 Jun 2006 at 08:59 AM. Reason: missing word
    Kuroi Web Design and Development | Twitter

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

  4. #24
    Join Date
    May 2006
    Location
    Japan
    Posts
    36
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Thanks Kuroi. Below is the copy of the code >>

    ------------------------------------ code here -------------------
    <?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: configuration_dhtml.php 3009 2006-02-11 15:41:10Z wilt $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }

    ?>
    <!-- configuration //-->
    <li class="submenu">
    <a target="_top" href="<?php echo zen_href_link(FILENAME_ALT_NAV, '', 'NONSSL') ?>"><?php echo BOX_HEADING_CONFIGURATION; ?></a><ul>
    <?php
    $heading = array();
    $contents = array();
    $heading[] = array('text' => BOX_HEADING_CONFIGURATION,

    'link' => zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('selected_box')) . 'selected_box=configuration'));
    if (1 == 1) {
    $cfg_groups = '';
    $configuration_groups = $db->Execute("select configuration_group_id as cgID,
    configuration_group_title as cgTitle
    from " . TABLE_CONFIGURATION_GROUP . "
    where visible = '1' order by sort_order");

    while (!$configuration_groups->EOF) {
    $cfg_groups .= '<li><a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups->fields['cgID'], 'NONSSL') . '">' .
    $configuration_groups->fields['cgTitle'] . '</a></li>' . "\n";
    $configuration_groups->MoveNext();
    }
    }
    echo $cfg_groups;
    ?>
    </ul>
    </li>
    <!-- configuration_eof //-->/a></li>' . "\n";
    $configuration_groups->MoveNext();


    echo $cfg_groups;
    ?>
    </ul>
    </li>
    <!-- configuration_eof //-->
    <?php
    ?>

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

    Default Re: Admin Profiles Support Thread

    As suspected, the your version of the file is corrupt. Either recopy it from the Admin Profiles package, or delete the bits that I've marked in red and add in the bracket that I've marked in magenta (on the penultimate line).

    ------------------------------------ code here -------------------
    <?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: configuration_dhtml.php 3009 2006-02-11 15:41:10Z wilt $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }

    ?>
    <!-- configuration //-->
    <li class="submenu">
    <a target="_top" href="<?php echo zen_href_link(FILENAME_ALT_NAV, '', 'NONSSL') ?>"><?php echo BOX_HEADING_CONFIGURATION; ?></a><ul>
    <?php
    $heading = array();
    $contents = array();
    $heading[] = array('text' => BOX_HEADING_CONFIGURATION,

    'link' => zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('selected_box')) . 'selected_box=configuration'));
    if (1 == 1) {
    $cfg_groups = '';
    $configuration_groups = $db->Execute("select configuration_group_id as cgID,
    configuration_group_title as cgTitle
    from " . TABLE_CONFIGURATION_GROUP . "
    where visible = '1' order by sort_order");

    while (!$configuration_groups->EOF) {
    $cfg_groups .= '<li><a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups->fields['cgID'], 'NONSSL') . '">' .
    $configuration_groups->fields['cgTitle'] . '</a></li>' . "\n";
    $configuration_groups->MoveNext();
    }
    }
    echo $cfg_groups;
    ?>
    </ul>
    </li>
    <!-- configuration_eof //-->/a></li>' . "\n";
    $configuration_groups->MoveNext();


    echo $cfg_groups;
    ?>
    </ul>
    </li>
    <!-- configuration_eof //-->

    <?php
    }
    ?>
    Kuroi Web Design and Development | Twitter

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

  6. #26
    Join Date
    May 2006
    Location
    Japan
    Posts
    36
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    @kuroi
    i recopied the file from admin profiles package. still gave me this ...
    Attached Images Attached Images  

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

    Default Re: Admin Profiles Support Thread

    This is clearly going to be a corruption of your customers_dhtml.php file similar to one in your configuarion_dhtml.php file that we fixed before. Is your site on your local machine or a remote server? If it's the latter I would recommend uploading all the Admin Profiles files again and checking your FTP program's error log very carefully to ensure that they have arrived safely.
    Kuroi Web Design and Development | Twitter

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

  8. #28
    Join Date
    May 2006
    Location
    Japan
    Posts
    36
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by kuroi
    This is clearly going to be a corruption of your customers_dhtml.php file similar to one in your configuarion_dhtml.php file that we fixed before. Is your site on your local machine or a remote server? If it's the latter I would recommend uploading all the Admin Profiles files again and checking your FTP program's error log very carefully to ensure that they have arrived safely.
    thanks kuroi. my site is on a remote server. i followed your suggestion and uploaded all the admin profiles again. this time all files arrived safely and everything's working well. am very happy with the result and this admin is excellent! just what i need. dont want my partners messing with my zen settings

    thank you very much!

  9. #29
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Re: Admin Profiles Support Thread

    Is "updating box files (a step-by-step guide).txt" up to date?
    => question re: found no options array in extra_boxes files.

    I'm mid-way through installing Admin Profiles (step 4) & mid-way through the above guide in testing/demo mode install of zen cart.
    The one third party contribution I've previously installed is, in fact, Image Handler 2 -- convenient, given your example.

    But I find a discrepancy between the instructions & the files discussed.
    [ (ZC_Root_Dir)/admin/includes/boxes/extra_boxes/product_music_extras_dhtml.php
    & (same_path)/image_handler_tools_dhtml.php).

    That being that in neither did I find an $options array as mentioned in step 4 & shown in the example in step 5.

    The one & only statement in the IH file was:
    $za_contents[] = array('text' => BOX_TOOLS_IMAGE_HANDLER, 'link' => zen_href_link(FILENAME_IMAGE_HANDLER, '', 'NONSSL'));
    At first I figured that since there is only the one $za_content element there is no need (at present ) for the options array So replacing the 5 assignments from the music_extras w/ the above 1 line will work. As below:
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    $za_contents[] = array('text' => BOX_TOOLS_IMAGE_HANDLER, 'link' => zen_href_link(FILENAME_IMAGE_HANDLER, '', 'NONSSL'));
    But looking at the step 5 example I'm guessing that the important part is the
    if (page_allowed($value['page'])=='true')
    test within the foreach loop. Yes? Is this the new part to make AP work? Seems like it would be, but I didn't see such a test nor instructions to add it in the step-by-step.

    I'm hoping not only to be corrected if I've missed something, but that by bringing it up here it might help clarify the process for others.

    For reference, version ID's:
    * @version $Id: product_music_extras_dhtml.php 3001 2006-02-09 21:45:06Z wilt $
    * @version $Id: image_handler_tools_dhtml.php,v 1.1 2006/04/11 22:00:55 tim Exp $
    For reference, example code from step 5 in step-by-step as I found it:
    Code:
      <?php
      if (!defined('IS_ADMIN_FLAG')) {
       die('Illegal Access');
      }
    
      $options = array( array('box' => BOX_TOOLS_IMAGE_HANDLER, 'page' => FILENAME_IMAGE_HANDLER)
         );
    
      foreach ($options as $key => $value)
      if (page_allowed($value['page'])=='true')
        $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL'));
      ?>
    BTW, Kuroi, this looks to be a superb contribution. Kudos to you.
    Last edited by gnotapipe; 3 Jul 2006 at 10:45 PM.

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

    Default Re: Admin Profiles Support Thread

    Hi Chet

    You're basically on the right lines, but I thinking you've had a slight glitch alone the way in step 2. To be specific, the product_music_extras_dhtml file that you are quoting from is the default Zen Cart one, not the one that should have replaced it in step 2, that's why it doesn't look like the one described by the updating box files guide.

    The image_handler_tools.dhtml file is the one that you're editing and so won't resemble the end result until after your changes.

    Many of the well-constructed mods put the files you need in the right hierarchy and you can just drag the top level into your site root directory for everything to be put into the right place. However, I suspect you may have dragged the files individually and my reference to:
    admin\includes\boxes\*
    which is intended to encompass
    admin\includes\boxes\extra_boxes\product_music_extras_dhtml.php
    should probably be a little more explicit to cope with this approach.

    Other than that, you're right, the important part is the
    if (page_allowed($value['page'])=='true')
    and an array is a bit OTT for handling a single line, but it made the instructions more straightforward in an area that tends to cause some confusion.

    P.S. The choice of Image Handler wasn't a co-incidence. Personally I believe that all Zen Cart users should install it by default, and I suspect that it is the most used add-in.
    Kuroi Web Design and Development | Twitter

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

 

 
Page 3 of 124 FirstFirst 123451353103 ... LastLast

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