Superpet toys rus Posted June 13, 2009 Posted June 13, 2009 Hi, I cant understand what i am doing wrong...i have followed the instructions from another thread about centering my website and the other day it worked perfectly...but since then i have started my site from scratch again and this time it just will not work. ive tried many different fixes and still no joy...these are the instructions i used that worked the other day: 21. How do I fix the width and center my shop? There are several ways to achieve that, but probably the easiest way is: On the line immediately before the very first <table> in includes/header.php, add another with a fixed width - 770px for example: CODE <table align="center" border="0" width="770"><tr><td> then on the very last line in includes/footer.php, close the table: CODE </td></tr></table> im pulling my hair out now with just the simplest of things grrrrrrr this is my shop now..... www.superpettoysrus.com ........any simple suggestions much appreciated...as you can tell im not a genius so go easy lol
spooks Posted June 13, 2009 Posted June 13, 2009 there is a better way Center & size Shop http://addons.oscommerce.com/info/1485 Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Superpet toys rus Posted June 13, 2009 Author Posted June 13, 2009 hiya....thanks for that ...i had come across that contribution but i think i was in that much of a flap i forgot to add some bits. All sorted now and it looks great......well great so far for a novice site lol
Lipeiro Posted July 20, 2009 Posted July 20, 2009 there is a better way Center & size Shop http://addons.oscommerce.com/info/1485 Hi! I´m trying to follow the instructions on the way you recommended but nothing works. I starting to lose my mind. Could you please give me some help? my website is www.dcode.pt/catalog after doing every step the only thing I got was a white box around all the website contents. any ideias? regards and thanks Luis
Gems Posted July 31, 2009 Posted July 31, 2009 Hi, Hope all is well. This is my header.php, Where would i insert <div id="content"> in here. Ive tried it but i keep getting an error when i go to the website <?php /* $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $ 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 */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (fileperms(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php') & 18) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <object width="425" height="125"> <param name="movie" value="Ig_banner.swf"> <embed src="includes/banner/Ig_banner.swf" width="425" height="125"> </embed> </object> <td align="right" valign="bottom"> <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . ' </a><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . '', HEADER_TITLE_CHECKOUT) . '</a>'; ?></td> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> This is my footer.php it already has a </div> in the end do i need to add it again? <?php /* $Id: footer.php 1739 2007-12-20 00:52:16Z hpdl $ 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 */ ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <tbody><tr class="footertop"> <td class="footertop" align="center"> <a href="index.php">Home</a> | <a href="conditions.php">About Us</a> | <a href="http://www.islamicgems.com/gallery.php" target="_blank">Gallery</a> | <a href="http://www.islamicgems.com/tutorials/references.html" target="_blank">Tutorials</a> | <a href="http://www.islamicgems.com/events.php" target="_blank">Events</a> | <a href="http://www.blog.islamicgems.com/" target="_blank">Blog</a> | <a href="http://www.facebook.com/pages/ISLAMICGEMS/74177547629?ref=ts" target="_blank">Fan Page</a> | <a href="http://www.islamicgems.com/contact_us.php" target="_blank">Contact Us</a> </td></tr><tr class="footertop"><td class="footertop" align="center"> <a href="shipping.php" ><font size="1">Shipping & Returns</font></a> | <a href="privacy.php" ><font size= "1">Privacy Policy</font></a> | <a href="http://www.islamicgems.com/care.php" target="_blank"><font size= "1">Hijab Pin Care</font></a> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> </tr> </table> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <div align=center> </div> <?php } ?> Thank you in advance.
spooks Posted July 31, 2009 Posted July 31, 2009 already has a </div> in the end do i need to add it again? obviously, basic html rules still apply!!!! what is error message? HTML Tuition http://www.w3schools.com/html/default.asp Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.