Guest Posted October 23, 2008 Share Posted October 23, 2008 Hi, I am trying to add the Header Tags SEO contrib, & the directions say: FIND (Around line 78) <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> REPLACE with <?php /*** Begin Header Tags SEO ***/ ?> <td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> <?php if (tep_not_null($category['categories_htc_description'])) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td colspan="2"><h2><?php echo $category['categories_htc_description']; ?></h2></td> </tr> <?php } /*** End Header Tags SEO ***/ ?> The problem is I have the following modified code for the Banner in a Box contrib: <td class="pageHeading"><?php include(DIR_WS_MODULES . FILENAME_BANNER_BOX); ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> How do I combine this so both will work? Thanx in advance! Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2008 Share Posted October 23, 2008 OK, now I have a problem on the admin side. :blink: When I try to add the following to the end of the admin/includes/column_left.php file, it breaks it & I lose everything on the admin page except the left column! Here is my code before the add: <?php/* $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'returns.php'); ?> ...and here is my code after the add (which causes the problem): <?php/* $Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'configuration.php'); require(DIR_WS_BOXES . 'catalog.php'); require(DIR_WS_BOXES . 'modules.php'); require(DIR_WS_BOXES . 'customers.php'); require(DIR_WS_BOXES . 'taxes.php'); require(DIR_WS_BOXES . 'localization.php'); require(DIR_WS_BOXES . 'reports.php'); require(DIR_WS_BOXES . 'tools.php'); require(DIR_WS_BOXES . 'returns.php'); /*** Begin Header Tags SEO ***/ require(DIR_WS_BOXES . 'header_tags_seo.php'); /*** End Header Tags SEO ***/ ?> Does anyone know what's wrong? Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2008 Share Posted October 23, 2008 Anybody? Link to comment Share on other sites More sharing options...
arietis Posted October 23, 2008 Share Posted October 23, 2008 the main goal here is to remove the use of the class="pageHeading" and replace it with <h1> tags. so instead of: <td class="pageHeading"><?php include(DIR_WS_MODULES . FILENAME_BANNER_BOX); ?></td> you want: <td><h1><?php include(DIR_WS_MODULES . FILENAME_BANNER_BOX); ?></h1></td> you may also need to modify the css declaration for h1 tags so it fits better with your site, probably making the definition similar to the one for pageHeading. try this and see what it looks like. you might need to add or replace the include() with the echo $category['categories_htc_title_tag'];, or use some combination of both. i don't know what your filename banner box does so it's hard to tell. you will have to experiment. Link to comment Share on other sites More sharing options...
arietis Posted October 23, 2008 Share Posted October 23, 2008 Does anyone know what's wrong? can you tell what the error message is? maybe by viewing the page's source and looking at the bottom. sometimes the error message can be seen in the source but doesn't display in the browser. having the error message would help someone else in determining what's wrong. is it possible that you copied the header_tags_seo.php that was supposed to go in /catalog/includes into /catalog/admin/includes? these are different and if you put it in the wrong place it could cause problems. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.