Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

No idea what oscommerce version you are using so I can only speak in general terms. If you are using a version before 2.3, follow the instrucitons to add the code. if you are using a version after 2.3, that step is not needed.

2.3

OK, thank you.

Share this post


Link to post
Share on other sites

It is me again. I use the Oscommerce 2.3.

I have just installed the Header Tags and set them. This works fantastic.

 

I have 1 problem. admin/catalog/categories page is blank.

Admin/catalog/manufacturers opens normally, tags editation is possible there.

I copied a new categories.php to admin and made all necessary changes again to avoid any copy mistakes, but it didn´t help.

Could you please instruct me, how to fix this?

Thanks. Antonin

Share this post


Link to post
Share on other sites

It is me again. I use the Oscommerce 2.3.

I have just installed the Header Tags and set them. This works fantastic.

 

I have 1 problem. admin/catalog/categories page is blank.

Admin/catalog/manufacturers opens normally, tags editation is possible there.

I copied a new categories.php to admin and made all necessary changes again to avoid any copy mistakes, but it didn´t help.

Could you please instruct me, how to fix this?

Thanks. Antonin

There is a completed categories.php file in the package. Try it. If it works, then you've made a mistake in your edits. If it fails, then there is a problem elsewhere in your admin code.

Share this post


Link to post
Share on other sites

There is a completed categories.php file in the package. Try it. If it works, then you've made a mistake in your edits. If it fails, then there is a problem elsewhere in your admin code.

 

Thank you again. It helped.

Share this post


Link to post
Share on other sites

I need some help. this was a fresh upload of the contirbution. I got the success on after installing database changes went on to upload all the files finished that web site work great through all the changes keep checking after each new file was loaded.

then when finished i tried to login into the oscommerce admin screen and i get an error for it wont load the login screen any ideas. I simply added the new files didnt modify the old ones. Did i misunderstand the directions i thought complete replacement was what was called for. Please help

Share this post


Link to post
Share on other sites

I need some help. this was a fresh upload of the contirbution. I got the success on after installing database changes went on to upload all the files finished that web site work great through all the changes keep checking after each new file was loaded.

then when finished i tried to login into the oscommerce admin screen and i get an error for it wont load the login screen any ideas. I simply added the new files didnt modify the old ones. Did i misunderstand the directions i thought complete replacement was what was called for. Please help

If it's a new shop, then all you need to do is make the database changes and copy both directories for whichever version of oscommerce you are using. If you did that, then you may have copied the files from the wrong version.

Share this post


Link to post
Share on other sites

well it caused a problem with the includes general file. I got the http 500 error and called the server because 500 is a server problem it refferenced the general page they restored my site to the last backup. Any idea why it caused the problem with the general file? also at the bottum of my product page it now says view text and like the name of the product any idea or is that the way it is supposed to be? Also after i loaded in the database change it said it was sucessful but the title didnt change?

Share this post


Link to post
Share on other sites

well it caused a problem with the includes general file. I got the http 500 error and called the server because 500 is a server problem it refferenced the general page they restored my site to the last backup. Any idea why it caused the problem with the general file? also at the bottum of my product page it now says view text and like the name of the product any idea or is that the way it is supposed to be? Also after i loaded in the database change it said it was sucessful but the title didnt change?

A 500 error occurs when there is a problem and the server doesn't have a specific error for it. A new or clean shop refers to one where the files have not been altered. If you have installed the simplest of contributions or changed the text to read Hi instead of Hello, then you no longer have a clean shop. You can still upload to install, providing the changes you made were not to files that you are uploading. However, if you are using a purchased template, then it is not a clean shop - far from it usually. But if you are sure you have not made any changes and it isn't a purchased template, then the upload should work. In that case, it would almost certainly be that you uploaded the wrong set of files, or not all of them.

Share this post


Link to post
Share on other sites

the only things i added were the google analytics and paypal credit card payments. I have a question in the instructions it says "NOTE: The Search Engine Frienly option in admin->Configuration must be off to use this conribution." would this be the problem? Also if i need to not use the clean sop setup i noticed there are a bunch of other files under admin that were not there in the cleanshop verision such as header_tags _seo.php header_tags_ seop_popup _longtext.php where do these go i didnt see them in the instructions. Right now i reloaded the install file and it is good

Share this post


Link to post
Share on other sites

Just tried it on another oscommerce site i have that to the best of knowledge nothing but a graphic was added to and the same result the http 500 error if you could please help out with the not new shop install and ill see if i can get it to work

Share this post


Link to post
Share on other sites

here is the actual error code i am getting when i attempt to login into the admin dashboard page Warning: require(includes/functions/header_tags_general.php) [function.require]: failed to open stream: No such file or directory in /home2/phantoma/public_html/phantomoffroadwheels/admin/includes/functions/general.php on line 1479

 

Warning: require(includes/functions/header_tags_general.php) [function.require]: failed to open stream: No such file or directory in /home2/phantoma/public_html/phantomoffroadwheels/admin/includes/functions/general.php on line 1479

 

Fatal error: require() [function.require]: Failed opening required 'includes/functions/header_tags_general.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home2/phantoma/public_html/phantomoffroadwheels/admin/includes/functions/general.php on line 1479

