Page 92 of 227 FirstFirst ... 42829091929394102142192 ... LastLast
Results 911 to 920 of 2267
  1. #911
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Categories Dressing

    glenn, i got it to error log... actually i think it was error logging the whole time, i just wasnt looking in the right place... *doh!*

    here is the error:
    Code:
    [31-Aug-2009 18:44:16] PHP Fatal error:  Call to undefined function  cat_active_level_manage() in /home/tinmann8/public_html/catalog1/includes/templates/simple_zen/sideboxes/tpl_categories.php on line 41

  2. #912
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Categories Dressing

    here is my tpl_categories.php file... should be same as yours.. but just for the record. it seems line 41 is just a } ? dont want to go changing this file, since you wrote it... and know it a lot better. i'll wait for your reply! thanks...

    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2009 Glenn Herbert
     * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.gnu.org/licenses/ GNU Public License V3.0
     * @version $Id: tpl_categories.php 4162 2006-08-17 03:55:02Z ajeh $
     * Modified for Categories Dressing v2.7.3  by Glenn Herbert (gjh42)   - 20090505
     *
     * Referenced files:
     * includes/functions/extra_functions/categories_dressing_functions.php
     * includes/languages/english/extra_definitions/your_template/categories_dressing_defines.php - make user settings here
     */

      
    $content "";
      
    $prev_cat_depth = -1;//do not alter
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n";

      for (
    $i=0;$i<sizeof($box_categories_array);$i++) {
        switch(
    true) {
    // to make a specific category stand out define a new class in the stylesheet example: #categories li.cat-holiday a {}
    // uncomment the select below and set the cPath=3 to the cPath= your_categories_id
    // many variations of this can be done
    //      case ($box_categories_array[$i]['path'] == 'cPath=3'):
    //        $new_style = 'holiday';
    //        break;
          
    case ($box_categories_array[$i]['top'] == 'true'):
            
    $new_style 'top';
            break;
          case (
    $box_categories_array[$i]['has_sub_cat']):
            
    $new_style 'subs';
            break;
          default:
            
    $new_style 'products';
        }
        
    $current_path str_replace("cPath=","",$box_categories_array[$i]['path']);
        
    $skip_cat 0;
        
    $skip_cat cat_active_level_manage($current_path);
        if (
    $skip_cat or zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
          
    // skip if this is for the document box (==3)
        
    } else {
          
    $cat_box_heading cat_box_heading($current_path);
          
    $cat_ul cat_ul_manage($current_path$prev_cat_depth$cat_box_heading[0]);
          
    $content .= $cat_ul;
          
    $content .= $cat_box_heading[1];
          
    $cat_name_display cat_name_display($box_categories_array[$i]['name'], $current_path);
          
    $active_class = ($box_categories_array[$i]['current'])? ($box_categories_array[$i]['has_sub_cat']? 'parent''selected'): 'not-selected';
          
    $content .= '  <li class="cat-' $new_style '"><a class="cat-' $active_class $cat_name_display[0] . '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">';
          
    $content .= $cat_name_display[1];
          if (
    $box_categories_array[$i]['has_sub_cat'] and $cat_name_display[0] == '-text') {
            
    $content .= CATEGORIES_SEPARATOR;
          }

          if (
    SHOW_COUNTS == 'true' and $cat_name_display[0] == '-text') {
            if ((
    CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
              
    $content .= '<span class="catCount">' CATEGORIES_COUNT_PREFIX $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX '</span>';
            }
          }
          
    $content .= '</a>';
          
    $content .= cat_box_subtext($current_path);
        }
      }
      
    $content .= cat_ul_manage(0$prev_cat_depth0) . '</ul>' "\n";
        
      if (
    SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    // display a separator between categories and links
        
    if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
          
    $content .= '<hr id="catBoxDivider" />' "\n";
        }
        
    $content .= '<ul class="catLinks">' "\n";
        if (
    SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
          
    $cat_box_link_head cat_box_heading('SPECIALS');
          
    $content .= $cat_box_link_head[1];
          
    $show_this $db->Execute("select s.products_id from " TABLE_SPECIALS " s where s.status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $content .= '<li><a class="category-links" href="' zen_href_link(FILENAME_SPECIALS) . '">' CATEGORIES_BOX_HEADING_SPECIALS '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
          
    // display limits
    //      $display_limit = zen_get_products_new_timelimit();
          
    $display_limit zen_get_new_date_range();

          
    $show_this $db->Execute("select p.products_id
                                     from " 
    TABLE_PRODUCTS " p
                                     where p.products_status = 1 " 
    $display_limit " limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $cat_box_link_head cat_box_heading('NEW');
            
    $content .= $cat_box_link_head[1];
            
    $content .= '  <li><a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_NEW) . '">' CATEGORIES_BOX_HEADING_WHATS_NEW '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
          
    $show_this $db->Execute("select products_id from " TABLE_FEATURED " where status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $cat_box_link_head cat_box_heading('FEATURED');
            
    $content .= $cat_box_link_head[1];
            
    $content .= '  <li><a class="category-links" href="' zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS '</a>' '</li>' "\n";
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    $cat_box_link_head cat_box_heading('ALL');
          
    $content .= $cat_box_link_head[1];
          
    $content .= '  <li><a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' '</li>' "\n";
        }
        
    $content .= '</ul>' "\n";
      }
      
    $content .= '</div>';
    ?>

  3. #913
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    Call to undefined function

    This indicates that categories_dressing_functions.php is not in the correct place, or is otherwise not working.

  4. #914
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Categories Dressing

    i think i just realized what the problem might be...

    since we are running this thru a duplicate of the site, located at /catalog1.... my guess is that the program isnt written to know to look for the files within that substructure.

    if this is the case, i can think of two solutions... tell me what you think:

    make a few minor changes to the code temporarily, telling it to bypass and go thru the /catalog1 before getting into templates/images etc

    or, could i upload all the files EXCEPT the tpl_categories.php file to the 'regular' locations and leave the tpl_categories.php in the folder thru /catalog1

    IF so, will it disrupt the regular site in any way?

    awaiting your reply,
    ginny

  5. #915

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    nidkolio - The list marker spacing is set by internal CSS layout and is not controllable in the current version of CSS. There have been proposals to allow setting many more aspects of lists, and it will probably be possible in a future version.
    Thank you!
    I will survive with this space after all...
    Thanks for your great mode

  6. #916
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    If you have a complete Zen Cart installation in /catalog1, all mod files need to be in the /catalog1 folders. It would be asking for trouble as well as very time-consuming to make temporary changes to the file lookup system. If you are not going to simply move the /catalog1 version to the root when you have made the changes but try to move the changes to the root version, you can do that by just copying the mod files after all tweaking is done.

  7. #917
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Categories Dressing

    i do have a complete installation in /catalog1
    and i have uploaded the mod to all correct files within /catalog1

    i am going to try again, just to ensure i did it properly...

  8. #918
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Categories Dressing

    ok, just reloaded the category dressing files from a fresh download...

    same error

    ran debug utility again, same issue on line 41

    my guess is that the issue is because it is down in this subfolder /catalog1

    i will ask nate if i can try a quick upload to his regular site, all i have to quickly replace the tpl_categories.php file back to the original to repair.

    am i correct in understanding that the additional files will 'lay dormant' if the tpl_categories.php file is the original, not the one with the mod? (basically, will the other files conflict with anything if the mod tpl_categories.php is not in place?)

  9. #919
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    The functions and defines files will be effectively dormant unless the mod tpl_categories file is there to use their output.
    The subfolder has nothing to do with the problem - the mod operating in the subfolder installation will see that as the root.
    Are you sure you have all template folder names correct?

  10. #920
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Categories Dressing

    well, if you're sure its not the problem... then lets tackle other options... i just dont want there to be something screwy in having this alt catalog1 file and me waste your time working on it.

    with that said, i do have everything duplicated in catalog1, however if you click on any link when on a page in catalog1, such as home... it links me back to the default mojoleather.com page... so to view any pages in catalog1 i have to physically type in the url.

    i do not know if this would be causing the issue...

    as for proper upload, i do have everything named properly, changing the your_template to simple_zen... and i have gotten your mod to work correctly on my site... so i dont feel like there are any issues with installation

    are there any known mod conflicts that could be in play here? wondering if nate has a mod installed that i dont know about that is causing an issue... not likely i guess, but thought id ask.

    running a quick errand... be back in about 1 1/2 hrs... looking forward to your reply.

    thanks as always glenn,
    ginny

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 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