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

Header Tags SEO

Recommended Posts

hi guys...me again....in a bit of a pickle. My friend has altered my website and this is causing problems for me when i am trying to change some of the codes for the catalogue installation and i have hit a problem. In the includes/header.php file this is the code i have

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td rowspan="2"><img src="images/logo_1.jpg" width="204" height="85" alt=""></td>

<td class="searchboxarea" align="right" ><?php require (DIR_WS_BOXES .'header_search.php'); ?></td>

</tr>

<tr>

<td align="right" class="languageboxarea"><?php require (DIR_WS_BOXES .'header_languages.php'); ?></td>

</tr>

<tr>

<td colspan="2"><img src="images/logo_4.jpg" width="760" height="100" alt=""></td>

</tr>

<tr>

<td colspan="2" class="breadcrumbarea"><?php echo $breadcrumb->trail(' » '); ?></td>

</tr>

 

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

 

the code in the original header.php file is this

 

 

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

</tr>

</table>

<?php

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

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

 

 

my problem is that i need to locate the line that says

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

 

and change it to

 

 

<?php /*** Begin Header Tags SEO ***/ ?>

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></td>

<?php /*** End Header Tags SEO ***/ ?>

 

 

but the line is missing and when i have played about with the code...not that i have any clue what i am doing i have messed it up and had to change it back to the code my friend used.

 

If anyone can change the code for me to fit my site that would be great....here is my website just encase you need to see what the code does www.superpettoysrus.com

 

the site is just basic along with my knowledge but im trying lol.

Share this post


Link to post
Share on other sites
I tried changing this (line 192):

<?php echo $settings['heading_title']; ?>

 

To this:

<?php echo HEADING_TITLE; ?>

 

Now the pageHeading displays.

Did I just make another mess of things or is that alright? :huh:

You haven't setup Sitemap SEO properly. But this is the support thread for Header Tags SEO. Please ask support questions for other contributions in their own support thread.

 

Jack

Edited by Jack_mcs

Share this post


Link to post
Share on other sites
hi guys...me again....in a bit of a pickle. My friend has altered my website and this is causing problems for me when i am trying to change some of the codes for the catalogue installation and i have hit a problem. In the includes/header.php file this is the code i have

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></td>

This is the line of code to be changed. It should be changed to

	<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></td>

 

Keep in mind that the instructions for almost any contrribution can't match every site. You will have to look at what part of the code is being changed and try to match it to your code.

 

Jack

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

Hey JAck,

 

I was looking to update from 3.14 to 3.15 but only saw info if I have STS, which I don't

 

Is this update for STS users only or is there any other files that I should update?

 

Thanks

 

Ricardo

Share this post


Link to post
Share on other sites
Hey JAck,

 

I was looking to update from 3.14 to 3.15 but only saw info if I have STS, which I don't

 

Is this update for STS users only or is there any other files that I should update?

 

Thanks

 

Ricardo

It mainly fixes the sql and STS mistakes but the includes/header_tags.php file should be replaced since it fixes a problem from a previous release. For any Header Tags update, it is always safe to copy all of the files in the catalog/admin/ directory of the contribution. It is also safe for the files on the shop side but changing the includes/header_tags.php file may require using the add missing pages option, whch could cause a problem in some shops.

 

Jack

Share this post


Link to post
Share on other sites
This contribution will automatically make the header title's using the categories and product name correct?

 

Thank you

Chisholm

Yes, that is correct. That can be overridden though.

 

Jack

Share this post


Link to post
Share on other sites

Dear Jack,

 

I got one more question... I have installed hdt and it works for the product.

 

I mean I can see the header text for all products in lynx (text browser) changing for each product.

 

But, when I select a category only, I don't see the header changing with the name of the category. one point : I have just installed Dynamenu.

 

I still have the warning with the langage do'esn't exist in header tag table... I have checked and they exits (french & english).

 

See this on our site www.e-modelisme.com.

 

