Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

thank you. I have found and solve the language keys.

For the missing data, unfortunately, there is nothing in the source page :

 

<title></title>

<meta name="Description" content="" >

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

 

what is the header tags code which do that in index.php ?

 

Thank you very much for your help. It's a wonderful program ;-)

Share this post


Link to post
Share on other sites

It depends upon what version of oscommerce you are using. The included instruction files explains what changes are needed.

Share this post


Link to post
Share on other sites

Hi Jack Thanks for that genius contrib. I looking to prevent some keywords crawling like (buy now) etc. from search engines. Is there a possibility to exclude keywords ? like build a txt list for keywords i want not to store?

Share this post


Link to post
Share on other sites

@@zoulxp Yes, most likely that is the case. Try running the test in the Header Tags SEO section in admin. It might point to some problem. Also check the product pages to see if the title and tags show there. If they do, then the problem is almost definitely with the index.php file.

Share this post


Link to post
Share on other sites

@@Nexxus No, there isn't any way to prevent the search engines from using a word on a page. But the only way the keywords would show in the search engine listings is if you setup the page to target those keywords, which you shouldn't do, or you didn't setup the page at all, in which case the search engines will make up their own.

Share this post


Link to post
Share on other sites

i have use my old index (it worked) and now same problem. I have the problem with product pages too. So the problem is out there.

Share this post


Link to post
Share on other sites

this function is done by include/header_tags.php file, isn't it ? and the database table use is headertags_default ?

Edited by zoulxp

Share this post


Link to post
Share on other sites

Jack, working on update 3.3.1, for the SQL update I get this error:

 

#1170 - BLOB/TEXT column 'page_keywords' used in key specification without a key length

 

 

for this action: ALTER TABLE headertags ADD INDEX idx_page_keywords ( page_keywords ) ;

 

data type was mediumtext

 

I changed that to: varchar(255)

 

I ran that code again and this time it was successful.

 

Just checking with you on you thoughts of using varchar(255).

 

Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

this function is done by include/header_tags.php file, isn't it ? and the database table use is headertags_default ?

I'm sorry but I don't understand the question.

Share this post


Link to post
Share on other sites

@@altoid That should be fine. It just means the most text you can use for that field is 255 characters. If you think you will need more than that, then you can increase the size.

Share this post


Link to post
Share on other sites

"i have nothing in "from site" meta tag English From Site: Title -> Meta Description -> Meta Keywords -> From Settings: Title -> - Brown Chinese letter Incense Holder Meta Description -> - Brown Chinese letter Incense Holder

Meta Keywords -> , Brown Chinese letter Incense Holder"

 

the code in index file is :

/*** 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 ***/

 

so the right file to fill meta in index is /includes/header_tags.php

This file do query to headertags_default table. is it right ?

 

I would like to resolve this problem.

 

Thank for your help ;-)

Share this post


Link to post
Share on other sites

It queries the default table, among others. But if you are trying to use text from the default table, you have to have the default boxes checked for index.php in Page Control. It is not a good idea to do it that way. You should setup index.php in Page Control itself.

Share this post


Link to post
Share on other sites

ok i have do that :

 

i have fill the root area and check root and product includes

 

but in verify option, non meta in title, description and keywords

Edited by zoulxp

Share this post


Link to post
Share on other sites

another problem found : Display Page Top Title don't work

 

in fact my problem is the value in $header_tags_array

(example : echo $header_tags_array['title'] )

 

The fields are empty...

Share this post


Link to post
Share on other sites

It sounds like there is something wrong with your installation and isn't something I can fix in a support thread. I suggest you start over and double check all of the changes.

Share this post


Link to post
Share on other sites

have you some advice for me in which files i have to look ? I think it's not due to manufacturer.php change, or categories.php change...

 

My shop is 2.2RC2

Share this post


Link to post
Share on other sites

i have found the problem. If the files of my shop are in the root of my domain, it don't work, but if the files are in /shop/ directory, header tags works perfectly.

 

any idea ?

Share this post


Link to post
Share on other sites

There's nothing in the files of this addon that would cause this. Any paths it uses are taken from the configure files so,it would seem, your configure files are not setup correctly.

Share this post


Link to post
Share on other sites

@@Nexxus No, there isn't any way to prevent the search engines from using a word on a page. But the only way the keywords would show in the search engine listings is if you setup the page to target those keywords, which you shouldn't do, or you didn't setup the page at all, in which case the search engines will make up their own.

 

 

Thanks Jack, short a small cosmetic edit for your next version: for who is using an customized chkeditor for editing Product Descriptions, in hes meta tags descriptions it shows tags like "<br><h1>" etc... To prevent that, i have changed in header_tags.php following line with strip_tags and the tags in meta description are gone:

echo ' <meta name="Description" content="' . strip_tags($header_tags_array['desc']) . '" >' . "\n";

Edited by Nexxus

Share this post


Link to post
Share on other sites

There's nothing in the files of this addon that would cause this. Any paths it uses are taken from the configure files so,it would seem, your configure files are not setup correctly.

 

i have put files in the same server and it's the same database. Only thing that change is the directory. The configure.php files are exactly the same except the directory "shop" added.

 

the shop directory site work with header tags and the root site don't with header tags...

 

it's really crazy....

Share this post


Link to post
Share on other sites

Have searched and cant really find a definition that (I understand) says exactly what a Title Tag - URL is/does.

 

Have added some but see no use of it in the page source code or on the site page.

 

Will you describe it's function and proper use?

 

Thanks much

Ken


OSC v2.3.4.1 BS EDGE
Ultimate SEO

 

Share this post


Link to post
Share on other sites

It's for changing the text in the url. It only works if your shops is using the latest version of Ultimate SEO v2.2d. If your current url for a product is http:// mydomainname.com/a-very-long-product-name-p-1.html, you could change it to http:// mydomainname.com/much-shorter-p-1.html.

Share this post


Link to post
Share on other sites

Not able to locate any reference to the version, you had installed it on the 02/02/14, had any changes since then?

Not able to get it to change the URL though.


OSC v2.3.4.1 BS EDGE
Ultimate SEO

 

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

×