Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

Hi Jack i took a look in my source code and wonder a bit about this line

 

<meta http-equiv="Content-Language" content="en-US" />

 

You see, i have my site in swedish so would´nt that say something else than "en-US"?

 

and if that is so, how do i change this?

Before posting, in any thread, please take the time to read the last few pages. This question was just recently answered.

 

Jack

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

Thanks for you'r replay Jack!

 

I have figured out that its something with the Lightbox, and not the code in UltraPics. When I remove the style for the lightbox (lightbox.css) the problem disapears, and I cant view the lightbox..

 

 

But like you said so you don't respond to questions about this, but you know no solution? Since I gave a little more specific information about this case :)

 

Bow and buffers.

Greetings, Robin.

Link to comment
Share on other sites

Hi together,

 

my update to version 3.1.5 is working fine, no errors etc.

Now I have to fine-tune my headertags via admin.

 

But one question remains:

The integration of the socialbookmarking icons on the index.php and product_info.php is not looking very well on my site, so I want to change it and move the icons into a separate box on the right side.

 

But I have an error in the code and cannot find it. The box is not being displayed.

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SOCIALBOOKMARKING);
 new infoBoxHeading($info_box_contents, false, false);
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_SOCIALBOOKMARKING_TEXT . '<br>' .
		include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php');
		);
 new infoBox($info_box_contents);
 $info_box_contents = array();
 $info_box_contents[] = array('text' => ' ');
?>

 

I thought, integrating the 'header_tags_social_bookmarks.php' in the same way that it is done in the index.php would work - but it did not seem so.

 

Any recommencations?

Thanks in advance,

Regards,

Andreas

Link to comment
Share on other sites

Another question:

Any ideas, how to migrate the installed headertags_seo-contrib from a testsystem to the productive one?

Is it enough to export the created headertags- and configuration-tables with the converted headertags from 2.6.3 (in the database from the testsystem) and import it into the productive database?

Next step would be copying the new or changed files.

 

Or is it better to import the supplied sql-file from the contrib and convert the headertags from 2.6.3 again. This would be doing the whole installation steps again, which are already done on the testsystem. Not very nice.

Edited by Andreas2003
Link to comment
Share on other sites

Another question:

Any ideas, how to migrate the installed headertags_seo-contrib from a testsystem to the productive one?

Is it enough to export the created headertags- and configuration-tables with the converted headertags from 2.6.3 (in the database from the testsystem) and import it into the productive database?

Next step would be copying the new or changed files.

 

Or is it better to import the supplied sql-file from the contrib and convert the headertags from 2.6.3 again. This would be doing the whole installation steps again, which are already done on the testsystem. Not very nice.

If you copy the two new header tags tables and all of the changed files, it should be OK.

 

Jack

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

Thanx, that helps alot.

Do I need the header_tags_seo_convert.php after converting the old tags?

And do I need it on the productive system when doing that export-import thing with the database? I assume NO.

 

Do you have an idea for the socialbookmark box, I mentioned above?

Link to comment
Share on other sites

Header_tags_seo_convert.php is only useful for the one conversion. I didn't look at the infobox code since it isn't part of the contribution.

 

Jack

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

Good, then I will delete it.

Is there a problem with the permissions?

I got a warning in the page control page in my admin area to change the permissions to 755 for the includes/header_tags.php.

I checked the permissions, and they're already set to 755.

Then I set it to 757 and the error message is gone.

Set back to 755, the error message appears again.

Problem?

Link to comment
Share on other sites

Good, then I will delete it.

Is there a problem with the permissions?

I got a warning in the page control page in my admin area to change the permissions to 755 for the includes/header_tags.php.

I checked the permissions, and they're already set to 755.

Then I set it to 757 and the error message is gone.

Set back to 755, the error message appears again.

Problem?

The message says to set them the same as those on the images directory. Did you do that?

 

Jack

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

I have a small improvement for your contribution, in special for the social bookmarking module/part.

 

In the catalog/includes/modules/header_tags_social_bookmarks.php do the following:

Replace this:

$TITLE = $pageTags['page_title'];

with that:

if ($_SERVER["SCRIPT_NAME"] != '/index.php') {
$TITLE = urlencode($product_info['products_name']);
} else {
$TITLE = $pageTags['page_title'];
}

 

With this addition, the title, which will be submitted to the social bookmarking services, will NOT be empty, when you enabled this module on your index.php.

The link on the product_info.php was working fine, but on the index.php it was empty.

@Jack: if you find it useful, perhaps you can take it into your contrib

Link to comment
Share on other sites

Thank you for the suggestion but includes/modules/header_tags_social_bookmarks.php has never had $TITLE = $pageTags['page_title']; in it and when I submit a product, the product name is in the link. Are you possibly confusing this contribution with a dffierent one that offers social bookmarking or am I missing something?

 

Jack

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

Hello forum members,

 

Tnx for this great contribute.

There is a problem by the installation in my webshop.

I hope someone of you can help me to fix it.

 

if I go to the site I see this error page.

 

 1146 - Table 'p456_rYbEgoscomm.TABLE_HEADERTAGS_DEFAULT' doesn't exist

