Jump to content
Latest News: (loading..)
Jack_mcs

Header Tags SEO

Recommended Posts

I believe I was told here that we did not need header tags for our search results pages. I am having those pages index in google like this:

 

 

1 - Store Title

www.xxxxxxx.com/advanced_search_result.php?..xxx%20xxx...
Items 1 - 24 of 53 - Product title....Product title

 

Is there any way to at least have the page show something like " Page 1 - Search Results - Store Title" ?

 

Also, is there a way to add the product number to the tags? I have pages with duplicate titles and need to add that product number so at least one thing in the tags is different. ( I know I shouldn't have duplicate titles, but that's just how it worked out)

Share this post


Link to post
Share on other sites

The search engines shouldn't have search result pages listed. The only way, normally, for those pages to display is if someone does a search, which the search engines can't do. Although I've seen sites deliberately link to search results, which they shouldn't do. Or maybe you are using the Google Sitemap addon and don't have the pages listed in the ignore option.

 

But in answer to your question, the search engines, especially google, will make up their own titles and descriptions if they don't find one they like on the page. You can use the default check boxes for that page and it may prevent that but the text you enter may not make sense to your customers unless it is very generic. But if it is too generic, the search engines may not use it. Better to just block them in the first place.

 

There is an option to include the product model number and another to add the cPath ID. Either of those may make it unique.

Share this post


Link to post
Share on other sites

@ Search results appear in SE indexes when for eg, a user does a search and then links to the result page on a forum or social media site. They can be useful for SEO and drive traffic. The %20 appears in the url because of the spaces between search term keywords. You can try to do a string replace with + so that the URL becomes more readable. You can also try to get and echo the keyword parameter in the page Title.

Share this post


Link to post
Share on other sites

Hi,

 

I was wondering if someone can give me some info .. sorry if I missed it in this thread -  I was updating my header tags seo (V3.3.2) and I was in the Page Control section and going through checking the different tags such as -index.php / product_info.php etc.. all looked great including when I clicked the view results.

 

I then go back to my who's online feature and I notice that an ip (72-9-130-134) was mimicking what I was doing in my admin section of header tags - so I thought well that's odd as that is not my ip - so I blocked it.

 

In doing so I then went back into the header tags page control area - and clicked into index.php and so far so good - then when I clicked into the view results it now shows an 403 Forbidden in yellow and red for the rest - it does it for all of them now.

 

So I went and un-banned that ip - and now everything works.. is that suppose to occur as I never noticed that before.

Edited by Lexi

Share this post


Link to post
Share on other sites

That doesn't have anything to do with this addon. My guess is that it is your hosts IP. It is owned by elite hosts so if that is your host, that is what it is.

Share this post


Link to post
Share on other sites

Hi Jack,

 

I had emailed my host & its not them, will continue to investigate - and thank you for the great contribution and for the answer... :)

Share this post


Link to post
Share on other sites

@@Lexi If you can't identify the IP as one of your own or your hosts, I would check the site very carefully for hacker code since there's no reason for that to happen. You can run your site through our security checker to check for common security holes. But if you have a know good backup of your files, then you might want to download yours and compare them against it. If you are still having problems, please post a question in the general forums since it is off-topic here.

Share this post


Link to post
Share on other sites

Hi Jack,

 

Just a quick update but it's now fixed, I replaced with old backup & many thanks Jack..

Share this post


Link to post
Share on other sites

installed \HeaderTags_SEO_V_3.3.3_1

on

osc234 -- Responsive-osCommerce-master

 

 

everything seems ok with one pesky problem so far

 

it knocked out my ckeditor

 

in the admin .config.HeaderTagsSeo

 enabling CKEditor it works for categories desc but not for for products desc.

 

here is the error

 

Products Description:

 

 Fatal error: Call to undefined function tep_draw_textarea_ckeditor() in /home/site/public_html/bs/admin/categories.php on line 636

 

from admin>includes>template_top.php.i believe the problem is here.

