petsk Posted March 5, 2004 Share Posted March 5, 2004 Hi, I have a question about the box layouts.. I wan?t to change the layout of the "information" box, and that?s the only box I wanna change the look on, all others remaining "orginal". I suppose it?s the file catalog\includes\boxes\information.php that needs to bee modified, stylesheet.css and perhaps even catalog\includes\classes\boxes.php, or am I totaly lost? :unsure: How can this be done? I use the latest STS version, if that helps in any way <_< Hope someone can help me whit this :D Link to comment Share on other sites More sharing options...
paulm2003 Posted March 5, 2004 Share Posted March 5, 2004 The information box is a static box (it only echo's some texts), so it seems to me you can simply delete the contents of information.php and put anything inside it what you like. And if you assign some classes/id's to the new information.php content you create, you can style it through the stylesheet. (don't use the STS myself so don't have detail on that) Link to comment Share on other sites More sharing options...
petsk Posted March 5, 2004 Author Share Posted March 5, 2004 Okay! :D The thing is that I wan?t the links (shipping, privacy, contact and conditions) from the information box to appear at an other place of the page, and i wan?t them to be "formatted" whit an other style than the rest of the boxes. But i don?t know how to do this!? I?m not a php programmer :( Now if I comment/delete these 3 lines belove in information.php the heading title and graphics dissapears, so far so good :) But the stylesheet.css is still "formatting" the text and ads some table background color etc. And THAT?s what I wan?t to get rid in this box :huh: catalog/boxes/information.php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); Link to comment Share on other sites More sharing options...
241 Posted March 5, 2004 Share Posted March 5, 2004 Is your plan to have this information in a header or footer bar if so I have the code for that and can advise on style class No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
petsk Posted March 6, 2004 Author Share Posted March 6, 2004 Ohh, that sounds greath :rolleyes: I think I?m going to put it in the header, at the very top of the page, or somewhere near the "my accont/checkout/cart" -buttons. B) Thanks man! :D Link to comment Share on other sites More sharing options...
241 Posted March 6, 2004 Share Posted March 6, 2004 try adding this to your catalog/includes/header.php <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="head2"> <td align="center" class="head2"><?php echo ' <a class="headerNavigation" href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>' . ' | ' . "\n"; ?> <?php echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>' . ' | ' . "\n"; ?> <?php echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>' . ' | ' . "\n"; ?> <?php echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a>' . ' | ' . "\n"; ?> <?php echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>' . ' ' . "\n"; ?> </td> </tr> </table> and this to your catalog stylesheet TR.head2 { background: #66330; } TD.head2 { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #663300; color: #ffffff; font-weight: bold; } you will need to change the colour to match your site background: #663300; for the background colour and color: #ffffff; for the text colour No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
petsk Posted March 6, 2004 Author Share Posted March 6, 2004 I can?t get it working <_< Nothing is happening, no new links in the header are displayed, no errors, no nothing :( It?s Problebly the STS that?s "messing it up", do you know what has to be modified in the STS-files? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.