select * from TABLE_HEADERTAGS_DEFAULT where language_id = '4'

[TEP STOP]

 

if I do the test in admin->Header Tags SEO->Test the results are good

 

 

please help me out.

Edited by tomstar
Link to comment
Share on other sites

Capital letters, like TABLE_HEADERTAGS_DEFAULT, in a failure means you are missing a diffinition. Check the instructions for changes to the database_tables.php file to fix it.

 

Jack

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

Hello,

 

Does Header Tag SEO allow one to add content to the page itself beyond the description, keyword and title tags? If someone could post an example of a site using header tag seo - that would be great. TIA.

 

- Raheem

Link to comment
Share on other sites

Thanks Jack. Just to clarify - will the text show up in the category page. Like can I add a heading to the category page with description to improve the SEO? Thx.

Yes.

 

Jack

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

Thank you for the suggestion but includes/modules/header_tags_social_bookmarks.php has never had $TITLE = $pageTags['page_title']; in it and when I submit a product, the product name is in the link. Are you possibly confusing this contribution with a dffierent one that offers social bookmarking or am I missing something?

 

Jack

Yes, of course $TITLE = $pageTags['page_title']; is not in your original header_tags_social_bookmarks-module, because its part of my replacement code!

And I'm talking not about submitting a product link (this worked fine), but submitting the link to your domain or mainpage/index.php, when you have enabled the mentioned module on your index.php.

 

Long version:

In your contribution here, you offered the includes/modules/header_tags_social_bookmarks.php in version 3.1.5 (date 04.June 2009).

The original code in this module is:

++++++++++++++ CODE +++++++++++++++++++

<?php

$NAME = htmlspecialchars($product_info['products_name'], ENT_QUOTES);

$TITLE = urlencode($product_info['products_name']); <== your original $title-var

$URL = urlencode("http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);

?>

<tr>

<td align="right"><table border="0" width="20%">

<tr>

<td><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=<?php echo $URL . '&title=' . $TITLE; ?>">

<img src="images/socialbookmark/delicious.png" alt="<?php echo 'Add ' . $NAME . ' to del.icio'; ?> " title="<?php echo 'Add ' . $NAME. ' to del.icio'; ?> " border="0"></a></td>

........

++++++++++++++ CODE +++++++++++++++++++

 

The (bold) variable $TITLE is empty, when you have the module enabled on your index.php. It will submit the URL correctly, but with no title. So the social bookmarking service will get no title for the submitted URL (your mainpage, your domain / index.php).

I had this case on my testsystem as well as on my productive system.

It works fine, if you go to the product_info.php, with correct URL and correct (product) title.

Until now its all part of your contrib.

 

In order to change this, I suggested the code mentioned in my former posting, which replaced the normal $title-variable with a small if-else-query in the header_tags_social_bookmarks-module.

With the replacement and when you are on your index.php, the submitted URL will get the correct URL (www.yourshop.com) and your shop-description, which is stored in $pageTags['page_title'].

When you are on your product_info.php, the submited URL will get correct (product) URL and the product title as hitherto.

 

Hope, I expressed myself more clearly.

 

Regards

Andreas

Edited by Andreas2003
Link to comment
Share on other sites

Capital letters, like TABLE_HEADERTAGS_DEFAULT, in a failure means you are missing a diffinition. Check the instructions for changes to the database_tables.php file to fix it.

 

Jack

 

Thanks for your help Jack, it's fixed now :D

Link to comment
Share on other sites

Hello again :-)

 

Has been a problem with a store (its NOT a live store!), the error is that I have installed 'header tags' (what I think quite correctly)

 

Together with some other modules of course, one of those is STS.

 

The error occurs when I visit the product page with a SEO test, which says that the page has no title, meta tags, or similar. But they have when I look at the page!

 

What could be the fault then? I checked my installation, and it appears to be OK. Can it be a setting I missed?

 

Thanks,

Robin.

Link to comment
Share on other sites

So I had everything installed fine, started playing around in the admin section and now I get this error:

 

Parse error: syntax error, unexpected T_CASE in /home/batterya/public_html/includes/header_tags.php on line 31

 

Any ideas folk? I'm totally stumped.

Link to comment
Share on other sites

STS doesn't have the code in those files so the error is shown. It can be ignored.

 

Jack

Thanks Jack. I thought STS was the problem :-)

 

So I had everything installed fine, started playing around in the admin section and now I get this error:

 

Parse error: syntax error, unexpected T_CASE in /home/batterya/public_html/includes/header_tags.php on line 31

 

Any ideas folk? I'm totally stumped.

Hello, I think that has to do with you'r database or somthing.. did you run the SQL-file?

Link to comment
Share on other sites

So I had everything installed fine, started playing around in the admin section and now I get this error:

 

Parse error: syntax error, unexpected T_CASE in /home/batterya/public_html/includes/header_tags.php on line 31

 

Any ideas folk? I'm totally stumped.

Look in that file at that line. It is most probably due to an invalid filename being created by Header Tags. That happens when there are stored files on the server with Header Tags code in them, like index.php_bkup.

 

Jack

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

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