//this code block is optional - if you want the ability to turn the editor on and off in admin add this - its not necessary and is not needed to make the editor work
/*** Begin Header Tags SEO ***/
?>
<link rel="stylesheet" type="text/css" href="includes/headertags_seo_styles.css">
<?php
switch (HEADER_TAGS_ENABLE_HTML_EDITOR) {
   case 'CKEditor':
     echo '<script type="text/javascript" src="ext/ckeditor/ckeditor.js"></script>';
    echo '<script type="text/javascript" src="ext/ckeditor/adapters/jquery.js"></script>';
   break;


   case 'FCKEditor':
   break;
         
   case 'TinyMCE':
     if (HEADER_TAGS_ENABLE_EDITOR_CATEGORIES == 'true'   || 
         HEADER_TAGS_ENABLE_EDITOR_PRODUCTS == 'true'     ||
         HEADER_TAGS_ENABLE_EDITOR_LISTING_TEXT == 'true' ||
         HEADER_TAGS_ENABLE_EDITOR_SUB_TEXT == 'true'      
        )
     {  
       if ($action == 'new_product' || $action == 'new_category' || $action == 'edit_category') { // No need to put JS on all pages.
         $languages = tep_get_languages(); // Get all languages
       // Build list of textareas to convert
         $str = '';
         for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
           if (HEADER_TAGS_ENABLE_EDITOR_CATEGORIES == 'true') $str .= "categories_htc_description[".$languages[$i]['id']."],";
           if (HEADER_TAGS_ENABLE_EDITOR_PRODUCTS == 'true') $str .= "products_description[".$languages[$i]['id']."],";
           if (HEADER_TAGS_ENABLE_EDITOR_LISTING_TEXT == 'true') $str .= "products_head_listing_text[".$languages[$i]['id']."],";
           if (HEADER_TAGS_ENABLE_EDITOR_SUB_TEXT == 'true') $str .= "products_head_sub_text[".$languages[$i]['id']."],";
         }  //end for each language
         $mce_str = rtrim ($str,","); // Removed the last comma from the string.
       // You can add more textareas to convert in the $str, be careful that they are all separated by a comma.
         echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>';
         include "includes/javascript/tiny_mce/general.php";
       } 
     }
   break;


   default: break; 
}     
/*** End Header Tags SEO ***/
if (!defined('USE_CKEDITOR_ADMIN_TEXTAREA')) {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) values ('', 'Use CKEditor', 'USE_CKEDITOR_ADMIN_TEXTAREA','true','Use CKEditor for WYSIWYG editing of textarea fields in admin',1,99,now(),'tep_cfg_select_option(array(\'true\', \'false\'),' )");
define ('USE_CKEDITOR_ADMIN_TEXTAREA','true');
}
if (USE_CKEDITOR_ADMIN_TEXTAREA == "true") {
?>




<script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script>
<!-- If you would rather use ckeditor.js file from a CDN uncomment the line below and comment the line above - if the version number has changed remember to change the version number - you'll actually find the line of code on the ck editor web site for your version -->
<!-- <script src="//cdn.ckeditor.com/4.4.4/full/ckeditor.js"></script> -->
<script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script>
<script type="text/javascript">
$(function() {
var $editors = $('textarea');
if ($editors.length) {
$editors.each(function() {
var editorID = $(this).attr("id");
var instance = CKEDITOR.instances[editorID];
if (instance) { CKEDITOR.remove(instance); }
CKEDITOR.replace(editorID);
});
}
});
</script>


<?php
// the closing brace here forms part of the php code block above
} //if you decide to leave out the php code block above then comment or remove this too
?>
</head>

I tried removing the header tag edits,

i tried removing the original ckeditor code

 

i changed the original directory and added second line in

echo '<script type="text/javascript" src="ext/ckeditor/ckeditor.js"></script>';
    echo '<script type="text/javascript" src="ext/ckeditor/adapters/jquery.js"></script>';

  i have tried quite a few things. i need someone else to see what i am missing.

Share this post


Link to post
Share on other sites

@@zpupster There are different ways to install CKEditor. You need to find a working call to the editor, like with the categories, and change the one for the products.

 

I'm curious why you would use a version that is not supported, at least by me, and probably won't be updated? Especially since my versions support the BS version.

Share this post


Link to post
Share on other sites

this works

echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '110', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])), 'id = "products_description[' . $languages[$i]['id'] . ']" class="ckeditor"');

thanks Jack,

I'm curious why you would use a version that is not supported, at least by me, and probably won't be updated? Especially since my versions support the BS version.

could you elaborate, the header tag version that i found was the latest,(i believe)

 

are you talking about osc234 -- Responsive-osCommerce-master??

Share this post


Link to post
Share on other sites

@@zpupster I'm the only one that has access to this addon. If someone has copied it and is making new versions, you're on your own when it comes to problems and upgrades unless it is something common like your last problem. The official version is located here.

 

Yes, I was referring to osc234 -- Responsive-osCommerce-master.

Share this post


Link to post
Share on other sites

@@Jack_mcs

 

There is a missing file when installing on a clean install of BS.  When installing the admin section you are instructed to upload all files in the catalog_only_new_files directory.  Once uploaded the installation is supposed to be complete.  The file /admin/includes/function/general.php is not included in that directory.  As a result, the following code is not part of general.php file and results in an error from not being able to call certain functions when adding/editing a product in admin:

