Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

Jack!

 

Please, see on installation instruction for product_info.php line

       <?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>

This shold be redirect user to top of the page without reloading. But '"/# ' breaks the link and validation too. I think it should be

       <?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '#' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>

After that the link works properly. Same bug for all versions. Am I wrong?

Link to comment
Share on other sites

Jack!

 

Please, see on installation instruction for product_info.php line

       <?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>

This shold be redirect user to top of the page without reloading. But '"/# ' breaks the link and validation too. I think it should be

       <?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '#' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>

After that the link works properly. Same bug for all versions. Am I wrong?

The code as I have it has always worked in any shop I've installed it into, which is a considerable number, but I suppose there could be something in your shop that needs that change.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack,

Thanks so much for replying to all of our questions! Even though I didn't get a success message, I have decided to go ahead and continue with the directions, but have hit a snag again.

This here in the instructions: 1) ******** NOTE: STS USERS ONLY - Skip to step 1A. *********

******** NOTE: BTS USERS ONLY - Skip to step 1B. *********

Your shop is an STS shop if there is an includes/sts_templates/ directory.

Your shop is a BTS shop if there is a templates directory in the root directory.

 

I don't have either one of those on the server("/sts_templates" directory or a "template" directory).

 

And just looking forward in the instructions:

I don't have the "sts_inc directory": (includes/modules/sts_inc/general.php)

nor do I have the main_page.tpl.php file

Nothing that you mention to edit in the index.php file is there either.

 

So do you have any ideas on what I can do and why they wouldn't have these files? Are they just out of luck on getting this to work then?

Link to comment
Share on other sites

This here in the instructions: 1) ******** NOTE: STS USERS ONLY - Skip to step 1A. *********

******** NOTE: BTS USERS ONLY - Skip to step 1B. *********

Your shop is an STS shop if there is an includes/sts_templates/ directory.

Your shop is a BTS shop if there is a templates directory in the root directory.

 

I don't have either one of those on the server("/sts_templates" directory or a "template" directory).

Then don't skip to the steps mentioned.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi jacs,

 

I have STS installed and I have problem with only page control for some file.

 

Create_account.php is not in the drop down list at all and links.php is in dropdown but the root text that I put in there doesn't display in front side of catalogue in browser.

 

I searched a lot in this support forum but cannot get the answer for this problem. Can you please let me know if any modification is required to the files that are not working in page control?

 

Thank you in advance.

Link to comment
Share on other sites

I have STS installed and I have problem with only page control for some file.

 

Create_account.php is not in the drop down list at all and links.php is in dropdown but the root text that I put in there doesn't display in front side of catalogue in browser.

 

I searched a lot in this support forum but cannot get the answer for this problem. Can you please let me know if any modification is required to the files that are not working in page control?

The purpose of this contribution is to improve the position of a page of a site in the search engine listings. Since search engines should get see the checkout pages, or any secure page, it doesn't serve any purpose to edit those pages. As for the links page, I can't think of any reason why it won't work, providing you make the correct changes for STS. If the root text doesn't show for other pages, then something is wrong with your installation.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The purpose of this contribution is to improve the position of a page of a site in the search engine listings. Since search engines should get see the checkout pages, or any secure page, it doesn't serve any purpose to edit those pages. As for the links page, I can't think of any reason why it won't work, providing you make the correct changes for STS. If the root text doesn't show for other pages, then something is wrong with your installation.

The root text doesn't display just for the links page. Other pages such as shipping, etc page's root text and desc works fine.

Edited by sahilsaid
Link to comment
Share on other sites

The root text doesn't display just for the links page. Other pages such as shipping, etc page's root text and desc works fine.

Does the links page have Header Tags code in it? I assumed you have Links Manager installed, which has Header Tags code in it by default, but if you are using some other links code, you have to add the Header Tags code to it, as explained in the install file.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Does the links page have Header Tags code in it? I assumed you have Links Manager installed, which has Header Tags code in it by default, but if you are using some other links code, you have to add the Header Tags code to it, as explained in the install file.

 

I have STS and as you know individual header code doesn't required to be placed in header of each files. Not sure what can be the problem?

Edited by sahilsaid
Link to comment
Share on other sites

I have STS and as you know individual header code doesn't required to be placed in header of each files. Not sure what can be the problem?

I'm sorry. I forgot you mentioned that. I don't know what the problem might be. But if you have one page where it is working and one where it isn't, then you should be able to swap things around to isolate the problem.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

So I'm not a STS or BTS user, but don't see what I should be seeing in the index.php file. By posting what I'm seeing in this file, can you maybe put me in the right direction? I'm really trying to get this to work, but I'm just not seeing any of the areas mentioned in the instructions. I was able to find the right area in the Template_top file and that was it. Here is what I'm seeing in the index file:

 

<?php

require('includes/application_top.php');

$content = array();

$content = tep_content_data('1');

 

