Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

I have 2.7 for SEO urls.

I'm not familiar with all of the versions. I know that my last version works as expected. It also fixes long-standing problems with Ultimate SEO and adds a Header Tags option. All you need to do to try it is to upload the seo_class.php file.

 

Jack

Share this post


Link to post
Share on other sites

When I check my site at my google account, I found out that I have a lot of double title tags, specially for the all products and the links (from link manager) pages. I tried to fill the tags under page control in all_products.php and links.php with the product and category, but that's not showing up in the title tags.

Only the title and description are visisble in the bron code, the others things that I clicked in "include" don't show up. Did I do something wrong? For the rest the contrib is working fine.

Share this post


Link to post
Share on other sites

Hi Jack,

 

Thanks for fantastic contribution HeaderTags_SEO_V_3.1.6, I am installing this to my shop.

 

Actually, Install_Catalog, Step 3, In index.php: I can't find

 

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>

 

 

FIND (Around line 247)

 

?>

<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 HEADING_TITLE; ?></td>

 

 

 

FIND (Around line 298)

 

<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

 

FIND (Around line 330)

 

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>

</tr>

 

 

 

 

 

my code index.php :

 

--------------------------------------------------------------------------------------------------------------------------------from line 38

 

<head>

<?php

/*** Begin Header Tags SEO ***/

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

<title><?php echo TITLE; ?></title>

<?php

}

/*** End Header Tags SEO ***/

?>

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

<td colspan="3">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="697" height="240">

<param name="movie" value="_index.swf?xml_path=slides.xml" />

<param name="quality" value="high" />

<param name="allowFullScreen" value="true" />

<embed src="_index.swf?xml_path=slides.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="697" height="240" allowFullScreen="true"></embed>

</object>

<br/>

 

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td valign="top" class="col_left">

<!-- left_navigation //-->

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

<!-- left_navigation_eof //-->

</td>

<!-- body_text //-->

<?php

if ($category_depth == 'nested') {

/*** Begin Header Tags SEO ***/

$category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");

/*** end Header Tags SEO ***/

$category = tep_db_fetch_array($category_query);

?>

<td width="100%" class="col_center">

 

 

<? tep_draw_heading_top();?>

 

<? new contentBoxHeading_ProdNew1($info_box_contents);?>

 

<? tep_draw_heading_top_5();?>

 

 

<table border="0" cellspacing="0" cellpadding="0" align="center" class="box_width_cont product">

<tr>

<?php

if (isset($cPath) && strpos('_', $cPath)) {

// check to see if there are deeper categories within the current category

$category_links = array_reverse($cPath_array);

for($i=0, $n=sizeof($category_links); $i<$n; $i++) {

$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");

$categories = tep_db_fetch_array($categories_query);

if ($categories['total'] < 1) {

// do nothing, go through the loop

} else {

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");

break; // we've found the deepest category the customer is in

}

}

} else {

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");

}

 

$number_of_categories = tep_db_num_rows($categories_query);

$rows = 0;

while ($categories = tep_db_fetch_array($categories_query)) {

 

$p_pic_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>';

 

$p_name_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a>';

 

 

 

$rows++;

$cPath_new = tep_get_path($categories['categories_id']);

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

echo '

 

<td align="center" width="' . $width . '">

<table cellpadding="0" cellspacing="0" border="0">

<tr>

<td style="height:16px " align="center" class="vam"><span>'.$p_name_sub.'</span></td>

</tr>

<tr>

<td style="height:95px " align="center" class="pic" >'.tep_draw_prod_pic_top().''.$p_pic_sub.''.tep_draw_prod_pic_bottom().'</td>

</tr>

</table>

</td>

' . "\n";

if ($col!=(MAX_DISPLAY_CATEGORIES_PER_ROW-1)){

echo '

<td class="bg_line_y">'.tep_draw_separator('spacer.gif', '1', '1').'</td>

';

}

else{

 

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {

echo '

</tr><tr><td class="bg_line_x" colspan="'.(MAX_DISPLAY_CATEGORIES_PER_ROW + MAX_DISPLAY_CATEGORIES_PER_ROW -1).'">'.tep_draw_separator('spacer.gif', '1', '10').'</td></tr>' . "\n";

echo ' <tr>' . "\n";

}

}

if ($col==MAX_DISPLAY_CATEGORIES_PER_ROW-1){

$col=0;

}else{

$col++;

}

}

 

// needed for the new products module shown below

$new_products_category_id = $current_category_id;

?>

 

</table>

 

<? tep_draw_heading_bottom_5();?>

 

<? /* tep_draw_heading_bottom(); */ ?>

 

<?php tep_draw_separate(); ?> <!-- ///////// -->

 

<? /* tep_draw_heading_top(); */ ?>

 

<? new contentBoxHeading_WHATS_NEW($info_box_contents, true, false);?>

 

<? tep_draw_heading_top_3();?>

 

<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

<!--- BEGIN Header Tags SEO Social Bookmarks -->

<?php if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true')

include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php');

?>

<!--- END Header Tags SEO Social Bookmarks -->

 

<? tep_draw_heading_bottom_3();?>

 

<? tep_draw_heading_bottom();?>

 

</td>

<?php

} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {

// create column list

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,

'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

 

asort($define_list);

 

$column_list = array();

reset($define_list);

while (list($key, $value) = each($define_list)) {

if ($value > 0) $column_list[] = $key;

}

 

$select_column_list = '';

 

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {

switch ($column_list[$i]) {

case 'PRODUCT_LIST_MODEL':

$select_column_list .= 'p.products_model, ';

break;

case 'PRODUCT_LIST_NAME':

$select_column_list .= 'pd.products_name, ';

break;

case 'PRODUCT_LIST_MANUFACTURER':

$select_column_list .= 'm.manufacturers_name, ';

break;

case 'PRODUCT_LIST_QUANTITY':

$select_column_list .= 'p.products_quantity, ';

break;

case 'PRODUCT_LIST_IMAGE':

$select_column_list .= 'p.products_image, ';

break;

case 'PRODUCT_LIST_WEIGHT':

$select_column_list .= 'p.products_weight, ';

break;

}

}

 

// show the products of a specified manufacturer

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {

// We are asked to show only a specific category

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";

} else {

// We show them all

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";

}

} else {

// show the products in a given categorie

if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {

// We are asked to show only specific catgeory

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";

} else {

// We show them all

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";

}

}

 

