Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changed <title> tag and page went blank! Wha happened?


Recommended Posts

Posted

Hi everyone.

 

me = php newbie. I was asked to change the top left title from osCommerce to the page description.

 

I used the file manger and edited the code.

www.recyclingcontainer.com

It worked fine for two pages: the index.php and the products_new.php. No problem.

 

I changed the title on the advanced search, and now it comes up blank!

 

 

Does anyone know what happened here? I will give someone my firstborn child if they could help me out on this one!

Here's the code:

 

<?php

/*

$Id: advanced_search.php,v 1.50 2003/06/05 23:25:46 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');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);

 

$breadcrumb->add(NAvb script:popupWindow('' . tep_href_link(FILENAME_POPUP_SEARCH_HELP) . '')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></td>

<td class="smallText" align="right"><?php echo tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH); ?></td>

</tr>

</table></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 class="fieldKey"><?php echo ENTRY_CATEGORIES; ?></td>

<td class="fieldValue"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?></td>

</tr>

<tr>

<td class="fieldKey"> </td>

<td class="smallText"><?php echo tep_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES; ?></td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="fieldKey"><?php echo ENTRY_MANUFACTURERS; ?></td>

<td class="fieldValue"><?php echo tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))); ?></td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="fieldKey"><?php echo ENTRY_PRICE_FROM; ?></td>

<td class="fieldValue"><?php echo tep_draw_input_field('pfrom'); ?></td>

</tr>

<tr>

<td class="fieldKey"><?php echo ENTRY_PRICE_TO; ?></td>

<td class="fieldValue"><?php echo tep_draw_input_field('pto'); ?></td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="fieldKey"><?php echo ENTRY_DATE_FROM; ?></td>

<td class="fieldValue"><?php echo tep_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, '' . DOB_FORMAT_STRING . '')"'); ?></td>

</tr>

<tr>

<td class="fieldKey"><?php echo ENTRY_DATE_TO; ?></td>

<td class="fieldValue"><?php echo tep_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, '' . DOB_FORMAT_STRING . '')"'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></form></td>

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted
Hi everyone.

 

me = php newbie. I was asked to change the top left title from osCommerce to the page description.

 

I used the file manger and edited the code.

www.recyclingcontainer.com

It worked fine for two pages: the index.php and the products_new.php. No problem.

 

I changed the title on the advanced search, and now it comes up blank!

 

 

Does anyone know what happened here? I will give someone my firstborn child if they could help me out on this one!

Here's the code:

 

<?php

/*

$Id: advanced_search.php,v 1.50 2003/06/05 23:25:46 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');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);

 

$breadcrumb->add(NAvb script:popupWindow('' . tep_href_link(FILENAME_POPUP_SEARCH_HELP) . '')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></td>

<td class="smallText" align="right"><?php echo tep_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH); ?></td>

The file is missing the complete <head> section. You will need to add that back in.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...