Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

I noticed the Title tags, generated from the product_info.php file, repeat the name of the category a second time and also contains two hyphens:

 

Category Name - Category Name - - Product Name

 

I checked the product_info.php file and didn't see where anything was duplicated.

It is caused by the options in page control. Maybe the category and default category are both checked - something like that.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

On one of my pages under Categories, it now displays the title tags and meta information.

However, I also have the cPath listed.

So the page title is cPath_21 | Page title

Is there a way to remove this?

It only loads the data provided. If it is loading the cPath, that must be set in the database. Look at the category edit page for that category to find the problem.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It only loads the data provided. If it is loading the cPath, that must be set in the database. Look at the category edit page for that category to find the problem.

 

No, it's bizarre. I can't find anything with cPath_21 in the db.

Here is my index.php code:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?
ob_start();
?>
<?php
/*** Begin Header Tags SEO ***/
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 <title><?php echo TITLE; ?></title>
<?php
}
/*** End Header Tags SEO ***/
?>
<meta name="verify-v1" content="TohvsgzhkdU5HZ14DRCMu/ns2UoEcp8x7LPTI/iYZ9A=" />
<?
$preventDuplicates->checkTarget(ob_get_clean());
echo $preventDuplicates->finalMeta . "\n";
?>
<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">

 

It's like it's slisting the oscommerce cpath somehow and then it adds all the relevant title text from SEO afterwards.

Link to comment
Share on other sites

No, it's bizarre. I can't find anything with cPath_21 in the db.

Here is my index.php code:

The contribution comes with a setup index file. Try that, and the other included files, to see if the problem is fixed.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The contribution comes with a setup index file. Try that, and the other included files, to see if the problem is fixed.

Don't think I can as I have too much ad hoc code in the page, which has been changed.

If it,s not in the db, is there anyway these variables in headertags could cause it?

$header_tags_array

or canonical.

The same cPath_21 is contained in the meta name and meta description source of the outputted HTML.

I have a checkbox called root ticked in the SEO admin page - could that be it?

Link to comment
Share on other sites

is it a problem to place an <img src="" > in the field 'Header Tags Categories Description', i tried and it's possible but this get in the way of proper functionality of HT SEO?

It won't serve any purpose and will dilute the useable text. The search engines strip html code from those tags. Otherwise, you would see a lot of porn site links on google with images not everyone would want to view. :o

Edited by Jack_mcs

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Don't think I can as I have too much ad hoc code in the page, which has been changed.

It doesn't matter. Using the loaded one just means your site won't display correctly but for a 10 second test, that won't matter much. Although, today may not be the best of days to try that. Or you can rename the included one to index_text.php and access it that way.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I don't have an answer for the first problem. I would need to look at the code for that. For the second, the breadcrumb is controlled by the code in the application_top file. Be sure that code has been changed.

 

I solved my original problem by replacing $_GET with $HTTP_GET_VARS everywhere in includes/header_tags.php. I don't know why $_GET wasn't working, because my version of PHP is later than 4.1.0. Jack, do you think there will be any negative consequences of my switch to $HTTP_GET_VARS, or should that work okay?

Link to comment
Share on other sites

I solved my original problem by replacing $_GET with $HTTP_GET_VARS everywhere in includes/header_tags.php. I don't know why $_GET wasn't working, because my version of PHP is later than 4.1.0. Jack, do you think there will be any negative consequences of my switch to $HTTP_GET_VARS, or should that work okay?

They are bsically the same but $HTTP_GET_VARS is less secure and will eventually not work at all. You might want to ask your host what the problem is.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It doesn't matter. Using the loaded one just means your site won't display correctly but for a 10 second test, that won't matter much. Although, today may not be the best of days to try that. Or you can rename the included one to index_text.php and access it that way.

 

Aha.

Your original index.php works (default)

I found a ob_start in my code just before the title and this is a security add on for oscommerce that looks to clean URLs for any hacker code, etc.

I commented out the ob_start and it works fine.