if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {

if ($column_list[$i] == 'PRODUCT_LIST_NAME') {

$HTTP_GET_VARS['sort'] = $i+1 . 'a';

$listing_sql .= " order by pd.products_name";

break;

}

}

} else {

$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);

$sort_order = substr($HTTP_GET_VARS['sort'], 1);

 

switch ($column_list[$sort_col-1]) {

case 'PRODUCT_LIST_MODEL':

$listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_NAME':

$listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');

break;

case 'PRODUCT_LIST_MANUFACTURER':

$listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_QUANTITY':

$listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_IMAGE':

$listing_sql .= " order by pd.products_name";

break;

case 'PRODUCT_LIST_WEIGHT':

$listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_PRICE':

$listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

}

}

?>

<td width="100%" class="col_center">

 

<? tep_draw_heading_top();?>

 

 

 

 

 

<?php

// optional Product List Filter

/* if (PRODUCT_LIST_FILTER > 0) {

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";

} else {

$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";

}

$filterlist_query = tep_db_query($filterlist_sql);

if (tep_db_num_rows($filterlist_query) > 1) {

echo ' <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);

$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));

} else {

echo tep_draw_hidden_field('cPath', $cPath);

$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));

}

echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);

while ($filterlist = tep_db_fetch_array($filterlist_query)) {

$options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);

}

echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');

echo tep_hide_session_id() . '</form></td>' . "\n";

}

}

*/

// Get the right image for the top-right

$image = DIR_WS_IMAGES . 'table_background_list.gif';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

$image = tep_db_fetch_array($image);

$image = $image['manufacturers_image'];

} elseif ($current_category_id) {

$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$image = tep_db_fetch_array($image);

$image = $image['categories_image'];

}

?>

<?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?>

 

<? tep_draw_heading_bottom_3();?>

 

<? tep_draw_heading_bottom();?>

 

</td>

<?php

} else { // default page

?>

<td width="100%" class="col_center">

 

 

 

 

 

<? tep_draw_heading_top();?>

<?php require(DIR_WS_BOXES . 'panel_top.php'); ?>

<? new contentBoxHeading_ProdNew($info_box_contents); ?>

 

<? tep_draw_heading_top_3();?>

 

 

<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>

<?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?>

 

 

<? tep_draw_heading_bottom_3();?>

 

<? tep_draw_heading_bottom();?>

 

</td>

<?php

}

