Guest Posted June 3, 2008 Share Posted June 3, 2008 where was this done?REPLACE <td class="main"><?php echo TEXT_MAIN; ?></td> WITH <!-- Extra Pages - Info Box-V3_2.3 //--> <!-- <td class="main"><?php echo TEXT_MAIN; ?></td> //--> <td class="main"><?php echo $page_check[pages_html_text]; ?></td> Quote Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2008 Share Posted June 3, 2008 i cant seem to find <td class="main"><?php echo TEXT_MAIN; ?></td> Quote Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2008 Share Posted June 3, 2008 i cant seem to find <td class="main"><?php echo TEXT_MAIN; ?></td> Indeed, nor can I Daniel Jackson. Something like <!-- Extra Pages - Info Box-V3_2.3 //--> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo $page_check[pages_html_text]; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <!-- end Extra Pages - Info Box-V3_2.3 //--> should go where you want the text from pagemanger to be. On my test site, I put it below <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2008 Share Posted June 3, 2008 That seems to work on the index page but if you could take a look at these pages, the content is pushed over to the right http://www.outdoorshopwexford.com/info_pages.php/pages_id/9 thank you Quote Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2008 Share Posted June 3, 2008 I have exactly the same problem. What I did wrong that the text is pushed over the right. thanks. Julian Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 That seems to work on the index page but if you could take a look at these pages, the content is pushed over to the righthttp://www.outdoorshopwexford.com/info_pages.php/pages_id/9 thank you Sorry, I don't know. Maybe something to do with the way the right column was removed. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 Can you take a look at this page, is there anything mixed up or that can be changed to move the content to the middle? Thanks Stephen <?php /* $Id: info_pages.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $id = (int)$HTTP_GET_VARS['pages_id']; $page_query = tep_db_query("select pages_id, pages_title, pages_html_text, status from " . TABLE_PAGES . " where pages_id = $id"); $page_check = tep_db_fetch_array($page_query); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo $page_check[pages_title]; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo $page_check[pages_html_text]; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 Can you take a look at this page, is there anything mixed up or that can be changed to move the content to the middle? Thanks Stephen As a guess, <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> should be the same as your index.php file Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 thanks for the reply but still doesent work, i will keep trying to fix the problem but if anybody has any ideas please let me know? thanks stephen bray Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 thanks for the reply but still doesent work, i will keep trying to fix the problem but if anybody has any ideas please let me know? thanks stephen bray Viewing the source code, index.php has <!-- body_text //--> <td width="100%" class="col_center"> which seems to indicate a recent mod. You would have to get the info_page to behave the same way. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 any chance of helping me at this, im not that great a PHP? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 any chance of helping me at this, im not that great a PHP? Nor am I. Did you install the contrib that lets admin control the columns? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 i dont think so, which contribution would that be? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 i dont think so, which contribution would that be? OK, so what did you install? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 i installed Extra Pages - Info Box-V3_1 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 i installed Extra Pages - Info Box-V3_1 Which contribution do i install for the admin column Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 i installed Extra Pages - Info Box-V3_1 is that the only add on you have installed? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 No i installed some SEO contributions for example header tags and meta tags and URL friendly contributions, do you think this might be causing the problem? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 No i installed some SEO contributions for example header tags and meta tags and URL friendly contributions, do you think this might be causing the problem? No. Do you have a template? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 ye i installed a template Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2008 Share Posted June 5, 2008 ye i installed a template Sorry, I don't know templates. You will need to play with the info_pages.php so that it uses the same coding as your index.php Quote Link to comment Share on other sites More sharing options...
EdisonLiu Posted June 28, 2008 Share Posted June 28, 2008 Hi, I have read through most of the pages, but did not seem to find my problem. I have installed the latest version with the bug fix. Everything else is fine, but the main page has issues. It seems to come up with Parse error: syntax error, unexpected ']' in /home/mix/public_html/index.php on line 13 Line 13 shows require('includes/application_top.php');]); What could this mean? Thanks, Ed Quote Link to comment Share on other sites More sharing options...
germ Posted June 28, 2008 Share Posted June 28, 2008 It means you have a syntax error in your PHP code on that line. Try this code for that line instead: require('includes/application_top.php'); Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted June 28, 2008 Share Posted June 28, 2008 It means you have a syntax error in your PHP code on that line. Try this code for that line instead: require('includes/application_top.php'); Thanks Germ. I don't see how the contribution could change that line unless it was some very sloppy editing. Quote Link to comment Share on other sites More sharing options...
EdisonLiu Posted June 28, 2008 Share Posted June 28, 2008 It means you have a syntax error in your PHP code on that line. Try this code for that line instead: require('includes/application_top.php'); Thanks, that fixed the problem. :lol: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.