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

Header Tags SEO

Recommended Posts

Sorry about that...here's the screenshot

 

post-231701-0-06692300-1411667539_thumb.jpg

 

I was looking through includes/modlues/product_listing.php to see if I could figure things out but to now avail.

 

Thanks

 

 


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Jack, I got this fixed up.  I took a stock includes/modlues/product_listing.php file from the 2.3.4 version, then did a file comparison with your version of that same file for Head Tags, bringing Head Tags SEO code into the 2.3.4 version.   Updloaded that merged file and all is fine now.  

I got your version from the HT SEO 3.3.2 update by the way.

I didn't troll through the code of the file that was causing the problem to see what I might have done though, but anyway for now all's good.

Thanks for your time.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

That's a strange one. No one else has mentioned the problem and I've not seen on installations I've done. Glad you figured it out though. :)

Share this post


Link to post
Share on other sites

HI!
I have trouble with HeaderTags_SEO_V_3.3.2_1\Use_if_version_lessthan_2.3\catalog_only_new_files\includes\modules\header_tags_opengraph.php :
 
The initial request is

select groupname as storename, data as creator from " . TABLE_HEADERTAGS_SOCIAL . " where section = 'twitter'

 

 

and i read into HeaderTags_SEO_V_3.3.2_1\Database_Files\headertags_seo_update.php :

 

 

('10', 'socialicons', 'twitter', 'http://twitter.com/home?status=URL&TITLE' '16x16')

 

so section is 'socialicons' and never 'twitter' ==> the request result is : nothing !

 

Have I not anything understanded ??

 

Thanks to explain me !

 

bebe cash 59

Edited by bebe cash 59

Share this post


Link to post
Share on other sites

@@bebe cash 59 I'm not sure I understand what you are saying but if you are referring to the Twitter Card, you have to set that up in the social section of Header Tags SEO in admin. Have you done that?

Share this post


Link to post
Share on other sites

Hi Jack,

 

despite the fact that I not using manufacturers, I've noticed that time to time there is MySQL error becouse of Unknown column 'mi.manufacturers_htc_breadcrumb_text' in 'field list'. I've not been able to find complete modification of the manufacturers table in the previous releases, would you be so kind as to post me the SQL code for that table (and manufacturers_info if applicable) please?

Edited by mr_absinthe

Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

@mr_absinthe If you run the included update file it will add that in. The url is http://domain name/headertags_seo_update.php?reset_options=true

Share this post


Link to post
Share on other sites

No problem at all. Glad you were able to get it to work. :)

Share this post


Link to post
Share on other sites

Hi ,

Can you help troubleshoot?  Getting a blank page on any attempt of search on my site - quick search or from Advance Search page.  Hosting showing the error is a PHP Fatal error: Call to undefined function gethtstagcloudlink() in  /xxx/xxx/public_html/includes/modules/header_tags_keywords.php on line 18

This is the line:

$found = (GetHTSTagCloudLink($keyword, $languages_id) == false ? 0 : 1); //keyword is in products, categories or manufacturers tables

Installed:

Header Tags SEO 3.3.0

OS Commerce v2.3.3.2

 

Thanks in advance

Share this post


Link to post
Share on other sites

The error is saying it can't find a function that this addon provides. That function is in the includes/functions/header_tags.php file. Please check to make sure it has been uploaded?

Share this post


Link to post
Share on other sites

The error is saying it can't find a function that this addon provides. That function is in the includes/functions/header_tags.php file. Please check to make sure it has been uploaded?

 

I re-uploaded the file and now when search this appears instead of blank page

1146 - Table 'xxxx_database.TABLE_HEADERTAGS_KEYWORDS' doesn't exist

select 1 FROM TABLE_HEADERTAGS_KEYWORDS where keyword = 'skull' and language_id = 1

[TEP STOP]

Share this post


Link to post
Share on other sites

That error is saying you didn't make one of the required changes. Since this is the second mistake, I wouldn't trust the rest of the installation and suggest you start over.

Share this post


Link to post
Share on other sites

Hi Jack, I have a shop with Header Tags SEO installed. V 3.3..2.

 

When updating to 2.3.4 and getting to the part that forces SSL in Admin,  CKEditor will not load if I enable that in admin/includes/configure.php.   If I disable, ckEditor will work.

 

In HT SEO 3.3.2 I have CKEditor enabled for products descriptions and Header Tags Category Description only.  So when I try to edit those parts, the HTML editor does not appear.

 

I am presuming that some SSL coding needs added to get this to work but I am not sure.   Looking through the install instructions for 3.3.2 I see some code with SSL includes is replaced by code that does not have SSL.

 

What do you think?

 

Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Steve - I am not familiar with any change that puts any control of CKEditor in the configure file so I don't understand the comment about enabling it there. I just recently installed Header Tags SEO into a 2.3.4 shop that has the CKEditor and it is working fine. The only condition to have the editor work was to enable it in the Header Tags settings. In this shop, the template_top file in admin has the code for Header Tags. Does your template file have that?

Share this post


Link to post
Share on other sites

Hi Jack, I was referring to activating https in admin via the configure file as per this line of code in admin/includes/configure.php:

  define('ENABLE_SSL', false);

Where if set to false CKEditor will load for product and category descriptions.  That's all I have enabled.

 

If set to true, CKEditor does not load.  Nothing shows in the space where it should be.

 

Here is the code I have in admin/includes/template_top.php

