Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

KissMT Dynamic SEO Meta & Canonical Header Tags


FWR Media

Recommended Posts

A question for you

 

Google xml site map or usu5 XML Site Maps

 

;)

 

if the USU5 sitemaps work for you then great, use them.

 

They were only really added a an afterthought, mainly because the person who is supporting Chemos old sitemap contribution refuses to remove the hardcoding that means ONLY the old Seo Urls can work with it. All that has to be done to it btw is for the contribution to use the standard tep_href_link() function as is used in ALL oscommerce files. That and the cron job has to use wget .. then not only USU5 pro but ANY url rewriter contribution would work with it.

Link to comment
Share on other sites

if the USU5 sitemaps work for you then great, use them.

 

They were only really added a an afterthought, mainly because the person who is supporting Chemos old sitemap contribution refuses to remove the hardcoding that means ONLY the old Seo Urls can work with it. All that has to be done to it btw is for the contribution to use the standard tep_href_link() function as is used in ALL oscommerce files. That and the cron job has to use wget .. then not only USU5 pro but ANY url rewriter contribution would work with it.

 

 

I installed all the contributions you have said

 

Thanks for everything

Link to comment
Share on other sites

It is in the language file ..

 

includes/languages/<my language>/kissmt.php

 

  define( 'KISSMT_HOMEPAGE_TITLE', 'My Great Product Range' );
 define( 'KISSMT_HOMEPAGE_DESCRIPTION', 'Full Range of Wiggets' );

How can I use lower and uppercase letters as I want?

 

Example: mTb or MTB are forced to become/output as Mtb...how can I keep mTb or MTB, and not get forced to use Mtb?

Edited by ErikMM

Web Developer, Firebug, and Notepad++ are powerful free tools for web design.

Link to comment
Share on other sites

Also I am not sure if you are aware:

 

RE: Admin @ the Title "The separator for words in the title bar"

 

a "|" (bar, not capital i) does not work to separate all tags like the "-" does.

 

example:

define( 'KISSMT_SHIPPING_TITLE_TEXT', '%s Shipping and Returns');
 define( 'KISSMT_SHIPPING_DESCRIPTION_TEXT', '' );

with - in Admin it will appear as: File Name - Shipping and Returns - Padding Name

 

with | in Admin it will appear as: File NameShipping and Returns | Padding Name...the File Name (or %s) and TEXT get jammed together with no | between

Edited by ErikMM

Web Developer, Firebug, and Notepad++ are powerful free tools for web design.

Link to comment
Share on other sites

Hey FWR media, thanks for another great contribution.

 

I had a bit of a quirk, in that if I have parent categories I capitalise them to make them stand out a bit.

I have a bilingual website and I was finding that in English it was "Gourmet Pantry" and in Spanish it was "DESPENSA GOURMET"

 

So I scratched my head a bit and then realised it was because I didn't have a Spanish stopwords file.

 

I had a look around this support thread and noticed a few people complaining that XxxXXXxxX becomes Xxxxxxxxxx. So presumably this could be resolved by simply deleting the english stopwords file could it? Just a suggestion

 

If you need a spanish stopwords file for the next upload of the contribution then mine is

 

<?php 
/**
*
* KISS Dynamic SEO Meta Tags
* KISS = (Keep It Simple Stupid!) 
* 
* @package KISS Meta Tags SEO v1.0
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License
* @link http://www.fwrmedia.co.uk
* @copyright Copyright 2008-2009 FWR Media
* @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk 
* @lastdev $Author:: Rob                                              $:  Author of last commit
* @lastmod $Date:: 2010-01-10 21:45:04 +0000 (Sun, 10 Jan 2010)       $:  Date of last commit
* @version $Rev:: 44                                                  $:  Revision of last commit
* @Id $Id:: english.php 44 2010-01-10 21:45:04Z Rob                   $:  Full Details   
*/

 /**
 * Array of all small words that gramatically should not be ucfirst in a meta title
 */
 $smallwordsarray = array( 'de', 'a', 'el', 'y', 'la', 'un', 'una', 'si', 'por', 'del', 'fuera', 'cuando', 'desde', 'para', 'en', 'para', 'dentro', 'contra','con' ,'hasta' ,'sin' ,'sobre' ,'tras' );
?>

 

Thanks once again for a cool contribution

Link to comment
Share on other sites

Also I am not sure if you are aware:

 

 

I haven't looked this evening but I'd imagine that pipes are stripped.

Link to comment
Share on other sites

Good morning!

 

One question:)

 

When I enter category above says "buy from", how change language?

 

I have all changed, the kissmt (languages), the smallkeywords and stopkeywords

 

Greetings!

 

includes/languages/[my language]/kissmt.php

 

  define( 'KISSMT_TITLE_PADDING', 'buy from %s' );

 

After changing this define you do of course have to reset the cache or it will be producing legacy data from before the change was made.

Link to comment
Share on other sites

includes/languages/[my language]/kissmt.php

 

  define( 'KISSMT_TITLE_PADDING', 'buy from %s' );

 

After changing this define you do of course have to reset the cache or it will be producing legacy data from before the change was made.

 

Would have to say

 

The cache! :)

 

Another question

 

You can display in advanced search: kissmtags? same category

 

Influences that have changed the product_listing?

 

More thanks!

Link to comment
Share on other sites

Would have to say

 

The cache! :)

 

Another question

 

You can display in advanced search: kissmtags? same category

 

Influences that have changed the product_listing?

 

More thanks!

 

No there is no point in having meta data in a search page as the search engines will never see them.

Link to comment
Share on other sites

I haven't looked this evening but I'd imagine that pipes are stripped.

