yubnub Posted February 27, 2007 Share Posted February 27, 2007 Hi all, Firstly many thanks to everyone who has posted and helped on this forum as it has been a great source of info whilst readying up my store. Sadly I am stuck and would welcome any help regarding getting a new information box that I have added to the main page of my store to match graphical layout of the others I have. The box is correct at the top (heading) and at the bottom but I cannot get it to display the sides of the box? The box I am trying to display should have a header, a footer, four links as content - and sides to the box I have tried playing around with the file and have managed to get it to display correctly at the expense of not displaying the links I want it to! - I gues I am just missing some script or am missing it or have it in the wrong place the code is as follows (this is the code that just displays "array" instead of the four links i want it to!) <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td align="left" style="padding-top:3px; "> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); $info_box_contents .= '</table>'; $info_box_contents = array(); $info_box_contents[] = array('text' => '<div style="border:1px solid #A6B3BA; border-width:0px 1px;">' .$info_box_contents.'</div>'); new infoBox($info_box_contents); new infoBoxFooter(''); ?> </td> </tr> <!-- information_eof //--> This code below is of another of my infor boxes that does display graphicly correctly (altough with completely different content!) <?php /* $Id: extra_info_pages.php,v 4.50 2003/06/09 22:07:52 hpdl Exp $ contribution is : Extra pages-info box w- admin [url="http://www.oscommerce.com/community/contributions,2021"]http://www.oscommerce.com/community/contributions,2021[/url] osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ $page_query = tep_db_query("select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text, s.intorext, s.externallink, s.link_target from " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id where p.status = 1 and p.page_type != 1 and s.language_id = '" . (int)$languages_id . "' order by p.sort_order, s.pages_title"); ?> <!-- info_pages //--> <tr> <td align="left" style="padding-top:3px; "> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_PAGES); new infoBoxHeading1($info_box_contents, true, true); $rows = 0; $page_list = '<table border="0" width="100%" cellspacing="2" cellpadding="1">'; while ($page = tep_db_fetch_array($page_query)) { $rows++; $target=""; if($page['link_target']== 1) { $target="_blank"; } if($page['pages_title'] != 'Contact Us'){ $link = FILENAME_PAGES . '?pages_id=' . $page['pages_id']; }else{ $link = FILENAME_CONTACT_US; } if($page['intorext'] == 1) { $page_list .= '<tr><td class="infoBoxContents"><a target="'.$target.'" href="' . $page['externallink'] . '">' . $page['pages_title'] . '</a></td></tr>'; } else { // commented for fix of cart empty 4.40 by azer $page_list .= '<tr><td class="infoBoxContents"><a target="'.$target.'" href="' . tep_href_link($link) . '">' . $page['pages_title'] . '</a></td></tr>'; $page_list .= '<tr><td class="infoBoxContents"><a target="'.$target.'" href="' . tep_href_link(FILENAME_PAGES, 'pages_id=' .$page['pages_id'], 'NONSSL') . '">' . $page['pages_title'] . '</a></td></tr>'; } } $page_list .= '</table>'; $info_box_contents = array(); $info_box_contents[] = array('text' => '<div style="border:1px solid #A6B3BA; border-width:0px 1px;">' .$page_list.'</div>'); new infoBox($info_box_contents); new infoBoxFooter(''); ?> </td> </tr> <!-- info_pages_eof //--> many thanks for your time Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.