Guest Posted September 2, 2003 Share Posted September 2, 2003 I've been browsing through the forums and found two questions by people who wanted to know how to give the "New Products For..." box on the main page round edges, or no round edges (instead of the standard left round edge, right straight edge). Changing the infoBox settings in boxes.php won't work. As is also the case with questions I post (I've never had one single reply so far), no one bothered to reply or those that did didn't know how to fix the problem. Since this was my problem as well, I did some digging myself and came up with the solution. If you want to give "New Products For..." round edges, you need to make the following change in catalog/includes/modules/new_products.php: Original new contentBoxHeading ($info_box_contents); Change to new infoBoxHeading($info_box_contents, true, true); This will make the box have both left and right round edges. Change true to false to get straight edges. Please just reply to this if you found it useful, I'm getting rather tired of never having any replies to anything I post! Link to comment Share on other sites More sharing options...
Guest Posted September 2, 2003 Share Posted September 2, 2003 Willem, Not everyone who might use this will see it in the first day or so. This forum is here so that people who are having a specific problem can search it to try to resolve the problem. Thus, many users who might find this useful won't see it for a long period of time. Thanks for posting, Matt Link to comment Share on other sites More sharing options...
Guest Posted September 3, 2003 Share Posted September 3, 2003 Matt, perhaps you are right. I'd like to think that my own posted questions are rather smart :wink: cos I have not had any replies to any of my (three or so) questions so far. Oh well, it does lead to innovation as you really have to do the digging yourself if you want to have an answer anytime soon :D Link to comment Share on other sites More sharing options...
Guest Posted September 9, 2003 Share Posted September 9, 2003 Mhmm...I added ",false,false" as I want to have square corners. And it does not work. Loading the page maybe for one small second the corners are both square and then they change back as before - left corner round and right corner square. I think I should change somewhere else than catalog/includes/modules/new_products.php BECAUSE initially the corners are round and square, meaning "true, false", but in this file these are not defined as there is nothing next to "info_box_contents". Janika Link to comment Share on other sites More sharing options...
H2O Posted September 10, 2003 Share Posted September 10, 2003 Mhmm...I added ",false,false" as I want to have square corners. And it does not work. Loading the page maybe for one small second the corners are both square and then they change back as before - left corner round and right corner square. Janika Actually, you didn't follow the directions correctly. He also asked to change contentBoxHeading to infoBoxHeading in addition to adding the ,false,false. For some reason, they've made both classes behave differently. Another way to get this to work is by modifying /includes/classes/boxes.php file by simply changing the contentBoxHeading class a little: Change (around line 155): 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')), to 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')), We are just replacing the rounded corner (corner_left.gif) with the squared one (corner_right_left.gif). HTH :) Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2003 Share Posted September 10, 2003 Thank You! You are right, I missed this contentbox and infobox bit and started thinking that something is wrong here! Thanks again, janika Link to comment Share on other sites More sharing options...
Guest Posted July 4, 2006 Share Posted July 4, 2006 I know its an old post but thanks for this info I had been looking for ages!! Do people know that you can also change the infoboxes the same way i.e have both sides rounded, none rounded or any combination of the 2. You do it by: 1. Go to catalog/includes/boxes 2. Select the infobox you want to change. 3. Find the line new infoBoxHeading($info_box_contents, true, false); it is not always on the same line number so you may have to search for it. 4. by setting true, false - (as in the example above) you get a rounded left side and straight right side. by setting true, true - you get both sides rounded by setting false, false - you get both sides straight by setting false, true - you get left side straight and right side rounded. Of course if you change the images in catalog/images/infobox folder you can get whatever you want to appear. Hope this helps someone!! Link to comment Share on other sites More sharing options...
my scrap shop G Posted July 12, 2006 Share Posted July 12, 2006 what a goose I am! at some point I have deleted the gif for the rounded corners, can anyone please PM me and send them? ta!!!!!!!! never mind......... i'm not such a goose, i was smart enough to keep them in a folder somewhere.... phew. Link to comment Share on other sites More sharing options...
my scrap shop G Posted July 12, 2006 Share Posted July 12, 2006 actually I am a goose, can someone please tell me how to get the rounded corners to be the same colour as my boxes? Link to comment Share on other sites More sharing options...
my scrap shop G Posted July 12, 2006 Share Posted July 12, 2006 I'll just continue to jabber on here by myself lol, I photoshopped them. pretty cool actually just writing in the colour code and changing it to match, was easier than expected! Link to comment Share on other sites More sharing options...
Guest Posted July 24, 2006 Share Posted July 24, 2006 I'm a new user of osC, and so far I am loving it! I was browsing the posts and just found this one. I also changed the color of my corners to match the rest of my store. I don't have my store up yet, as I am still finishing it. As a photographer, photo artist, and graphic artist, I live with PhotoShop open! That was my first thought once I found the gif files of the corners. I'm glad I am not the only one. Sorry I didn't start using osC a little earlier, I could have answered your question! I downloaded and printed the osC documentation so that I could have it in front of me as I work. It is an extremely useful book of about 116 pages. I printed it and then hole punched it and put it in a 3 ring binder. There was nothing in there about changing the colors of the corners though! They can't cover everything in the documentation or it would be a lot larger than 116 pages! Link to comment Share on other sites More sharing options...
domeboy Posted October 17, 2006 Share Posted October 17, 2006 I know its an old post but thanks for this info I had been looking for ages!! Do people know that you can also change the infoboxes the same way i.e have both sides rounded, none rounded or any combination of the 2. You do it by: 1. Go to catalog/includes/boxes 2. Select the infobox you want to change. 3. Find the line new infoBoxHeading($info_box_contents, true, false); it is not always on the same line number so you may have to search for it. 4. by setting true, false - (as in the example above) you get a rounded left side and straight right side. by setting true, true - you get both sides rounded by setting false, false - you get both sides straight by setting false, true - you get left side straight and right side rounded. Of course if you change the images in catalog/images/infobox folder you can get whatever you want to appear. Hope this helps someone!! Great, comment. I have already modified all my boxes to my liking, but now I have this desire to add a couple upsidedown corners in order to round the bottom corners of the top line in my header. SITE. I will need to upload new corner gifs, no problem. But now I'm not quite sure how to get started ... Can I add another if statement in the class infoBoxHeading extends tableBox section of boxex.php? and I probably need to add a couple new if statements somewhere like if ($bottom_left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/bottom_corner_left.gif'); and if ($bottom_right_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/bottom_corner_right.gif'); ... anyway, guidance on what I should do to tackle this would be greatly appreciated... Link to comment Share on other sites More sharing options...
Hutchmeister Posted October 19, 2006 Share Posted October 19, 2006 Thanks WillemB! 3 and a bit years later and any your post is still being usefull :D Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2006 Share Posted October 19, 2006 Haha, yes this is actually pretty useful still. I'm glad I found it. Link to comment Share on other sites More sharing options...
squeekit Posted October 20, 2006 Share Posted October 20, 2006 hmmm - you know there's some related stuff here too: make boxes slightly opaque, almost transparent and not a solid block of colour? - i know, i put some it there ;) Link to comment Share on other sites More sharing options...
ngets777 Posted February 5, 2008 Share Posted February 5, 2008 changing contentBox to infoBox works for me. Thanks much guys, I am learning a lot. Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2008 Share Posted December 19, 2008 Hahahaha, it might have been a long time coming, but here's your reply!!!! Helpful info, ta muchly. Cheers, Paul Link to comment Share on other sites More sharing options...
tomsdiecastcars Posted August 18, 2010 Share Posted August 18, 2010 Thanks so much! It worked. www.tomsdiecastcars.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.