Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

Thanks Jack,

I really wish I could say that the update fixed my problem, but unfortunately I can't! I just don't get it. If it worked, I should be able to see it in the admin panel, right? I don't get any success message. There's nothing about Header Tags SEO in the admin panel after I run the install.php file. Well crap! Should I try to import the sql file instead of using the php file? Would that make a difference?

No, the install file just makes the database changes. You have to change teh files for it to show in admin.

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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 !!

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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

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

×