Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Where do I set the cell background colour in categories/subcategories?

This is a discussion on Where do I set the cell background colour in categories/subcategories? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi. Yes it's me again My site is a tabular presentation with categories and sub categories which do not need ...

      
  1. #1
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Where do I set the cell background colour in categories/subcategories?

    Hi. Yes it's me again

    My site is a tabular presentation with categories and sub categories which do not need images.

    The text of subcategories in 2.0.25 is obviously centred but looks messy with differing length of text spread over 3 columns and several rows

    Antibodies + Antigen : Immune Systems Ltd

    I think it might look more balanced if each cell was the same size and the background was shaded/coloured. Is this possible?

    Cheers.
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Post Re: Where do I set the cell background colour in categories/subcategories?

    Short answer: Yes.
    Longer answer: Do some redesign of index_nested.tpl.php, defining new/replacement classes and css - with FF/Firebug to help.

    BTW: good use of "For more information, please visit this products webpage." but go into includes/languages/english and change to something like "Click here for PDF product specifications". I also wonder if you're hard-coding the full URL, or better, a relative one by just using... pdf/fastread.pdf
    Last edited by ridexbuilder; 08-11-2010 at 06:04 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Re: Where do I set the cell background colour in categories/subcategories?

    Hi ridexbuilder,

    A bit off topic but as I am replying to one of your replies to the thread I thought it would be easier to follow..

    I have a couple of problems with the product link now... It looks like its a redirect. Is this correct? I was expecting an a link.

    I had used the absolute URL in the product description as you commented, and it used to work but this now translates into a very long redirect and I end up with a blank page. You mentioned relative url but I cannot get this to work and get a "Server not found" error.

    I did tried your suggestion
    pdf/product.pdf but the url appears as http://pdf/fastread.pdf

    I have also tried various permutations eg ../pdf/fastread.pdf

    Could you give me some guidance on the syntax.

    Cheers.
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Lightbulb Re: Where do I set the cell background colour in categories/subcategories?

    Example product?
    Also, should read as
    Code:
    pdf/duotray.pdf
    or similar.

    Hold on... that's the URL link in the Admin for a product? May well be hard-coded as a redirect, due to it normally being used to reference an external site. Would require some 'tweaking' to prevent it doing that and would break any possibility to use it for its' intended purpose, AFAIK.
    Last edited by ridexbuilder; 10-05-2010 at 07:07 AM. Reason: Found a product
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Default Re: Where do I set the cell background colour in categories/subcategories?

    You'd need to change from line 183, of product_info.tpl.php
    Code:
          <tr>
            <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
          </tr>
    to something like...
    Code:
          <tr>
            <td class="main"><?php echo '<a href = ' . $product_info['products_url'] . '>' . TEXT_MORE_INFORMATION . '</a>'; ?></td>
          </tr>
    Untested!
    Hosting plans with installation, configuration, contributions, support and maintenance.

  6. #6
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Re: Where do I set the cell background colour in categories/subcategories?

    Thanks for getting back. I will persist with the full admin URL for now.

    When tested in FCKeditor the product link works fine and the url appears as http://www.immunesystems.co.uk/catalog/pdf/fastread.pdf but when clicked from the webpage

    Immune Systems Ltd : FastRead Counting Slides (100 slides/box) [BVS100] - £121.00

    The url appears as:

    redirect.php?action=url&goto=www.immunesystems.co. uk%2Fcatalog%2Fpdf%2Ffastread.pdf&osCsid=3dc76d99e 554e393582bf5ddaf6e64af

    and gives a blank page. I uploaded the original backup product_info.tpl.php so its not that. Any ideas?

    Cheers.
    Last edited by mad_dexter; 10-05-2010 at 07:38 AM. Reason: missed url
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  7. #7
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Re: Where do I set the cell background colour in categories/subcategories?

    Actually, I get a different URL link everytime I refresh the page. Please dont say its a virus
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  8. #8
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Default Re: Where do I set the cell background colour in categories/subcategories?

    Did you try the code in post #5 ?

    P.S. There's a big section of hidden code at the bottom of the page.
    Last edited by ridexbuilder; 10-05-2010 at 07:46 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  9. #9
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Re: Where do I set the cell background colour in categories/subcategories?

    The code is to do with DHTML menu to define that expands when hovering over the LH menu.

    I will try your suggestion now.
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  10. #10
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    3


    Default Re: Where do I set the cell background colour in categories/subcategories?

    Hi ridexbuilder

    Yes, tried the code from #5
    The a href looks good, but the page goes to

    http://www.immunesystems.co.uk/catalog/%s

    Firebug shows...

    <td class="main">
    <a href="www.immunesystems.co.uk/catalog/pdf/fastread.pdf"></a>
    <a target="_blank" href="%s>
    <u> Product Information sheet </u>
    </a>
    .
    </td>
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

Page 1 of 2 12 LastLast

Similar Threads

  1. background colour
    By shopping.uk in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 07-16-2009, 10:46 PM
  2. categories and subcategories
    By Lara Croft in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 01-05-2007, 08:25 AM
  3. Changing search box background colour
    By PerfectEye in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-06-2005, 09:47 AM
  4. pop up image background colour change
    By starchild in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-01-2003, 06:13 AM
  5. Background colour in columns only
    By adder667 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 04-14-2003, 02:02 AM

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
  •