Not sure what you are saying, but I still can only get "-" to work, no other separators (at least not | or ^ or , or / or . or > or ~).

Web Developer, Firebug, and Notepad++ are powerful free tools for web design.

Link to comment
Share on other sites

No there is no point in having meta data in a search page as the search engines will never see them.

You obviously didn't open the link I posted previously showing the fact that Google indexes search result pages :rolleyes: (http://www.google.com/search?hl=en&rls=com.microsoft:en-gb&q=dry+cleaner+luton&aq=f&aqi=&aql=&oq=&gs_rfai= from Post - Posted 02 June 2010, 20:16)

Link to comment
Share on other sites

You obviously didn't open the link I posted previously showing the fact that Google indexes search result pages.

 

 

No I didn't and I still haven't. Obviously if you put search result links on the site then they will be followed and indexed.

Link to comment
Share on other sites

This is extremely odd because I have error reporting set E_ALL | E_STRICT and I get no error .. BUT ..

 

catalog/includes/kiss_meta_tags/abstracts/kiss_modules.php

 

Line 134

 

array_walk( $words_as_array, array( __CLASS__, 'stripStopWords' ) );

 

Does require the method to be static. If line 134 was ..

 

     array_walk( $words_as_array, array( $this, 'stripStopWords' ) );

 

It would not be required to be a static method. YET I get no error .. hmmmm.

 

Anyway you can correct this one of two ways ..

 

either change line 134 to ..

 

     array_walk( $words_as_array, array( $this, 'stripStopWords' ) );

 

Or change ..

 

    private function stripStopWords( &$word ) {

 

to ..

 

    private static function stripStopWords( &$word ) {

 

Doesn't matter which you choose to change. In the next revision I'll probably change the method to static.

:thumbsup:

Web Developer, Firebug, and Notepad++ are powerful free tools for web design.

Link to comment
Share on other sites

Hi Robert, I do not know if this have something to do with KISS MT:

 

http://www.ji-fashion.com/index.php/calzado-tamao-44189-c-50

should have been

 

http://www.ji-fashion.com/index.php/calzado-tamaño-44½-c-50'>http://www.ji-fashion.com/index.php/calzado-tamaño-44½-c-50

 

I have used the html entity ½ and ½ for ½ besides ½ itself but no success

 

Also I would love to have the categories name in the address bar:

 

Instead of

http://www.ji-fashion.com/index.php/calzado-tamaño-44½-c-50'>http://www.ji-fashion.com/index.php/calzado-tamaño-44½-c-50

 

This would be perfect:

http://www.ji-fashion.com/index.php/calzado-tamaño-44½

 

Kindest

 

Sara

Link to comment
Share on other sites

Hi Robert, I do not know if this have something to do with KISS MT:

 

http://www.ji-fashio...amao-44189-c-50

should have been

 

http://www.ji-fashio...tamaño-44½-c-50

 

I have used the html entity ½ and ½ for ½ besides ½ itself but no success

 

Also I would love to have the categories name in the address bar:

 

Instead of

http://www.ji-fashio...tamaño-44½-c-50

 

This would be perfect:

http://www.ji-fashio...zado-tamaño-44½

 

Kindest

 

Sara

 

URLs are nothing to do with KissMT that URL is produced by Ultimate SEO Urls 5 which has a separate support topic.

 

Your URLs are wrong anyway, you cannot have special characters in the URI only alphanumeric plus a very few other characters ( like hyphen ).

Edited by FWR Media
Link to comment
Share on other sites

Thanks Robert for a swift answer. I'll have to think of another way to represent half sizes then.

 

And, I have installed the pro version and noticed that I still have some functions related to the "standard" SEO.

 

Should I remove all of them?

 

Kindest

Sara

Link to comment
Share on other sites

Hi Robert it's Sara again... thanks for all support, its fantastic!

 

Now I have this:

Error Type: [E_NOTICE] Undefined index: products_id

On line 29

File includes/modules/kiss_meta_tags/modules/product_info.php

 

And the same on line 30.

 

I do not understand enough to fix those.

 

Kindest

 

Sara

Link to comment
Share on other sites

Hi Robert it's Sara again... thanks for all support, its fantastic!

 

Now I have this:

Error Type: [E_NOTICE] Undefined index: products_id

On line 29

File includes/modules/kiss_meta_tags/modules/product_info.php

 

And the same on line 30.

 

I do not understand enough to fix those.

 

Kindest

 

Sara

 

You don't need to fix anything as it isn't broken.

 

When product_info.php is accessed there MUST be a products_id in the querystring. on your site this is for some reason missing, therefore the error.

Edited by FWR Media
Link to comment
Share on other sites

Hi Robert, I found the bug and fixed it! :)

The fix was to use isset before the query in product_info:

 

if (isset($_GET['products_id'])) {

$product_check_query = tep_db_query(....

$product_check = tep_db_fetch_array($product_check_query);

}

 

Thanks for pointing my mind to it! :)

 

Kindest

 

Sara

Link to comment
Share on other sites

Hi Robert, I found the bug and fixed it! :)

The fix was to use isset before the query in product_info:

 

if (isset($_GET['products_id'])) {

$product_check_query = tep_db_query(....

$product_check = tep_db_fetch_array($product_check_query);

}

 

Thanks for pointing my mind to it! :)

 

Kindest

 

Sara

 

Nothing is fixed Sara. as I said there is no bug in KissMT to fix.

 

All you have done is to suppress a warning ( a necessary warning ) that is telling you that you have accessed product_info.php without products_id being present in _GET.

Link to comment
Share on other sites

O' I thought I was smart for once...

 

The query is:

 

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

 

And I have checked all relevant tables... So the bug is elsewhere...o my God.. where, where...

 

Sara

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