Thank you in advance for your great support and availability.

 

Any idea ?

 

Have a nice evening

Yves

Edited by bienenf

Share this post


Link to post
Share on other sites
You haven't setup Sitemap SEO properly. But this is the support thread for Header Tags SEO. Please ask support questions for other contributions in their own support thread.

 

Jack

 

Sorry Jack!

 

My bad... :blush:


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites

I just want to make sure I'm good to go now. :mellow:

 

Since it is only happening on the sitemap page, the problem is most likely in page control. Go there, select the sitemap page and uncheck all boxes for it ecept for root. Make sure there is a sort order number for the root box. Enter text into the boxes for that page and update. Does it still fail?

 

Jack

 

Thanks so much Jack, no more warning message and the tags are filled in with the text I entered. ;)

 

I'll assume that will be the process for any other pages I add in the future?

 

Is it functioning properly now?


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites
Dear Jack,

 

I got one more question... I have installed hdt and it works for the product.

 

I mean I can see the header text for all products in lynx (text browser) changing for each product.

 

But, when I select a category only, I don't see the header changing with the name of the category. one point : I have just installed Dynamenu.

 

I still have the warning with the langage do'esn't exist in header tag table... I have checked and they exits (french & english).

Did you run fill tags on the categories? Do you have the category box checked on the index.php file in page control? Have you ran the test to be sure the code is not missing?

 

Jack

Share this post


Link to post
Share on other sites
I just want to make sure I'm good to go now. :mellow:

 

 

 

Thanks so much Jack, no more warning message and the tags are filled in with the text I entered. ;)

 

I'll assume that will be the process for any other pages I add in the future?

 

Is it functioning properly now?

For additional pages, yes. For the ones already in the code, you may want the other boxes checked since they can load the categories and products.

 

Jack

Share this post


Link to post
Share on other sites

Hi...god i am so bad at setting these contributions up. I have worked through the adding catalogue code changes and i didnt get the new home page title so i assumed that i had to set up admin and then add missing pages. I got on with the admin bit and as i added the code to my admin/includes/column left.php i now cannot access my admin panel, it lets me sign in and click on the links such as config, modules, customers localization etc......but theres nothing coming up on the right such as customer lists etc etc.

 

I decided to carry on with adding all the admin code and again tried to access my admin panel and this did not change....i changed the column left file back to the original and my panel works again....any ideas?????

 

ive probably set this up wrong from beginning to end knowing me.

Share this post


Link to post
Share on other sites

ooopsss.....see i am totally terrible at this i had forgot to add all the catalogue files....ive added these now and i have the new home page title but there is nothing but the header on my pages and no content...wonder what ive done now...im sure i will get there in the end but any ideas would be great lol

Share this post


Link to post
Share on other sites
Did you run fill tags on the categories? Do you have the category box checked on the index.php file in page control? Have you ran the test to be sure the code is not missing?

 

Jack

 

Dear Jack,

 

Thank you, that works now. I was not able to change the order of the Include tags in my index.php page...don't know why. But now it works.

 

Thank you so much for your helpfull support.

 

Best regards

Yves

Edited by bienenf

Share this post


Link to post
Share on other sites

ok so ive still only got the header on my pages and when i click on amin/catalogue the page comes up as website cannot open page i cant think why.......i have realised when i added code to my stylessheet.css it said to change it to the desired size and colour o your shop and i dont know if this is the problem as i am unsure what to change them to......i know im probably not making much sense but if any one knows what i ahve possible done i would be grateful

 

heres my site so you can see what i have done now lol

 

www.superpettoysrus.com

Share this post


Link to post
Share on other sites
ooopsss.....see i am totally terrible at this i had forgot to add all the catalogue files....ive added these now and i have the new home page title but there is nothing but the header on my pages and no content...wonder what ive done now...im sure i will get there in the end but any ideas would be great lol

