Gimpz Posted February 15, 2009 Share Posted February 15, 2009 Hi again I've got a problem: None of my info boxes show up. I've gone through the column_right.php (and left) to check if any of them were commented out. Nope, all looked normal to me. I tried to add a few contributions which add boxes to the column, but they're not working either. Essentially I've only got one active column active (www.dell-direct.co.za) but nothing I do to add a box to that column works. Please can someone guide me. Link to comment Share on other sites More sharing options...
satish Posted February 15, 2009 Share Posted February 15, 2009 Is Your right column.php havng an include statement for the needed box. If Yes then paste the code of the file inlcuded. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Gimpz Posted February 15, 2009 Author Share Posted February 15, 2009 Here is my column code (right column) - left column is disabled. Is Your right column.php havng an include statement for the needed box. If Yes then paste the code of the file inlcuded. Satish <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 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 */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } require(DIR_WS_BOXES . 'boxad.php'); include(DIR_WS_BOXES . 'live_help.php'); include (DIR_WS_BOXES . 'rss_news.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } require(DIR_WS_BOXES . 'information.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); include(DIR_WS_BOXES . 'live_help.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); require(DIR_WS_BOXES . 'boxad.php'); include(DIR_WS_BOXES . 'live_help.php'); include (DIR_WS_BOXES . 'rss_news.php'); } ?> Link to comment Share on other sites More sharing options...
satish Posted February 15, 2009 Share Posted February 15, 2009 Are other boxes getting displayed. If Yes then I would like to see the code of require(DIR_WS_BOXES . 'information.php'); Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Gimpz Posted February 15, 2009 Author Share Posted February 15, 2009 Are other boxes getting displayed. If Yes then I would like to see the code of require(DIR_WS_BOXES . 'information.php'); Satish No boxes are being displayed. Checkout www.dell-direct.co.za Here is the information.php box code <?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> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $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>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
jhande Posted February 15, 2009 Share Posted February 15, 2009 Hey Allan, I visited your site and viewed the code. First off it looks as though you are using a template which will make it just about impossible for anyone here to truely help. But what I noticed from viewing your code... Your page is not calling for either the left or right columns. It seems that your Browse by Categories is called out in your footer. :blink: Here's the code I am referring to: <!-- footer //--> </td> <td width=205 valign=top> <table cellspacing=0 cellpadding=0> <tr><td height=1></td></tr> <tr><td height=29 class=ch8><span class=ch3><i>Browse by Categories</i></span></td></tr> <tr><td height=13></td></tr> <tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=39>Accessories</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=42>Desktops</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=50>Monitors</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=38>Notebooks</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=40>Printers</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=41>Projectors</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=43>Servers</a></td></tr> <tr><td height=7></td></tr><tr><td class=ch8><img src=images/m29.gif width=3 height=5 align=absmiddle> <a class=ml3 href=http://dell-direct.co.za/index.php?cPath=44>Software</a></td></tr> Check to see if the above code is listed in your footer.php, if not it might just be hard-coded in your index file. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
Gimpz Posted February 16, 2009 Author Share Posted February 16, 2009 Thanks so much! That is correct! Satish added me on MSN and we chatted through it and he found the same as you. Finally got some of the boxes to show! Which is great! Q: Why don't my infoboxes have headings? They're just stacking below each other with no headings? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.