Does this help?

Share this post


Link to post
Share on other sites

here is the actual error code i am getting when i attempt to login into the admin dashboard page Warning: require(includes/functions/header_tags_general.php) [function.require]: failed to open stream: No such file or directory in /home2/phantoma/public_html/phantomoffroadwheels/admin/includes/functions/general.php on line 1479

 

Warning: require(includes/functions/header_tags_general.php) [function.require]: failed to open stream: No such file or directory in /home2/phantoma/public_html/phantomoffroadwheels/admin/includes/functions/general.php on line 1479

 

Fatal error: require() [function.require]: Failed opening required 'includes/functions/header_tags_general.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home2/phantoma/public_html/phantomoffroadwheels/admin/includes/functions/general.php on line 1479

Does this help?

The error is saying it can't find the required header tags file. You need to upload all of the files for this to work. You don't mention what version of oscommerce you are using even though I've mentioned it several times, but the line number indicates it is 2.3. In that case, go into the Use_if_version_greaterthan_2.3 directory and upload all of the files in the catalog and catalog_for_new_shop_only_2.3 directories. You have to copy the contents of them into the root of your shop. Don't just copy the directories.

Share this post


Link to post
Share on other sites

Hi Jack, we have an old ocs 2.2 website which uses HTC. Instead of upgrading the website I'm creating a new webite using ocs 2.3.1, can I install Header Tag Seo on the new website and just transfer the data or should I first upgrade the data on the old webite to HT Seo before transfering it to the new web site.

 

Thank you for all your assistance.

Share this post


Link to post
Share on other sites

Hi Jack, we have an old ocs 2.2 website which uses HTC. Instead of upgrading the website I'm creating a new webite using ocs 2.3.1, can I install Header Tag Seo on the new website and just transfer the data or should I first upgrade the data on the old webite to HT Seo before transfering it to the new web site.

 

Thank you for all your assistance.

Depending upon your version of HTC, there will/may be fields in the products decription, categories description and manufacturers info tables. Those tables are directly compatible, most likely, with 2.3 but if you are copying them, which you will need to do if you want to keep your categories/products as they are, which is important, then what you need for HTS should be there. The exception would be the configure settings. Later versions of HTC had configure settings. Those should be ignored and the ones in HTS should be used. So I would run the install script in HTS first and then copy the above tables. That should get all you need for HTS. This ignores any problems you may have with your upgrade to 2.3 but thast is not a matter for this thread.

Share this post


Link to post
Share on other sites

Hi Jack,

 

I've noticed a strange problem that you'd talked about in this thread in the summer of 2010.

 

I have FCKeditor installed, and whenever I manually changed a keyword or title tag or meta tag for any of the products on my site, _p_ and /_p_ are added to the meta description.

 

This happened to a few other people.

 

http://forums.oscommerce.com/topic/360129-need-some-html-strip-tags-help/

 

Germ gave a modification for includes/header_tags.php that seems to fix this issue for me:

Replace this:

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

 

 

With this:

echo ' <meta name="Description" content="' . str_replace(array("_p_", "_/p_", "_br /_"), "", $header_tags_array['desc']) . '" >' . "\n";

 

The underlying issue may be something more complicated regarding html tags being sanitized with database.php, but I don't see any side effects with this

minor code change.

 

Any thoughts on this?

 

Thanks

Share this post


Link to post
Share on other sites

 

The underlying issue may be something more complicated regarding html tags being sanitized with database.php, but I don't see any side effects with this

minor code change.

 

Any thoughts on this?

Meta tags shouldn't have html in them so removing such code won't hurt anything.

Share this post


Link to post
Share on other sites

I tried it again everything works but i do not have the replace me under the index page control message still showing my original title any idea of what file i missed

Share this post


Link to post
Share on other sites

I tried it again everything works but i do not have the replace me under the index page control message still showing my original title any idea of what file i missed

You probably didn't make the changes for the <head> section code.

Share this post


Link to post
Share on other sites

here is the view source code from the first page

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">

 

<head>

 

<meta name="description" content="Phantomcustomwheels.com is your source for wheels and tires. Choose from over 36 brands of wheels, and over a dozen brands of tires."/>

 

 

 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 

<title>Wheels, Tires, Custom Rims, Chrome Rims, Custom Wheels and more </title>

 

<base href="http://www.phantomcustomwheels.com/" />

 

<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" />

 

<script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>

 

<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>

 

 

 

 

 

<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>

 

<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />

 

<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>

 

<link rel="stylesheet" type="text/css" href="ext/960gs/960_24_col.css" />

 

<link rel="stylesheet" type="text/css" href="stylesheet.css" />

 

</head>

 

<body>

 

 

 

<div id="bodyWrapper" class="container_24">

 

 

 

 

 

<div id="header" class="grid_24">

 

<div id="storeLogo"><a href="http://www.phantomcustomwheels.com/index.php"><img src="images/store_logo.png" alt="Phantom Custom Wheels" title=" Phantom Custom Wheels " width="900" height="198" /></a></div>

Share this post


Link to post
Share on other sites

on which page?

It depends on the version. The steps to do so are in the instructions though.

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

×