Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS and Header Tags Controller


kslager

Recommended Posts

Hello, I've done a clean osC install and have STS working fine. I have tried getting it to work with the header tags controller contrib and was completely unsuccessful.

 

Does anyone have these successfully working together? If so, can you post the URL to your store so i can take a look? Maybe you can give me a few pointers. Maybe the exact versions of the contributions would be helpful.

 

 

 

I have tried <!--$headcontent--> and $headcontent in head of html template and index.php / product_info.php. Does not produce and errors, but for some reason the <!--$headcontent--> never seems to output anything in STS.

 

Thanks!

Link to comment
Share on other sites

You will need to provide details as to how it fails. Saying it fails doesn't give me anywhere to start. Also, try posting in the STS support thread since there are many there that do this already and may be able to help more.

 

Jack

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

it fails like this...

 

the <title> and <meta> information for all pages comes from the template, not from header tags controller. the problem with this is that every product page in my catalog will have the same title, description, and keywords making it extremely search engine unfriendly. the only diference in pages is in the <body> tags.

 

I know this is vague still. I will set up a clean install later this afternoon and install STS and header tag controller. Maybe you can give me a hand.

 

If youd like to look at my live store, its at www.stagenine.com/catalog/

 

 

THANKS!

Link to comment
Share on other sites

It appears that, from viewing the source on that page, that header tags is not being used. Be sure that it is enabled in sts_display_output. In fact, you might want to try disabling STS temporairly (set the option in sts_display_output) and see if HTC works.

 

Jack

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

Jack. After uploading a fresh copy and installing STS and HTC, i remembered where i had the problem. I forgot all about this until re-attempting. It came from HTC while making the instructed addition to /includes/application_top.php.

 

the HTC install says to add

 

// BOF: WebMakers.com Added: Header Tags Controller v1.0
 require(DIR_WS_FUNCTIONS . 'header_tags.php');
// Clean out HTML comments from ALT tags etc.
 require(DIR_WS_FUNCTIONS . 'clean_html_comments.php');
// Also used by: WebMakers.com Added: FREE-CALL FOR PRICE
// EOF: WebMakers.com Added: Header Tags Controller v1.0

 

 

When this is added, the following error occurrs in osC.

 

Fatal error: Cannot redeclare clean_html_comments() (previously declared in /home/stagenin/public_html/catalog/includes/functions/clean_html_comments.php:13) in /home/stagenin/public_html/catalog/includes/functions/clean_html_comments.php on line 13

 

 

So..

 

I skipped this step.

 

More impotantly however, i did not see the variable in sts_display_output.php that turned the header output for HTC on. THANKS VERY MUCH. Problem Solved. Everything works perfectly now. Even with the skipped code in application_top.php

 

 

http://www.stagenine.com for example.

Link to comment
Share on other sites

  • 3 weeks later...

I also had to comment out that section in application_top to get HTC to work w/ STS.. However, when I go to poodle and run a test..it doesn't show my site as having a description...it comes up w/ "top/Home/SignIn" or the first things on my php file..... could this be because I commented out those statements???

Link to comment
Share on other sites

I also had to comment out that section in application_top to get HTC to work w/ STS.. However, when I go to poodle and run a test..it doesn't show my site as having a description...it comes up w/ "top/Home/SignIn" or the first things on my php file..... could this be because I commented out those statements???

No, that is just how your site is listed. It could be for a variaety of reasons but not due to the code being commented out. When you comment it out, you are doing so because it was already in there. So you are really just commenting out a duplicate.

 

Jack

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

Thank you, i'l have to keep looking at why the description is not showing ..weird thing is that when i go into the "header-meta view" or "diagnostics view" it shows the meta description in there, but when i imitate a crawl they don't show in the paragraph under the tittle....

 

kslager: poodle is a webpage where you can imitate a google crawl on demand so you can optimize your website accordingly, google it.

Edited by rick24
Link to comment
Share on other sites

  • 2 years later...

I am having the same problem with the STS and HTC.

 

In the source code of a single page, the Title and the Meta description are used as provided in the HTC-fields from the admin. However, in both Google and the top of the browser the 'default' value is shown.

 

See for example: http://www.pokerspecialist.net/store/index.php?cPath=24

 

Anyone an idea how to get the last step right?

Link to comment
Share on other sites

  • 4 months later...

I think it also works in the product info box as it shows the description i entered in the admin part. What doesn't work is the title of the page and meta tags. I tried setting it in admin and checked the source of the site and still empty tags. What's weird is that it works ( I mean the category name and the title appear on the title bar in firefox ) if I include the

 

    require(DIR_WS_FUNCTIONS . 'clean_html_comments.php');
   require(DIR_WS_FUNCTIONS . 'header_tags.php');

 

in headers.php and application.php although it doesn't show the whole page it just shows "Fatal error: Cannot redeclare clean_html_comments() (previously declared in C:\wamp\www\includes\functions\clean_html_comments.php:11) in C:\wamp\www\includes\functions\clean_html_comments.php on line 24"

 

but the title bar works. someone know how this works?

Edited by papao_03
Link to comment
Share on other sites

For anyone who is trying to install STS and HTC together, I have provided a clear step by step that will get you on your way.

 

Click on the link in my signature below regarding STS and HTC.

 

There are some special steps that you need to add and some that you need to skip in order to have them both working together correctly. :thumbsup:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

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.
Note: Your post will require moderator approval before it will be visible.

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