?>

<!-- body_text_eof //-->

<td class="col_right">

<!-- right_navigation //-->

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

<!-- right_navigation_eof //-->

</td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

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

<!-- footer_eof //--></body>

</html>

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

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------End

 

 

Please help me continue to use the Header Tags SEO.

 

Looking forward to hearing from you.

 

Thanks very much! :rolleyes:

 

Dansino

Share this post


Link to post
Share on other sites

I have a problem with my website. I use Ultimate SEO Urls on it.

 

After installing the CATALOG part, the website was working perfectly, except for having no title at all instead of "new page title" as expected. But the instruction file said that for who doesn't have english as default language it was normal.

 

After installing the ADMIN part - in the specific, after changing the very 2-3 first files of the ADMIN part, my entire website is BLANK... you can take a look: (www.xenovision.it)

 

I finished the installation, hoping that once done the problems would have resolved, but the website is still blank on the customer side, while in the admin side it works fine except for 2 errors in the TEST area:.

 

These are the errors reported, if it may help:

Duplicate title found: explain

for Italiano

Diamo [etc etc ..it says the title of many many products]

 

Duplicate meta description found: explain

for Italiano

Diamo.. [same here. The products listed are those who are resident in more than one category. For example the same bulb can be applied as a parking light and as a arrow indicator light, so it's copied in both the categories]

 

Does anyone has any clue on how to seek and find what causes the website to go blank?!?

Help!

Share this post


Link to post
Share on other sites
When I check my site at my google account, I found out that I have a lot of double title tags, specially for the all products and the links (from link manager) pages. I tried to fill the tags under page control in all_products.php and links.php with the product and category, but that's not showing up in the title tags.

Only the title and description are visisble in the bron code, the others things that I clicked in "include" don't show up. Did I do something wrong? For the rest the contrib is working fine.

I sorry but I don't understand your question and don't know what "bron code" is. But if you are referring to duplicate titles due to languages and the like, there isn't any code in place in Header Tags to fix that. Without examples, I can only guess.

 

Jack

Share this post


Link to post
Share on other sites
Hi Jack,

 

Thanks for fantastic contribution HeaderTags_SEO_V_3.1.6, I am installing this to my shop.

 

Actually, Install_Catalog, Step 3, In index.php: I can't find

You're not using stcok oscommerce code so you'll have to figure out how to alter it or pay someone to do so. Individual support can't be provided here due to the large number of such sites.

 

Jack

Share this post


Link to post
Share on other sites
I have a problem with my website. I use Ultimate SEO Urls on it.

 

After installing the CATALOG part, the website was working perfectly, except for having no title at all instead of "new page title" as expected. But the instruction file said that for who doesn't have english as default language it was normal.

 

After installing the ADMIN part - in the specific, after changing the very 2-3 first files of the ADMIN part, my entire website is BLANK... you can take a look: (www.xenovision.it)

Making changes to the admin section won't break the shop side. You could delete admin altogether and the shop would still work. So you made a mistake somewhere. My guess is that you uploaded the files meant for admin into the shop section but there's no way to tell from here. You'll need to restore and try again.

 

Jack

Share this post


Link to post
Share on other sites
I sorry but I don't understand your question and don't know what "bron code" is. But if you are referring to duplicate titles due to languages and the like, there isn't any code in place in Header Tags to fix that. Without examples, I can only guess.

 

Jack

 

Sorry, I used a Dutch word. "Bron code" is the source code of a page.

I will give you some examples to show you what I mean.

I take for example all_products.php

What I filled in in my header tags looks like this:

allproducts.png

 

When I look at the source code of the All_products (See page)

It looks like this:

 

<title>All products on this site</title>

<meta name="Description" content="Through this link you can see all the photos of ClaudiavanDijk Stockphotos" >

<meta name="Keywords" content="All Products " >

<meta name="robots" content="noodp" >

<meta name="slurp" content="noydir" >

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >

<!-- EOF: Header Tags SEO Generated Meta Tags -->

 

With all the letters of the Alphabet show the same title, description and keywords. So it's not using any category like A or B or C etc. or product names. Google is now saying these are all Double title tags.

 

With links.php it's the same.

 

What I filled in looks like this:

links.png

 

And my Source code looks like this:

<title>Links</title>

<meta name="Description" content="Find here all kind of links about Stockphotography" >

<meta name="Keywords" content="Links " >

<meta name="robots" content="noodp" >

<meta name="slurp" content="noydir" >

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >

<!-- EOF: Header Tags SEO Generated Meta Tags -->

 

I do made several categories in the link section, but header tags is not using them, every linkpage shows the same Source code for the meta Tags. So for every Link that I create is called a duplicate title by google.

 

My question is: - Is this normal? Or did I missed something.

- If I didn't missed something, is it possible to change it somehow, because I get an awful lot of "duplicate title tags" and "duplicate titles" at google.

 

For the rest is the header tags Contrib working ok.

Share this post


Link to post
Share on other sites
Sorry, I used a Dutch word. "Bron code" is the source code of a page.

I will give you some examples to show you what I mean.

I take for example all_products.php

What I filled in in my header tags looks like this:

 

When I look at the source code of the All_products (See page)

It looks like this:

You need to have a Canonical meta tag for those files. This isn't due to Header Tags but I'll answer it here since I have it on the list of changes for a future version of Header Tags but I don't know when that will be done. For now, add this line to the all-products.php file

<link  rel="canonical" href="<?php tep_href_link(FILENAME_ALLPRODS_SEO); ?>" />

You need to do the same for the links.php file but change it for that url.

 

Jack

Edited by Jack_mcs

Share this post


Link to post
Share on other sites
You're not using stcok oscommerce code so you'll have to figure out how to alter it or pay someone to do so. Individual support can't be provided here due to the large number of such sites.

 

Jack

 

 

Hi Jack,

 

This is a oscommerce from Monster, I try to install the Header Tags SEO into the site.

 

Would you mind give me some clue so I can figure out to alter it by myself?

 

I want to compare and change the relevant code to what in index.php and Product_info.php if they are different, is that ok?

 

Any instruction appreciate.

 

Thanks in advance!

 

Dansino

Edited by dansino

Share this post


Link to post
Share on other sites
Hi Jack,

 

This is a oscommerce from Monster, I try to install the Header Tags SEO into the site.

 

Would you mind give me some clue so I can figure out to alter it by myself?

 

I want to compare and change the relevant code to what in index.php and Product_info.php if they are different, is that ok?

 

Any instruction appreciate.

 

Thanks in advance!

 

Dansino

Those template maker sites usually have more than one code working on templates and there's, apparently, no coding guidelines in place. So one template from them will have one set of code and another will have another set. There's simply no way to support such code in a forum like this.

 

Jack

Share this post


Link to post
Share on other sites
Those template maker sites usually have more than one code working on templates and there's, apparently, no coding guidelines in place. So one template from them will have one set of code and another will have another set. There's simply no way to support such code in a forum like this.

 

Jack

 

Oops, I am in the middle of no where. :blink:

 

 

Dansino

Share this post


Link to post
Share on other sites

It's an unfortunate problem with those templates. You'll find you run into similar situations as you install more and more contributions.

 

Jack

Share this post


Link to post
Share on other sites

hey guys

 

sorry if this is a really stupid question, but i searched the forum everywhere for it too !!

 

is there a way to add the products_model to the title tag, i cant seem to see anything in the admin area for this ?

 

great contrib, thanks to all involved, its amazing :)

 

