Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contribution Issue


Hugo RSF

Recommended Posts

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>

Link to comment
Share on other sites

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);

?>

Link to comment
Share on other sites

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'); ?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

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');

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

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...