Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Apr 2006
    Posts
    146
    Plugin Contributions
    0

    Default betterCategories mod

    I have installed the betterCategories mod and it works great but for the last week or two I have tried time and time again to also apply this mod to the information box... Now I don't know about any of you but what is the point to make only one box look real cool and the rest just so-so? XD well if any of you know how to configure this mod to include other boxes other then just the Categories box please let me know.

    Thanks

  2. #2
    Join Date
    Apr 2006
    Posts
    146
    Plugin Contributions
    0

    Default Re: betterCategories mod

    okay well I sat down and told myself that I wouldn't get up unless I got this thing to work... well it almost works... all I need to do is get rid of the stupid indent and it should be good to go... here is what I have as of right now... if you see anything wrong (I'm sure there is) please let me know!

    Thanks...

    This code is in the tpl_information file... remember I have installed the betterCategories mod already.

    <?php
    $content = '';
    for ($i=0;$i<sizeof($information);$i++) {
    switch(true) {
    case ($information[$i]['top'] == 'true'):
    $new_style = 'category-top';
    break;
    case ($information[$i]['has_sub_cat']):
    $new_style = 'category-subs';
    break;
    default:
    $new_style = 'category-products';
    }
    if (zen_get_product_types_to_category($information[$i]['path']) == '3' or ($information[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip it this is for the document box
    } else {
    $content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $information[$i]) . '"><div class="betterCategories">';
    if ($information[$i]['current']) {
    if ($information[$i]['has_sub_cat']) {
    $content .= '<span class="category-subs-parent">';
    $content .= info_with_pointer($information[$i], 'down');
    $content .= '</span>';
    } else {
    $content .= '<span class="category-subs-selected">';
    $content .= info_with_pointer($information[$i], 'nosub');
    $content .= '</span>';
    }
    } else {
    if ($information[$i]['has_sub_cat']) {
    $content .= info_with_pointer($information[$i], 'right'); }
    else {
    $content .= info_with_pointer($information[$i], 'nosub'); }
    }

    if ($information[$i]['has_sub_cat']) {
    $content .= CATEGORIES_SEPARATOR;
    }
    //$content .= '</a>';
    $content .= '</div></a>';
    }
    }

    //this is the function that inserts the 'pointer' (or 'disclosure triangle')
    //before the name of the category, in the 'Categories' sidebox.
    //$categoryName should be a string as contained in
    //$box_categories_array[$i]['name'] above, which already includes
    //the category name with all the necessary subcategory indents up front,
    //as specified by the user in the Admin Panel.
    //$categoryType will be either 'down', 'right' or 'nosub', which
    //specifies which picture appears next to the category name:


    function info_with_pointer( $categoryName, $categoryType) {

    //picking the appropriate pointer image:
    switch ($categoryType) {
    case "down":
    $pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . '/cat_pointer_down.gif');
    break;
    case "right":
    $pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . '/cat_pointer_right.gif');
    break;
    default:
    $pointer = zen_image(DIR_WS_TEMPLATE_IMAGES . '/cat_no_sub.gif');
    }
    $pointer .= $categoryName;
    return $pointer;
    }
    ?>

  3. #3
    Join Date
    Apr 2006
    Posts
    146
    Plugin Contributions
    0

    Default Re: betterCategories mod

    Well after trying to fix this stupid code for a couple hours and searching the forums I found someone that had a better categories mod fix... I have attached it to this post in hopes that it will help anyone else out there trying to get their categories and information boxes looking the same.
    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2006
    Posts
    208
    Plugin Contributions
    0

    Default Re: betterCategories mod

    Thank you for this fix.

    The only thing I really don't like about this mod is the author's warning:
    This mod may spoil your entire site. It may irreparably damage every file in your server, cause your server and personal computers to explode, resulting in severe physical damage and ample loss of property to you and your loved ones. You agree to use it at your own risk, and take full responsibility for any and all consequences. Absolutely no one should attempt to install these files in their server without having done a complete back up of all of their server assets
    Is it really that dangerous?

  5. #5
    Join Date
    Jun 2006
    Location
    Taos,NM
    Posts
    320
    Plugin Contributions
    0

    Default Re: betterCategories mod

    Quote Originally Posted by stbede77
    Well after trying to fix this stupid code for a couple hours and searching the forums I found someone that had a better categories mod fix... I have attached it to this post in hopes that it will help anyone else out there trying to get their categories and information boxes looking the same.

    I'd like to see what its done to enhance your site - URL?

    ~Laura

  6. #6
    Join Date
    Oct 2005
    Posts
    287
    Plugin Contributions
    0

    customer issue Re: betterCategories mod

    I have better categores on my site which is recently upgraded to 1.3.8a,

    I want to increase the font size of the Category text, yes I have installed better categories,

    I do not find where I can do this,

    some help will be appreciated.

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

    Default Re: betterCategories mod

    A link to your site will make it easier to help...

  8. #8
    Join Date
    Dec 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: betterCategories mod

    I have no complaints, seems to work great for me....

    I just would like to know how to remove/change the small pictures on the left side of the info box.

    THX

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

    Default Re: betterCategories mod

    Again, a link to your site will make it easier to help, especially as this is not stock Zen Cart function but an installed mod.

  10. #10
    Join Date
    Dec 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: betterCategories mod

    opps sorry!

    Here is a link to my site:
    http://www.2antioch.org/store/index.php

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. betterCategories for v1.3.7
    By paddy_uk2007 in forum General Questions
    Replies: 1
    Last Post: 5 Sep 2007, 02:50 PM
  2. bettercategories images.
    By colorama in forum General Questions
    Replies: 0
    Last Post: 2 Aug 2006, 04:04 AM
  3. bettercategories bug?
    By dvdguy in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 18 Jun 2006, 04:22 AM
  4. Re: betterCategories mod
    By skeeter in forum Addon Sideboxes
    Replies: 0
    Last Post: 10 May 2006, 10:36 PM

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