/*** Begin Header Tags SEO ***/
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 ***/

Note that these two lines 

 

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

 

Differ from the instructions because the version of CKEditor I am using calls for that file path.

 

Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

The Header Tags code definitely doesn't care if ssl is enabled or not and I don't think CKEditor does. Maybe the problem is that the etc directory is being accessed is causing the problem. I would try moving it to the admin directory and see if that makes a difference.  If you remove the Header Tags code from the template_top file, does the editor work in other parts of admin with or without ssl?

Share this post


Link to post
Share on other sites

Jack, I may have this now.

 

I followed the steps you suggested but that didn't affect anything.   So after putting the HT SEO code back in admin/includes/tempate_top.php I noticed there was residual coding there from when I first installed CKEditor (before I installed HT SEO).  So I removed that, and tested again and with SSL enabled in admin the editor is now appearing.  

 

That residual code has been there for a long time but only after forcing SSL in admin apparently did it become a problem.  Or so I am presuming at this point.

 

Tomorrow I am going to revisit this with Firebug and watch what happens when I test around a bit.

 

Thanks for your time.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Great - good catch. Thanks for posting the fix since others may run into it.

Share this post


Link to post
Share on other sites

Dupe Item description in categories/sub categories.

 

Osc V 2.3.4

 

I’m probably late in the game, but I’m stumped.

In my categories and sub categories, the item name is showing up twice.  Once on the side of the picture and once under the picture, centered, as it is supposed to be.  I believe it started after I upgraded the Header Tags SEO to V 3.3.2.  But not real sure.  I have been trying to find the problem on my own for some time. 

 

I have removed the product_info.php that was modified with the pure version (unmodified) of 2.3.4 and still get the same dupe in item names.

 

The name on the left of the picture is coming from product_info.php?cPath=XX_XX&products_id=XXX&.

The name under the picture is coming from product_info.php?products_id=XXX&

 

Please visit my web site “lbgdecor.com”  and click on a category and them a sub category to see the dupe’s in item descriptions.

 

Any ideas on how to remove the [product_info.php?cPath=XX_XX&products_id=XXX&] that is giving the dupe item name off to the left side of the picture?

Share this post


Link to post
Share on other sites

@@dculley A lot of templates I see leave the original code in the includes/modules/product_listing.php file and then add their own farther down in it. So the output of the Header Tags changes is probably getting added twice that way. You can try replacing that file with your original to make sure the problem goes away to determine where it is coming from.

Share this post


Link to post
Share on other sites
@ Jack_mcs

Out of all my searches I did not come across the product_list in include/modules.  I block out:

            /*** Begin Header Tags SEO ***/

          //  $lc_add = '</td>';

          //  $hts_listing_query = tep_db_query("select products_head_listing_text, products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = " . (int)$listing['products_id'] . " and language_id = " . (int)$languages_id);

          //  if (tep_db_num_rows($hts_listing_query) > 0) {             

          //      $hts_listing = tep_db_fetch_array($hts_listing_query);

          //      if (tep_not_null($hts_listing['products_head_listing_text'])) {

          //          $lc_add = '<div class="hts_listing_text">' . $hts_listing['products_head_listing_text'] . '...<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . (int)$listing['products_id']) . '"><span style="color:red;">' . sprintf(TEXT_SEE_MORE, $listing['products_name']) . '</span></a></div></td>';

          //      } else if (HEADER_TAGS_ENABLE_AUTOFILL_LISTING_TEXT == 'true') {

          //          $text = sprintf("%s...%s", substr(stripslashes(strip_tags($hts_listing['products_description'])), 0, 100), '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . (int)$listing['products_id']) . '"><span style="color:red;">' . sprintf(TEXT_SEE_MORE, $listing['products_name']) . '</span></a>');

          //          $lc_add = '<div class="hts_listing_text">' . $text . '</div></td>';

          //      }

          //  }      

 

          //  if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {

          //    $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

          //    $prod_list_contents .= $lc_add;

          //  } else {

          //    $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

          //    $prod_list_contents .= $lc_add;

          //  }

            /*** End Header Tags SEO ***/

 

And that took care of it.

Now is the question is do I need to replace the above and if so with what?

 

Thank you so much getting back to me so quickly.  I guess I should have posted for help earlier.

Share this post


Link to post
Share on other sites

That's the code for the product listing descriptions. It adds a part of the description for each product on that page. The option that enables it is named "Enable AutoFill - Listing Text" and there is a listing box in the product edit page that can also do it  If you don't want to use that option, then you can leave the code out. If you want it, then you would have to figure out what it is showing up twice. That's not something I can help with here.

 

.

Share this post


Link to post
Share on other sites

Alright guys I am very confused and I can't understand what I am doing wrong.

Everytime I try to change something (in this module of cource) in the Admin panel I get this message:

Parse error: syntax error, unexpected $end in ...../includes/header_tags.php on line .....

 

When I download the file and look what's going on everytime I find that the "switch (true)" does not have a closing "}" sometimes some of the cases are not closed.

What am I doing wrong? Please help.

Edited by sapabg

Share this post


Link to post
Share on other sites

Try replacing that file with the one from the package. Then, without going into admin, click around the shop to see if the problem is still there. If it isn't, then go into Page Control in admin and then back to the shop and see if the problem has returned. If it has, it means the code that writes to the file is causing the problem. That is almost caused by some invalid file in the root. If you have any warnings at the top of Page Control about invalid files, be sure to handle those.

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

×