Guest Posted November 17, 2002 Posted November 17, 2002 Hi again... I'm going nuts trying to figure this out, as my PHP skills aren't that fantastic... I'm trying to edit the box.php so it'll draw out an extra boxheader after the boxcontent. At the moment it is drawn as boxheader then boxcontent. Is it possible to make it draw another boxheader below the boxcontent? Attached, I've shown what I have at the moment. I'm trying to get another boxheader below so I can assing css values to show background pictures. I've been playing around with box.php, however I couldn't get it to draw the boxheader. Amy I heading the wrong way? Would somebody point me the right way? Thank you for your help.. Overdosed
Ajeh Posted November 17, 2002 Posted November 17, 2002 Okay ... this is fun ... Open /includes/classes/boxes.php Copy the whole class: class infoBoxHeading extends tableBox { To the same exact thing except rename all references to infoBoxHeading to infoBoxFooter Don't rename the class="infoBoxHeading" settings these you can fuss with later. Now say you were editing /includes/boxes/bestsellers.php After the: new infoBox($info_box_contents); Add: $info_box_contents= array(); $info_box_contents[] = array('align' => 'left', 'text' => 'Bottom' ); new infoBoxFooter($info_box_contents,false,false); What ever you make that 'text' => 'Bottom' read is what the bottom will look like.
sw45859 Posted November 17, 2002 Posted November 17, 2002 think outside the box.php, lol, had to say it, to add another heade look at the box's php file and you will see where the header is added.
Guest Posted November 17, 2002 Posted November 17, 2002 Yiiipii Kay Yay... Thanks Ajeh, the codes worked wonderfully.... Finally understood what the boxes.php actually does. I've implemented it and added two more entries for the css, and this is what I got. But I have this problem, I can't seem to remove that space in between. I've tried aligning the css to top, but Without success. Any ideas? Again Thanks Ajeh & sw45859... :D Overdosed
Freedom Fighter Posted November 17, 2002 Posted November 17, 2002 Overdose, I'm trying to learn how to do this myself. I don't understand how to do it though. Could you please help me? Thanks, Alex Extreme Alterations
Guest Posted November 17, 2002 Posted November 17, 2002 Hey Alex, I'm still going through my codes hoping that I will find something, unless someone actually found the problem first... Practically most of the modification in OSC design layout is tuned from the catalog/stylesheet.css Try Playing around with it... :D
Freedom Fighter Posted November 17, 2002 Posted November 17, 2002 In the stylesheet.css file.. What's the part for the colors of the bars on the site ? Alex Extreme Alterations
Guest Posted November 17, 2002 Posted November 17, 2002 I think it's the TD.Headerinfo if I remember correctly... Play around... It's pretty Easy...
Ajeh Posted November 17, 2002 Posted November 17, 2002 That white space looks like something in your stylesheet. On mine, I do not have any additional spacing added: http://www.thewebmakerscorner.com/snapmods_new/ I added a bottom row to the Best Sellers on there. I mainly have color changes on my stylesheet, so I do not think I changed anything that would remove the white space.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.