Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

That worked, thanks a bunch. So yeah, since that worked on the renamed index.php, I just need to compare them to find out what I did wrong on the install.

Link to comment
Share on other sites

Hi,  I have installed  Header Tags Seo V3.3.4  but I wanna delete the Title/Description etc but it don't delete it when I push the button, even new content it don't overwrite. 

Edited by Boldman
Link to comment
Share on other sites

@@Boldman This is too vague a question for me to respond. Are you editing Page Control, a category, a product, a manufacturer? If you want to clear them all, you can use the clear all tags in Fill Tags?

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.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

There's nothing to stop that as far as I can remember. I just tried it here on a test shop and it worked. But that would be a big mistake with regards to SEO so I suggest you not do it.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Are the permissions set correctly on the includes/header_tags.php file? That's the only thing I can think of that may stop it, though I don't think it will. If you are saying you go into Page Control, select index.php, make a change to the title box, click update and it doesn't take, then if it is not the permissions, it has to be something wrong with your installation. When the update button is clicked, the database is updated using standard oscommerce code. Are you able to edit a product and change one of its fields?

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

When I change the content from index.php from the title box and update it updates in the title box but when I looking the source of the page itself it won't change, strange.

 

I got notest when I was busy with rankingcoach, it was advice me to write some words in the title,  when I did a change in header tags Seo index.php and update then I did a recheck and it did not found the words I have updated.

 

permissions set correctly on the includes/header_tags.php file  755

 

this line is in the tiitle box of index.php :  Fiets Damesfiets Herenfiets meisjesfiets jongensfiets Herselt

Check the index on fashionbikes.be/shop/index.php

Edited by Boldman
Link to comment
Share on other sites

This is different than what you originally said. If you can change the text in Page Control then the admin is working correctly. In that case, the problem is on the shop side. The problem could be in a few places. Does the title work correctly on the product page? If not, then you've made a mistake in the includes/template_top.php file.

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs 

 

Running osc234 w/ bootstap

 

Ok I took the step and started the install

 

I did the first step, I installed the database > it came back successful with a continued button.

 

Then I uploaded the second step, I uploaded the catalog part.  Went to the site and all I had was a white screen. 

 

What is wrong.

Dean

Link to comment
Share on other sites

There is a directory named catalog and another named catalog_only_new_files. You can, and should, upload the latter without causing any problems. But the catalog directory contains edited files that probably don't match your site. So if you uploaded them, it will break the shop, as mentioned in the installation instructions. For shops that have been edited, you have to apply the changes manually. 

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs

 

I read the "read me first"

 

Went to the BS version, printed out both catalog and admin install.  I followed the instructions and uploaded the seo install and installed it, successfull.

Then the (still in BS) the Cat new files. 

Thin I used the Merge program, following the BS install catalog.txt, to but the parts of the files in the pages as the instruction said.  I compared the BS Catalog directory files to mine and used merge to place the files.  

Next I uploaded them.  Then the White page. 

Link to comment
Share on other sites

@@dculley  If I recall correctly, you have a 2.3.4 shop with the Bootstrap code added as opposed to the actual BS shop. If that is correct, then the files in the "Use_if_version_greaterthan_2.3" directory are probably closer to what you have. Either set of files will work for comparing. Just be watchful of the differences.

 

The white screen means there is a fatal mistake in the code. To find out what it is, try one of these:

 

1 - See if there is a file named error_log in the root of the shop. If there is, it should have the cause of the failure (last line).

 

2 - Open the includes/application_top.php file, find the line near the top starting with error_reporting and add this line after it:

  ini_set('display_errors','1'); 

Be sure you don't already have that line. If you do, then set it to 1, assuming it is set to 0. Then reload the page and you should see at least one failure. It is usually the last one that is causing the problem. When you are done, you should leave that line in the file but change it to a value of 0.

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.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs

 

I may will work on it again this week end. 

 

I was very careful of watching where the lines were placed.  Kind of bombed out about it.  I took me some time to get the files ready or I thought ready.  It was no rush job.  But we will see.

 

Thanks

Link to comment
Share on other sites

When there are problems like this, the best approach, in my opinion, is to get the admin changes applied and working first. That way the shop side is not affected and you know the database is setup correctly. Then on the shop side, the only changes needed for an initial test is those to the includes/template_top.php and index.php or product_info.php (the latter is the easier of the two). If it still fails, then the problem is in one of those two files and should be easy to located. Good luck. :)

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs

 

one more thing.  Before I opened my site I did go and and change the permission to 755 on the header tags.php file.