cheers

 

dlyxzen

Share this post


Link to post
Share on other sites
hey guys

 

sorry if this is a really stupid question, but i searched the forum everywhere for it too !!

 

is there a way to add the products_model to the title tag, i cant seem to see anything in the admin area for this ?

 

great contrib, thanks to all involved, its amazing :)

 

cheers

 

dlyxzen

There isn't an option to add the model but I am pretty sure I explained how to do that somewhere in this thread. You can use the seach at the bottom and search on "product model" or some variation.

 

Jack

Share this post


Link to post
Share on other sites
I'm not familiar with all of the versions. I know that my last version works as expected. It also fixes long-standing problems with Ultimate SEO and adds a Header Tags option. All you need to do to try it is to upload the seo_class.php file.

 

Jack

 

I now have Ultimate SEO Urls v2.8. It doesn't fix the problem and I'm wondering why I should change the code from this:

 

<?php

/*** Begin Header Tags SEO ***/

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

<title><?php echo TITLE; ?></title>

<?php

}

/*** End Header Tags SEO ***/

?>

 

To this:

 

<?php

/*** Begin Header Tags SEO ***/

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

ob_start();

require(DIR_WS_INCLUDES . 'header_tags.php');

$preventDuplicates->checkTarget(ob_get_clean());

echo $preventDuplicates->finalMeta . "\n";

} else {

?>

<title><?php echo TITLE; ?></title>

<?php

}

