ianprend Posted December 11, 2004 Posted December 11, 2004 I would like to add a modification to the infoboxes on each side of the page seperately. However when I place my code into /includes/classes/boxes.php it places the modifications onto all the infoboxes on the page including the "New Products for xxxxxxx" box. The modification I'm making to the boxes is simply 2 different .jpg files. One to go underneath the boxes on the left hand side of the page and the other one to go underneath the right side boxes ... leaving the centre boxes like 'new products for' etc as they originally are. Does anybody know a way I can modify the column left, column right and centre infoboxes seperately?
Jack_mcs Posted December 11, 2004 Posted December 11, 2004 I'm not clear if you are wanting to add the image to every infobox or just at the bottom of the left and right columns. If the former, you will have to edit each infobox file (includes/boxes/). If the latter, just edit the left and righ columns files. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
ianprend Posted December 11, 2004 Author Posted December 11, 2004 I'm not clear if you are wanting to add the image to every infobox or just at the bottom of the left and right columns. If the former, you will have to edit each infobox file (includes/boxes/). If the latter, just edit the left and righ columns files. Jack <{POST_SNAPBACK}> The 1st image was to go at the bottom of every box on the left (eg. categories,whats new, quick find etc)..and the other image underneath every box on the right (shopping cart, bestsellers etc). It is pretty much a shadow image to give the box a 3D look. It needs to go underneath the bottom of each box rather than inside the box itself. I tried your first suggestion above but it didn't seem to work, although there is a good chance I probably did it wrong. I was under the impression (although I'm only new to OS2) that the php files in includes/boxes controlled what goes inside each box and that includes/classes/boxes.php is the file that controlled the dimensions and overall design of the boxes on the outside which is where I need to put the image files. Am I wrong in this and if so how can I modify each infobox file as you have suggested above so that it will work
ozcsys Posted December 11, 2004 Posted December 11, 2004 There is a contribution that will set up each info box with its own class in the stylesheet so you can modify them seperately. I would use it. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
sandralk Posted December 11, 2004 Posted December 11, 2004 i think this contribution will do what you want: http://www.oscommerce.com/community/contri...,infobox+shadow
ianprend Posted December 11, 2004 Author Posted December 11, 2004 Thank you all for your help. The problem has been solved.. much appreciated :P
Jack_mcs Posted December 12, 2004 Posted December 12, 2004 The 1st image was to go at the bottom of every box on the left (eg. categories,whats new, quick find etc)..and the other image underneath every box on the right (shopping cart, bestsellers etc). It is pretty much a shadow image to give the box a 3D look. It needs to go underneath the bottom of each box rather than inside the box itself. I tried your first suggestion above but it didn't seem to work, although there is a good chance I probably did it wrong.I was under the impression (although I'm only new to OS2) that the php files in includes/boxes controlled what goes inside each box and that includes/classes/boxes.php is the file that controlled the dimensions and overall design of the boxes on the outside which is where I need to put the image files. Am I wrong in this and if so how can I modify each infobox file as you have suggested above so that it will work <{POST_SNAPBACK}> I know you said you have this solved but just to answer your question: you are correct in what you said for the most part. But if you want to change the look of each box, which is what I thought you were trying to do, then you would need to edit each box, assuming the image or text you are adding is supposed to be attached to the box. You could also just insert the image/text in between the boxes in the left or right column. It really depends on what you are trying to do. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.