Results 1 to 5 of 5

How do I get rounded box corners in Fallback?

This is a discussion on How do I get rounded box corners in Fallback? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm a newbie and I'm loving osCMax! One thing that I have not been able to figure out and I ...

      
  1. #1
    Lurker
    Join Date
    Oct 2005
    Posts
    4
    Rep Power
    0


    Default How do I get rounded box corners in Fallback?

    I'm a newbie and I'm loving osCMax! One thing that I have not been able to figure out and I have not been able to find it in the forums is how to get rounded corners on the info boxes. I have found instructions on how to do it in OsCom, but I'm using the fallback template and it seems to be a different deal. Can anyone help please?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: How do I get rounded box corners in Fallback?

    You need to edit the box that you want the corners changed. Find or add these variables to your box:

    $corner_left = 'rounded';
    $corner_right = 'square';

    Change rounded or square to as needed...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Oct 2005
    Posts
    4
    Rep Power
    0


    Default RE: How do I get rounded box corners in Fallback?

    Thanks Michael but I have looked into the box files in includes\boxes directory and when I check categories.php for example, it already has the corners assigned like this:

    $boxHeading = BOX_HEADING_CATEGORIES;
    $corner_left = 'rounded';
    $corner_right = 'square';

    but my boxes in Fallback are coming up with square corners nevertheless...

    When I look in the template directory and specifically in boxes directory within the fallback directory, I can only find one file and it is: box.tpl.php so there aren't any files for each box in here. Am I looking in the wrong places?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: How do I get rounded box corners in Fallback?

    Change corner_right to rounded, or simply replace the square .gif with the rounded one in your images dir, so even though it calls the supposed square gif, you have replaced it with an image that is rounded. There are many ways to get this done without editing any code at all.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Lurker
    Join Date
    Oct 2005
    Posts
    4
    Rep Power
    0


    Default RE: How do I get rounded box corners in Fallback?

    I solved it! Perhaps this is not the correct way of doing it, but it works for me. I simply copied the round box corner gifs from the original Oscommmerce files and placed them into the images\infobox directory in my osCMax installation and then changed the "square" to "rounded" command as per your instructions at it all fell into place. The problem is that there are no rounded corner gifs in the directory to start with so it doesn't really help if you simply write in
    $corner_left = 'rounded';
    in the PHP file.

    Thanks for you help Michael!

    It's looking good!

Similar Threads

  1. Separating and Moving boxes in osCMax "fallback"
    By mrf62 in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 12-31-2006, 06:27 AM
  2. Rounded corners!?, HOW?
    By calle in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-17-2004, 04:19 PM
  3. Rounded corners on boxes
    By Sam_Iam in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-27-2004, 11:11 AM
  4. Removing the rounded corner from the "New For..."
    By cvc505 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 04-28-2004, 08:59 AM
  5. red x's in infobox corners
    By pacman in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 03-19-2004, 01:33 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
  •