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