?>

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

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

<script type="text/javascript" src="/js/number_slideshow.js"></script>

 

<!--left column starts-->

<div class="leftColumn">

<div id="banner">

<script language="javascript" type="text/javascript">

$(function() {

$("#number_slideshow").number_slideshow({

slideshow_autoplay: 'enable',//enable disable

slideshow_time_interval: '3000',

slideshow_window_background_color: "#ffffff",

slideshow_window_padding: '0',

slideshow_window_width: '713',

slideshow_window_height: '264',

slideshow_border_size: '0',

slideshow_border_color: 'black',

slideshow_show_button: 'enable',//enable disable

slideshow_button_text_color: '#ffffff',

slideshow_button_background_color: '#3b3f35',

slideshow_button_current_background_color: '#ababab',

slideshow_button_border_color: 'none',

slideshow_button_border_size: '0'

});

});

</script>

 

 

 

<?php require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_FEATURED);?>

 

<a href="contact_us.php"><img src="images/do-you-have-any-question.jpg" alt="Contact Lifemed Warehouse" border="0" align="left" /></a>

<img src="images/spacer.gif" alt="" height="98" width="10" align="left" />

<a href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>"><img src="images/special-offer-at-lifemed.jpg" alt="Lifemed Warehouse Special Offers" border="0" align="left" /></a>

 

<?php require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_TOP_SELLING);?>

</div>

<!--left column ends-->

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

 

 

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

 

Any ideas?

And just so I don't have to keep posting, here is what else is missing:

 

In product_info.php, the instructions say:

 

FIND (around line 200)

 

<?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?>

</div>

 

There is nothing about this in my product_info file. Does this just mean that they aren't using product reveiws? Maybe not a big deal?

 

And pretty much nothing that I need to find in the Header.php file is there either. What could be going on?! I don't get this. Could it be because the original developer went very custom?

Link to comment
Share on other sites

So I'm not a STS or BTS user, but don't see what I should be seeing in the index.php file. By posting what I'm seeing in this file, can you maybe put me in the right direction? I'm really trying to get this to work, but I'm just not seeing any of the areas mentioned in the instructions. I was able to find the right area in the Template_top file and that was it. Here is what I'm seeing in the index file:

If your files don't match the instructions then you're on your own. I can't provide individual support on the forums since that would quickly turn into a full-time job.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Ver3.2.5 works excellent for oSC2.3.1 . It pushed some products of my client's catalogue's ranking within top 5 with common keywords for text searching and many within 10 for image searching.

 

thumbsup.gif

Has anyone tried this on oScommerce v.2.3 ? How does it work on that... any suggestions?

YaNotCook !!

Link to comment
Share on other sites

Jack, is it possible to have a title tag for the homepage that is not appended to the category and product pages?

 

For example my problem is that whatever I change the title on index.php to it also affects my product and category pages. Is there a way to stop this?

Link to comment
Share on other sites

Jack, is it possible to have a title tag for the homepage that is not appended to the category and product pages?

 

For example my problem is that whatever I change the title on index.php to it also affects my product and category pages. Is there a way to stop this?

Uncheck the root checkbox for index.php for Page Control.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack

I have installed the Header SEO software.

And now when I go into my oscommerce admin and then to HEADER TAGS SEO.

 

I have this error:

 

Warning: call_user_func(header_tags_reset_cache) [function.call-user-func]: First argument is expected to be a valid callback in /home/mg13cs12/public_html/pole-positions.com/catalog/admin/includes/functions/general.php on line 1195

 

What does this mean and how do I fix it?

 

 

Thx

Carlene

Link to comment
Share on other sites

Warning: call_user_func(header_tags_reset_cache) [function.call-user-func]: First argument is expected to be a valid callback in /home/mg13cs12/public_html/pole-positions.com/catalog/admin/includes/functions/general.php on line 1195

 

What does this mean and how do I fix it?

It means you missed part of the installation. You need to go back through the instructions and perform all of the steps.

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.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack

I seem not to get the pseudo pages right for extra_info_pages.php

 

In admin I deleted all extra_info_pages links coming from dropdown list and run Add missing pages so that extra_info_pages.php will show up again

My includes/header_tags.php shows the entry for extra_info_pages.php there

 

Now when adding say extra_info_pages.php?pages_id=4 to the pseudo, it updates and shows up in dropdown list

However, entering descriptions and so to header_tags_seo admin page, keywords or title entries my extra_info_pages.php will always shows the same title and keywords with no description for every pseudo page

 

I checked headertags table and entries is showing up for every pseudo page e.g. extra_info_pages.php?pages_id=4 or extra_info_pages.php?pages_id=5

 

Please if you can help me on this

Getting the Phoenix off the ground

Link to comment
Share on other sites

Hi Jack

I seem not to get the pseudo pages right for extra_info_pages.php

 