That is rarely necessary. Only a few very oddly set-up servers need .php files to be marked "executable". 644 (read-write by owner, read-only by everyone else) will usually do the job, although files that PHP needs to write to (update) may have to be "writable" by group (664) or even by world (666), depending on how your server is set up (where PHP is running). In general, you want to give directories and files the least (most restrictive) permissions that will do the job. Don't listen to fools who blithely tell you to "chmod 777 everything" -- they're dead wrong.

Link to comment
Share on other sites

@@Jack_mcs Hi Jack

I didn't get very far this weekend. I just got a chance to start on it late today. 

 

I took what you said earlier  "If I recall correctly, you have a 2.3.4 shop with the Bootstrap code added as opposed to the actual BS shop. If that is correct, then the files in the "Use_if_version_greaterthan_2.3" directory are probably closer to what you have. Either set of files will work for comparing. Just be watchful of the differences."

 

So I started from scratch and went to the "version greaterthan 2.3".  I ran into 2 things right of the bat.  On the Install Catalog.txt, last thing want me to add a line the sytlesheet.css.  Well I don't have that file.  Never did since I went to osc with BS.  So I said okay lets try to do the first step - File changes to includes/template_top.php.  Using eh template top.php under the catalog file (greater then) I used winmerge, when I went to but the file agents mine it was way off.  2 totally different files.  So I went back to the BS SEO, went to that catalog file and compared that file with mine, now it looked cohesive.

 

So I'm guessing that I may be using a truer BS version.  I didn't go any further with the "greater than".  I guess I will have to revisit the BS and see what I can do. 

 

Just wanted to bring you up to date. 

 

Dean

Link to comment
Share on other sites

With a shop like yours, you will probably always have problems installing addons that require code changes since it isn't one of the recognized formats. That is not a problem, just more work for you. :)

 

The change to the stylesheet.css file is to load in the css file this addon uses. There has to be some css file you use somewhere. The BS shop uses one called user.css. So just find that file and add the one line to the top of it and that will be fine. 

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

HI Jack@@Jack_mcs

 

This time I'm using merge program to compare all the BS Catalog files to the my files.  I'm finding that the Catalog files have a lot more changes then the Install txt files has.  Hopefully I'm making the right changes. 

 

Ran into one little wall.  Since I'm not a programmer nor will I confess to be, I need help with the following code in catalog/includes/application_top.php line 484 and 493.  The one with the ??? is the main one I need help with.  You have a m. in front of manufacturers and some others.  That my site is not using. 

 

Key for my lines

 

"Your code" (line 484)  and (493)

"Now"          is code with my changes that I plan to upload

"Org mine"  code from my site

"???"           I need help with putting together this line to work with your seo and my site.

Was yours  $categories_query = tep_db_query("select IF(categories_htc_breadcrumb_text !='', categories_htc_breadcrumb_text, categories_name) as title from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = " . (int)$cPath_array[$i] . " and language_id = " . (int)$languages_id);
Now        $categories_query = tep_db_query("select IF(categories_htc_breadcrumb_text !='', categories_htc_breadcrumb_text, categories_name) as title from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'");
Org mine   $categories_query = tep_db_query("select                                                                         categories_name           from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'");

Was Yours  $manufacturers_query = tep_db_query("select IF(mi.manufacturers_htc_breadcrumb_text !='',mi.manufacturers_htc_breadcrumb_text, m.manufacturers_name) as title from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id=mi.manufacturers_id where m.manufacturers_id= " . (int)$_GET['manufacturers_id'] . " AND languages_id = " . (int)$languages_id);
???        $manufacturers_query = tep_db_query("select IF(mi.manufacturers_htc_breadcrumb_text !='',mi.manufacturers_htc_breadcrumb_text, m.manufacturers_name) as title from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id=mi.manufacturers_id where m.manufacturers_id= " . (int)$_GET['manufacturers_id'] . " AND languages_id = " . (int)$languages_id);
Org Mine   $manufacturers_query = tep_db_query("select                                                                                      manufacturers_name           from " . TABLE_MANUFACTURERS . "                                                                                           where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

Thanks

Dean

Link to comment
Share on other sites

Hi Guys,

 

I've just installed Header Tags SEO to my store and I have 2 problems which I am hoping you lovely people could help me fix.

 

Firstly, I don't have a box in the admin panel for Header Tag SEO only a subcategory in configuration.

 

Secondly, when I am in Confuration i get the following error message 

 

 

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'header_tags_reset_cache' not found or invalid function name in/homepages/7/d468915905/htdocs/clickandbuilds/osCommerce/Bumbleberrys/backoffice/includes/functions/general.php on line 1272

 

 

I have limited knowledge of PHP. I have checked all instructions and even copied over all admin files from the download file to ensure the code was right.

 

I do have a template installed and  i'm running Version 2.3.4

 

Thank you in advance.

 

I've included a screen shot to show both issues.post-339453-0-51077700-1469108510_thumb.jpg

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