There is a free program called Winmerge. It allows you to look at two files side by side to see the differences. Since a copy of all of the changed files are in the contribution, you just need to try one of those files to see if your site works correctly and then use Winmerge to compare the two to make changes to your original file. Also, then you are making the changes, you can make them one at a time in each file. The Header Tags code may not completely work until they are all made, but the page will still load. That will allow you to see where you are making a mistake at.

 

Jack

Share this post


Link to post
Share on other sites
ok so ive still only got the header on my pages and when i click on amin/catalogue the page comes up as website cannot open page i cant think why.......i have realised when i added code to my stylessheet.css it said to change it to the desired size and colour o your shop and i dont know if this is the problem as i am unsure what to change them to......i know im probably not making much sense but if any one knows what i ahve possible done i would be grateful

 

heres my site so you can see what i have done now lol

 

www.superpettoysrus.com

Per the instructions, don't proceed to the admin changes until the shop side is working. You'll only dig a deeper hole. For the shop side, remove all of the code edits and try one at a time as suggested.

 

Jack

Share this post


Link to post
Share on other sites
For additional pages, yes. For the ones already in the code, you may want the other boxes checked since they can load the categories and products.

 

Jack

 

Thank you so much Jack for setting me straight. ;)

 

Weather report for this weekend is clear and warm.

 

Gone Fishin' :lol:


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites
Per the instructions, don't proceed to the admin changes until the shop side is working. You'll only dig a deeper hole. For the shop side, remove all of the code edits and try one at a time as suggested.

 

Jack

 

Hi....well i finally got sick and scrubbed my entire site...to be fair there wasnt much on it and as i hadnt changed the code myself i didnt know what was what so i ahve started again from scratch. It was a really easy installation but when i ran the test it came up with a few bits and bobs which i have sorted but this last section of missing files i cant think how to fix....ive looked back through all the codes that need to be changed and none of them mention the files...here is the results of the test

 

Test Results

 

Missing Code in File explain

The Header Tags head code for the product_reviews.php file cannot be found.

The Header Tags head code for the product_reviews_info.php file cannot be found.

The Header Tags head code for the product_reviews_write.php file cannot be found.

The Header Tags head code for the specials.php file cannot be found.

 

is this normal??

Share this post


Link to post
Share on other sites
Test Results

 

Missing Code in File explain

The Header Tags head code for the product_reviews.php file cannot be found.

The Header Tags head code for the product_reviews_info.php file cannot be found.

The Header Tags head code for the product_reviews_write.php file cannot be found.

The Header Tags head code for the specials.php file cannot be found.

 

is this normal??

No, it's not normal. Did you try clicking on the "explain" link?

 

Jack

Share this post


Link to post
Share on other sites

yeah it just said that i had to look back through the install catalogue file and see what i missed....not to worry ive just started adding products to my shop again and the heading titles are fantastic just what i wanted.....going to have a look for some more great contributions i think...thanks for all your help

Share this post


Link to post
Share on other sites
yeah it just said that i had to look back through the install catalogue file and see what i missed....not to worry ive just started adding products to my shop again and the heading titles are fantastic just what i wanted.....going to have a look for some more great contributions i think...thanks for all your help

See step 1 in Install_Catalog.txt. In particular, it states

Any other file in the root directory (the same location where your index.php file is located) that you want Header Tags to work with should also be changed.
So it appears you didn't make those changes to the other files and the test function is letting you know.

 

Jack

Share this post


Link to post
Share on other sites

Hi,

 

Just looking around my site and i notice that when i fill shopping cart and then try to access the checkout page the page is not found and neither is the log yourself in page or create an account page...is this anything to do with this contribution or has it got something to do with the fact that i have just uploaded my shop from a new install and theres somethig ive got to do before i can access these pages|???

Share this post


Link to post
Share on other sites

No, it wouldn't have to do with Header Tags. It doesn't change anything on those pages.

 

Jack

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

×