/*** Begin Header Tags SEO ***/
  require('includes/functions/header_tags_general.php');
/*** End Header Tags SEO ***/

Share this post


Link to post
Share on other sites

Something is wrong with the shop you are using. The general.php file is in all versions of oscommerce, though I haven't checked the latest version of BS. But I can't imagine that would have been removed.

Share this post


Link to post
Share on other sites

I think you are misunderstanding me.  For a clean install on this mod you have the directory of files to upload to the server.  Those files overwrite the files on the server with the header tags code.  In your directory of files to upload for a clean shop install of this addon, you are missing the general.php file that has the snippet of code added for this addon that needs to be uploaded to the server.  Download the package and navigate to Use_if_version_BootStrap/catalog_only_new_files/admin/includes/functions/ and you will see that you are missing the general.php file that need to be uploaded. 

 

The only way I found this issue is that I went back and re-read the instruction as if I were installing on a modded site and verifying all the files  had the proper code in them if I were having to edit those files myself.  As it so happens, per your instructions in for the Admin, the general.php is the first file that you edit and the snipped of code to add to the end of the file was not in my general.php file.  That's when I noticed that it was not included in the Use_if_version_BootStrap/catalog_only_new_files/admin/includes/functions/ directory.  It is included in the Use_if_version_BootStrap/catalog/admin/includes/functions/ directory but that is not the directory that the instructions tell you to use to upload if you have a new unmodded shop.

Share this post


Link to post
Share on other sites

Oh OK, I understand now. That is a mistake in the instructions. I will correct them In the next version. Thanks for pointing out the mistake.

Share this post


Link to post
Share on other sites

The insturctions for uploaded the files for a clean shop for the catalog side and admin side seem to be backwards as far as which folder to upload from.  For the catalog side it instructs you to upload from the "catalog" directory but for the admin side it instructs you to upload from "catalog_only_new_files." Might I suggest renaming the folder to upload from for both the admin and catalog side to "clean_installation_files" and the folder for a modded shop to "new_addon_files" or something of the link to make it more clear.

Share this post


Link to post
Share on other sites

They are backwards. At one point they were named differently and the new files were in Catalog. That caused a lot of confusion (you can find posts about it in this thread). So I switched the files but didn't think to switch the instructions, thus the problem you are having.

Share this post


Link to post
Share on other sites

Hello,

I installed Header Tags SEO V 3.0.

Now i have a problem in admin / configuration / seo urls.

It's displays an error.

I'm running localhost with a clean setup.​

 

http://imgur.com/GDZJW2e

 

it says:

 

​Warning: call_user_func() expects parameter 1 to be a valid callback, function 'tep_reset_cache_data_seo_urls' not found or invalid function name in E:\test phpppppppppppsdfsdffsdfsdf\wamp\www\admin\includes\functions\general.php on line 1272

Share this post


Link to post
Share on other sites

It sounds like you may have overwritten the Ultimate SEO code in admin/categories.php.

Share this post


Link to post
Share on other sites

Hi Jack,

I have everything reinstalled, and now I get this error.​

btw. I got this error in  my admin / header tags seo / page control

 

error.gif Page not added - file name is invalid - opensearch.php ​

 

error.gif Permissions settings for the .............   /includes/header_tags.php file appear to be incorrect. Change to 777. NOTE: Disregard if on Windows server.

 

The strange thing is this, I put the permissions to 777​

 

please help.

Share this post


Link to post
Share on other sites
Those "invalid" messages are a little misleading. They mean the page is invalid for use with the Header Tags SEO code. It was added because some sites leave copies of regular files in the root that can cause a failure with this addon.

The exclude link will just hide the file from that list. It won't make any changes to the files. So this can be a dangerous thing if not used correctly. If there is a file that is a security hazard in the root, clicking exclude will leave it there so you would still have a security error. The opensearch.php file is a file used by your shop. It won't cause any problems and can be excluded.
 
The permissions error occurs because the permissions on the includes/header_tags.php file don't match those on the images directory. It uses that since the images directory is normally writeable. If you are sure the file can be written to, you can turn off the checking of it in the settings. 
 

Share this post


Link to post
Share on other sites

hi Jack,

I also get tis error in de testpage

Database/File Mismatch Error:  explain The number of file entries in the database (20) does not match the number in the includes/header_tags.php file (19).  Files not in the includes/header_tags.php file:   opensearch.php

Share this post


Link to post
Share on other sites

It just means opensearch.php was added to that file. You can edit that file and remove it, after clicking the exclude link for it, and it shouldn't happen again. Though it is harmless if it does.

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

×