osCmax v2.5 User Manual
Results 1 to 6 of 6

Will taking this category code out work ok?

This is a discussion on Will taking this category code out work ok? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Sorry guys, I was having such a headache for the last couple of days trying to find a way of ...

      
  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    30
    Rep Power
    0


    Default Will taking this category code out work ok?

    Sorry guys, I was having such a headache for the last couple of days trying to find a way of working with the info boxes and putting an image in between 2 seperate info boxes. That I didnt know what else I could do. Searched high and low for BTS Infobox and All I could find was "feature bashing" pages with way too much information for you to make sense of anything? or something that doesnt explain what I am looking for.

    Standard Osc was easy, you just add an image code in between the boxes in column_left/right.php. Job done. Add image headers to info boxes. Just add a table at the top and bottom with an image job done. But here, am pulling my hair out trying to figure out how to do it.

    So am having to add images to infobox headers the way you did it on osc as I still dont have a clue about the infoboxes on BTS. If someone can tell me taking out most of these codes from includes/boxes/categories.php will it have a bad effect on the store?




    $boxHeading = BOX_HEADING_CATEGORIES;
    $corner_left = 'rounded';
    $corner_right = 'square';
    $box_base_name = 'categories'; // for easy unique box template setup (added BTSv1.2)

    $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)

    function tep_show_category($counter) {

    // BoF - Contribution Category Box Enhancement 1.1
    global $tree, $boxContent, $cPath_array, $cat_name;

    for ($i=0; $i<$tree[$counter]['level']; $i++) {
    $boxContent .= "&nbsp;&nbsp;";
    }
    $cPath_new = 'cPath=' . $tree[$counter]['path'];
    $boxContent .= '<a href="';
    $boxContent .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

    if (tep_has_category_subcategories($counter)) {
    $boxContent .= tep_image(DIR_WS_IMAGES . 'pointer_blue.gif', '');
    }
    else {
    $boxContent .= tep_image(DIR_WS_IMAGE

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Will taking this category code out work ok?

    Do you need the image to inside an infobox or just between two infoboxes?

    Ie. do you want the infobox round the image you are putting in?

    pgmarshall

  3. #3
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Will taking this category code out work ok?

    I have re-read your post - but I am still a little unclear what it is you are trying to do ...

    If you want to edit the infobox itself then look at

    catalog/templates/fallback/boxes/box.tpl

    This is the HTML for creating the boxes - you could add an image to the header in here - but it would have to be the same for all the boxes.

    Or do you want to have a different image for each infobox?

    pgmarshall

  4. #4
    Member
    Join Date
    Apr 2009
    Posts
    30
    Rep Power
    0


    Default Re: Will taking this category code out work ok?

    Ok here you go, maybe this might clear things up a bit.




    As you can see there is an image right in between 2 of the infoboxes. I will try the box.tpl.php files. But is that where you give individual infobox its own heading image? Like in the picture above for categories and Policies? How I did that was by taking those codes out which of course I dont know if it will have a bad effect on the store. Please help.
    Last edited by heezay; 04-15-2009 at 05:42 AM.

  5. #5
    Member
    Join Date
    Apr 2009
    Posts
    30
    Rep Power
    0


    Default Re: Will taking this category code out work ok?

    Anyone? Help?

  6. #6
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Will taking this category code out work ok?

    Your image did not load ...

    anyway Michael has answered your query on your other post ...
    pgmarshall
    _______________________________

Similar Threads

  1. Does your "Buy Now" button work in category view?
    By treb in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 06-21-2005, 11:45 AM
  2. Taking out right column boxes
    By fateimport in forum osCMax v1.7 General Mods Discussion
    Replies: 8
    Last Post: 03-07-2005, 08:30 AM
  3. Move to TOP category doesn't work
    By Robrob in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-07-2004, 12:30 PM
  4. Taking OSCommerce off site?
    By WebMistress in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-12-2003, 03:31 PM
  5. What code for sub-category array?
    By u2web in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-28-2003, 04:03 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
  •