In admin I deleted all extra_info_pages links coming from dropdown list and run Add missing pages so that extra_info_pages.php will show up again

My includes/header_tags.php shows the entry for extra_info_pages.php there

 

Now when adding say extra_info_pages.php?pages_id=4 to the pseudo, it updates and shows up in dropdown list

However, entering descriptions and so to header_tags_seo admin page, keywords or title entries my extra_info_pages.php will always shows the same title and keywords with no description for every pseudo page

I can think of only two reasons for it not to work: there isn't header tags code in the extra_info_pages.php file and/or the permissions for includes/header_tags.php are not set correctly. For the latter, look at the contents of that file and you should see a large section of code (compared to the others) for that file.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks for quick response

 

my includes/header_tags.php is set to 775

in the file:

// extra_info_pages.php
 case (basename($_SERVER['PHP_SELF']) === FILENAME_PAGES):
   $page = 'extra_info_pages.php?pages_id=1';
   $parts = explode("?",$page);
   $getStr = substr($parts[1], 0, -1);
   $getID = isset($_GET[$getStr]) ? $_GET[$getStr] : '';
   $parts = explode("=", $parts[1]);
   if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $getID)) {
     if (isset($parts[0])) {
      $found = false;
      $name = FILENAME_EXTRA_INFO_PAGES . "?" . $parts[0] . "=";
      $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . $name . "%' and language_id = '" . (int)$languages_id . "'");
       if (tep_db_num_rows($pageTags_query) > 0) {
         while($pageTags = tep_db_fetch_array($pageTags_query)) {
           if ($name . $_GET[$parts[0]] === $pageTags['page_name']) {
              $header_tags_array = tep_header_tag_page($pageTags['page_name']);
              WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $getID);
              $found = true;
              break; 
       } } }
       if (! $found) {
          $found = true;
          $header_tags_array = tep_header_tag_page(FILENAME_EXTRA_INFO_PAGES);
          WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $getID);
      } } else { 
       $header_tags_array = tep_header_tag_page(FILENAME_EXTRA_INFO_PAGES);
       WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $getID);
     }  
   }
 break;

and in extra_info_pages.php

<html <?php echo HTML_PARAMS; ?>>
<head>
<?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 ***/
?>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

 

Any idea where I've gone wrong

Getting the Phoenix off the ground

Link to comment
Share on other sites

Thanks for quick response

 

Any idea where I've gone wrong

Assuming extra_info_pages.php?pages_id=4 is the correct entry for a pseudo page (I don't use that contribution so I can't say), the only other thing I can suggest is to turn of the cache option, if it is enabled. I don't recall testing cache with pseudo pages so maybe that is causing a problem. But other than that, I don't have any other suggestions. The problem would require troubleshooting.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Install seemed to go smoothly and is working great on all product pages. But getting the following error on all information pages (shipping, privacy, etc). Ran test and no errors come up with that. And there is no line 234 in the header tags file. I am going back through the install step by step, but wondering if anyone might have an idea where this coming from.

 

Fatal error: Call to undefined function filename_templ_product_list() in /home3/twistfou/public_html/includes/header_tags.php on line 234

Thanks,

 

S

Link to comment
Share on other sites

Assuming extra_info_pages.php?pages_id=4 is the correct entry for a pseudo page (I don't use that contribution so I can't say), the only other thing I can suggest is to turn of the cache option, if it is enabled. I don't recall testing cache with pseudo pages so maybe that is causing a problem. But other than that, I don't have any other suggestions. The problem would require troubleshooting.

Thanks Jack

 

I'm cleaning up errors and functionality as my oscommerce skills improve, had this problem since first install and upgrades many moons ago.

If there's anything to mind please can a solution or trial be posted.

Getting the Phoenix off the ground

Link to comment
Share on other sites

Hi Jack,

 

After reading through your suggestions in my previous post regarding "Category Descriptions v.1.06" I have decided to go ahead with your far better contribution "Header Tags SEO V 3.0" for version 2.3.1, which in addition to allowing me to do what I want as far as adding category descriptions, will do double-duty in also taking care of SEO chores at the same time, far smarter I think.

 

I've already run into a dumb question though, while reading over the installation instructions that perhaps you or one of your contributions supporter's can answer.

 

I have a brand new version of osCommerce v.2.3.1, with one contribution already installed (QPBPP_osc2.3.1_ver2.0, a quantity price break contribution, so I understand to use the correct contribution etc. for my particular version.

 

However what I'm unsure of is whether or not platform is a BTS or STS, as neither folder is in my site heirarchy/structure and there are no instructions written for neither as far as the instructions go. Am I mising something in my codes? I've checked back in my original osCommerce v.2.3.1 package and couldn't locate either of the folder's mentioned. Until I understand a bit more about this I don't want to proceed any further in order to insure a solid install of your contribution. Thanks Jack, appreciate your assistance here.

 

Cheers,

DougB

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