Guest Posted March 10, 2006 Posted March 10, 2006 I'm trying to figure out the following customizations but just can't seem to find the spots.. 1. I wanted to create my own style/look for the boxes.. instead of just having the simple squares I wanted to use images as borders and what not.. I looked inside the /classes/boxes.php but couldn't find any html in there... is it easy to edit the box design? and which file is the info in? 2. Ok, so since I gave up on the above... I atleast wanted to make them a little nicer looking by adding a background into the boxes on the side... i tried to find the right spot on the stylesheet and added a background-image: tag in various spots but none of them seemed to change the background inside of the boxes... Anyone done this that's willing to help me out? show me the way :P
kgt Posted March 10, 2006 Posted March 10, 2006 If nobody has answered, it's probably because you're basically asking for a tutorial, which is an incredibly broad topic and would take someone a lot of time to answer. Get started here: http://www.oscommerce.info/kb/osCommerce/C...sign_and_Layout And post back if you can narrow your questions down some more. You'll get more responses the more specific you can make your questions. Contributions Discount Coupon Codes Donations
Guest Posted March 13, 2006 Posted March 13, 2006 Well, you know the basic osc layout all the infboxes are just simple grey tables which looks pretty boring.. now I designed a nicer infbox in photoshop and chopped it into pieces and am just trying to figure out where in the code it generates the look of all the info boxes so I can update it with my new box design I made. I looked inside of classes/boxes.php which I figure is the code that generates the look of the boxes, but it looks way too confusing for me. I was hoping for something more easy to customize like template based.. I got my html look/code and inside of that I could just post the variables as to where i want things to be such as <-- box heading --> and then <-- box contents --> but thats obviously not the case. Any info or help is greatly appreciated.
muskokee Posted March 14, 2006 Posted March 14, 2006 Any info or help is greatly appreciated. Each box (in includes/boxes/whatever.php) has a line which reads: new infoBoxHeading($info_box_contents, true, false); This controls the nice little corner images for the box headers. "True" means the image is used...false=not used. Change these for each of your boxes if you want. If you don't want the image that comes with osc then create new corners and upload them: look in images/infobox for the proper names of the image files(much easier to name the new images the same as the old ones). The classes/boxes.php tells you which css classes the boxes use. For instance: $this->table_parameters = 'class="infoBoxContents"'; tells you that that specific section is controlled by a class called infoBoxContents. Look for these classes in the boxes.php and then in your stylesheet so that you can change them to whatever color or background you choose. Should get you started. After that though...you might just have to play around. It's fun that way! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.