However, the ob_start obviously has to be there for a reason.

 

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?
//ob_start();
?>
<?php
/*** Begin Header Tags SEO ***/
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 <title><?php echo TITLE; ?></title>
<?php
}
/*** End Header Tags SEO ***/
?>
<meta name="verify-v1" content="TohvsgzhkdU5HZ14DRCMu/ns2UoEcp8x7LPTI/iYZ9A=" />
<?
$preventDuplicates->checkTarget(ob_get_clean());
echo $preventDuplicates->finalMeta . "\n";
?>
<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'); ?>

Link to comment
Share on other sites

It won't serve any purpose and will dilute the useable text. The search engines strip html code from those tags. Otherwise, you would see a lot of porn site links on google with images not everyone would want to view. :o

 

my purpose was to have an image to give nicer presentation when a category is selected; normally you would see just heading and subcategory (with images) or just products when there are no subcat's; but i want an image to place banner or promote some eyecatcher product inside one of the subcat

any suggestion as contribution

Link to comment
Share on other sites

would you please advise where I can find the instruction to download the add-ons and how to install it ?

There is a link on page 1.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

my purpose was to have an image to give nicer presentation when a category is selected; normally you would see just heading and subcategory (with images) or just products when there are no subcat's; but i want an image to place banner or promote some eyecatcher product inside one of the subcat

any suggestion as contribution

I'm sorry. I misread your question. I thought you were asking about the meta description tag. For the categories description, you can use whatever html code you want. In fact, if you have the TinyMCE editor installed, you can enable it for the categories, making it easier to add such things.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

hi,,

 

i got a strange issue with my website.A while ago i installed header_tags_seo and google_xml_sitemap on my website.Lately i noticed that both of these contribs are not showing up under configuration in admin.I had a look at the configuration group table and there are no entries regarding these two contribs.

 

But in configuration table there are entries relevant to these two contribs.I then removed the entries and reinstalled the database entries for these two conribs and it all worked okay.That was yesterday .

 

Today i cant see any entry for header_tags_seo and google_xml_sitemap under configuration_group.When i look at the database there is no entry for these two contribs under configuration_group but the values are still present under configuration.I dont know whats going on here.How come only these group entries are being deleted.

 

Has anybody come across this before.

 

 

kind regards

 

nafri

Link to comment
Share on other sites

Aha.

Your original index.php works (default)

I found a ob_start in my code just before the title and this is a security add on for oscommerce that looks to clean URLs for any hacker code, etc.

I commented out the ob_start and it works fine.

However, the ob_start obviously has to be there for a reason.

 

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?
//ob_start();
?>
<?php
/*** Begin Header Tags SEO ***/
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 <title><?php echo TITLE; ?></title>
<?php
}
/*** End Header Tags SEO ***/
?>
<meta name="verify-v1" content="TohvsgzhkdU5HZ14DRCMu/ns2UoEcp8x7LPTI/iYZ9A=" />
<?
$preventDuplicates->checkTarget(ob_get_clean());
echo $preventDuplicates->finalMeta . "\n";
?>
<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'); ?>

 

ANy ideas how to make Headers SEO work with Security Pro? http://addons.oscommerce.com/info/5752

The ob_start in index.php causes a problem

Link to comment
Share on other sites

i got a strange issue with my website.A while ago i installed header_tags_seo and google_xml_sitemap on my website.Lately i noticed that both of these contribs are not showing up under configuration in admin.I had a look at the configuration group table and there are no entries regarding these two contribs.

It sounds like you have an older version of Ultimate SEO installed, which would cause that problem. Be sure you are using version 2.2d_5.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I would like to add to the title of the advanced search results, the word that I have looked for.

 

Is there an easy way for this?

I'm sory but I don't understand the question. If you are asking how to change the title of the advanced search page, you just edit it in page control. If you are talking about changing the search results, that isn't a question for this thread.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi,

 

I would like to add to the title of the advanced search results, the word that I have looked for.

 

Is there an easy way for this?

 

Thanks.

 

I did not use Header Tags, in advanced_search_results.php, I set $title = $keywords . ' - Advanced search results - Your site name';

Shouldn't this be done by header tags seo?

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...