/*** End Header Tags SEO ***/

?>

Share this post


Link to post
Share on other sites
I now have Ultimate SEO Urls v2.8. It doesn't fix the problem and I'm wondering why I should change the code from this:

I've never seen that code before so I can't comment on it. If it comes from the version of Ultimate SEO you are using, as mentioned, I suggest using my last version.

 

Jack

Share this post


Link to post
Share on other sites

Your last version doesn't add manufacturer's name to product url. I ended up just selecting the following code from headertags_seo.sql:

 

INSERT INTO `configuration_group` ( `configuration_group_id` , `configuration_group_title` , `configuration_group_description` , `sort_order` , `visible` )

VALUES ('543', 'Header Tags SEO', 'Header Tags SEO site wide options', '20' , '1');

 

Thanks anyway.

Share this post


Link to post
Share on other sites

Hello.

 

 

I recently wanted to install the Articles Manager Contribution but it requires to have Header Tag SEO and what I have installed is the older Header Tag Controller.

 

I tried Installing HT SEA over HT Controller and although it went almost ok I still got some errors and duplicate content.

 

 

So I am wondering if there are any tips as to how to Install HT SEO over HT Controller , so I can then install Article Manager...

 

wow... we can all get ourselves so complicated...

 

thank you.

Share this post


Link to post
Share on other sites
Hello.

 

 

I recently wanted to install the Articles Manager Contribution but it requires to have Header Tag SEO and what I have installed is the older Header Tag Controller.

 

I tried Installing HT SEA over HT Controller and although it went almost ok I still got some errors and duplicate content.

 

 

So I am wondering if there are any tips as to how to Install HT SEO over HT Controller , so I can then install Article Manager...

 

wow... we can all get ourselves so complicated...

 

thank you.

The easiest way is to upload the update sql file in the package and make all of the file edits in the instructions. Some won't be needed but some are similar so you need to be sure what they are telling you to do.

 

Jack

Share this post


Link to post
Share on other sites
The easiest way is to upload the update sql file in the package and make all of the file edits in the instructions. Some won't be needed but some are similar so you need to be sure what they are telling you to do.

 

Jack

 

Thank you Jack_mcs,

 

I when ahead and did it again, this time I used the headertags_seo_update.sql that is in the Database_Files folder from the package.

 

No error after running the sql update.

 

Made all the edits.

 

Ended up however with the same "errors"

 

When I finished doing the edits I went to the front end and it loaded with no script errors, however once I ran the TEST from the HT SEO menu, I went back to the front end and started getting errors. The only way to eliminate the errors I had to comment our the following from catalog/includes/headet_tags.php

 

// responsehandler_test_v1.2.php
// case (basename($_SERVER['PHP_SELF']) === FILENAME_RESPONSEHANDLER_TEST_V1.2):
//   $header_tags_array = tep_header_tag_page(FILENAME_RESPONSEHANDLER_TEST_V1.2);
 // break;

// sitemap.class.php
// case (basename($_SERVER['PHP_SELF']) === FILENAME_SITEMAP.CLASS):
 //  $header_tags_array = tep_header_tag_page(FILENAME_SITEMAP.CLASS);
 // break;


// index-new.php
 //case (basename($_SERVER['PHP_SELF']) === FILENAME_INDEX-NEW):
  // $header_tags_array = tep_header_tag_page(FILENAME_INDEX-NEW);
 // break;

 

once I comment out those lines then the script runs again with no script errors.

 

My other issue after that is the following.

 

since I already had the HT Controller , my products and categories already have tags assigned to them, so now for example I am getting the following tittles on my pages.

 

for categories.....

 

MY ORIGINAL TITTLE - New Home Page Title

 

so although it is listing what I already had, it is also displaying the new default one.

 

the same thing for products.....

 

MY ORIGINAL TITLE - products new home - MY ORIGINAL TITLE CONTINUED

 

 

 

 

here is a copy of the TEST results...

 

Test Results
Default Text Present:  explain
The default root text, New Home Page Title, should be removed or changed for index.php with language ID of 1.
The default root text, products new home, should be removed or changed for product_info.php with language ID of 1.

Duplicate title found:  explain
for English
Larimar Bracelet exists more than once.
Larimar Earring exists more than once.
Larimar Necklace exists more than once.
Larimar necklace with teardrop shaped larimar stones exists more than once.
Larimar Pendant exists more than once.
Larimar Pendant jewelry exists more than once.
X-Large larimar pendant exists more than once.
for Deutsch
exists more than once.
for Español
exists more than once.

Duplicate meta description found:  explain
for Deutsch
exists more than once.
for Español
exists more than once.

Missing Title and/or descriptions:  explain
Products
The name for this item is missing
The name for this item is missing
The name for this item is missing

MANY MORE........ did not copy for space....

Categories
The name for this item is missing
The name for this item is missing
The name for this item is missing
The name for this item is missing

FEW MORE ..... did not copy for space....

STS Error:  explain
STS is running and the head code in the article_reviews_write.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the article-submit.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the article_reviews.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the article_info.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the articles.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the articles_new.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the article-topics.php file has Header Tags code installed, which is a mistake.
STS is running and the head code in the article_reviews_info.php file has Header Tags code installed, which is a mistake.

Language Mismatch Error:  explain
Language Deutsch (2) in the shops languages does not have an entry in the default Header Tags table.
Language Español (3) in the shops languages does not have an entry in the default Header Tags table.

 

 

 

Well, that is all the info I have. If any advice is available then that would be awesome..

 

Thank you.

Tom.

Share this post


Link to post
Share on other sites

small bit of info in regards to the errors in catalog/include/header_tags.php

 

this is what I get..

 

Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in /home/..../includes/header_tags.php on line 400

 

 

all three get the same error and only of course the on line XXX is what changes...

 

thanks.

 

 

UPDATE !!

 

I figured out the Title tag "error"

 

I went to PAGE CONTROL, selected index.php and removed the check mark for ROOT: 1

 

Did the same for product_info.php

 

 

Still need to work on the commented out codes..

 

thank you.

Edited by Larimar_Jewelry

Share this post


Link to post
Share on other sites
Ended up however with the same "errors"

 

When I finished doing the edits I went to the front end and it loaded with no script errors, however once I ran the TEST from the HT SEO menu, I went back to the front end and started getting errors. The only way to eliminate the errors I had to comment our the following from catalog/includes/headet_tags.php

 

// responsehandler_test_v1.2.php

// case (basename($_SERVER['PHP_SELF']) === FILENAME_RESPONSEHANDLER_TEST_V1.2):

 

// sitemap.class.php

// case (basename($_SERVER['PHP_SELF']) === FILENAME_SITEMAP.CLASS):

 

// index-new.php

//case (basename($_SERVER['PHP_SELF']) === FILENAME_INDEX-NEW):

 

once I comment out those lines then the script runs again with no script errors.

Do you really have entries in your includes/filenames.php file of FILENAME_RESPONSEHANDLER_TEST_V1.2, FILENAME_SITEMAP.CLASS and FILENAME_INDEX-NEW? If you do, they are invalid. But my guess is that you don't and those files have the header tags code in the <head> section, telling Header Tags to try and handle them. There are a number of problems here.

- files like responsehandler_test_v1.2.php that are used for testing shouldn't have Header Tags code in them.

- files like sitemap.class.php shouldn't be in the root at all.

- files use for backup or storage, like index-new.php, shouldn't have Header Tags code in them since they are not active.

- since you have STS installed, none of the files in the root should have Header Tags code in the <head> section.

STS Error: explain

STS is running and the head code in the article_reviews_write.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the article-submit.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the article_reviews.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the article_info.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the articles.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the articles_new.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the article-topics.php file has Header Tags code installed, which is a mistake.

STS is running and the head code in the article_reviews_info.php file has Header Tags code installed, which is a mistake.

Please bother to read the instructions and help files. You are running STS and you have Header Tags code installed and the test is telling you that is a mistake. When you see text like, "is a mistake." it should give you the idea that it has to be fixed, at least, that was my intention.

 

Jack

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×