ULTIMATE Seo Urls 5 - by FWR Media
#3281
Posted 18 June 2011 - 08:11 AM
I've been using your USU5 with RC2a for a while now, and it's worked wonderfully for me.
I was wondering if you could comment on the rel="canonical" tag for product pages.
It's easy enough to add the tag to the home page, but putting it on product page is a bit more complicated it seems.
Google's instructions aren't particular clear to me: http://www.google.com/support/webmasters/bin/answer.py?answer=139394
You'd talked about it briefly last summer in posts 159-160 here: http://forums.oscommerce.com/topic/330479-what-is-the-oscsid-why-you-must-not-loose-it/page__st__140
As an aside, I did read your rebuttal to this thread with interest and now force cookies on the site, and seems to work well.
Spooks also gave an example back in 2009 in post 8 here: http://forums.oscommerce.com/topic/329838-canonical-tag-implementation/
I'm not even sure that I need this tag, but Google seems to require it if you want to have any hope of getting rich snippets in your search results:
http://www.google.com/support/merchants/bin/request.py?contact_type=rich_snippets
Thanks for all the help
#3282
Posted 20 June 2011 - 04:06 AM
I hate to do this, but I just don't see this:
2) catalog/index.php
Find ( this is within a block of code ) ...
tep_draw_form('filter', FILENAME_DEFAULT, 'get')
Replace with ...
tep_draw_form('filter', tep_href_link( FILENAME_DEFAULT ), 'get')
I don't see this anywhere in the index.php that I'm working on. Do you have any ideas for me?
#3283
Posted 20 June 2011 - 01:56 PM
The default 2.2 store uses a simple link for the Buy Now button. Many store owners replace that with a form so that search engines don't follow it. Perhaps you have not done this or have removed the Buy Now button.
If you do have a Buy Now button, show us the code for it and we can advise further.
Contributions:
Country-State Selector
Login Page a la Amazon
Protection of Configuration
Updated spiders.txt
Embed Links with SID in Description
#3284
Posted 21 June 2011 - 02:07 AM
<?php
require('includes/application_top.php');
$content = array();
$content = tep_content_data('1');
?>
<?php require(DIR_WS_INCLUDES . 'template_top.php'); ?>
<link href="/css/number_slideshow.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript" src="/js/number_slideshow.js"></script>
<!--left column starts-->
<div class="leftColumn">
<div id="banner">
<script language="javascript" type="text/javascript">
$(function() {
$("#number_slideshow").number_slideshow({
slideshow_autoplay: 'enable',//enable disable
slideshow_time_interval: '3000',
slideshow_window_background_color: "#ffffff",
slideshow_window_padding: '0',
slideshow_window_width: '713',
slideshow_window_height: '264',
slideshow_border_size: '0',
slideshow_border_color: 'black',
slideshow_show_button: 'enable',//enable disable
slideshow_button_text_color: '#ffffff',
slideshow_button_background_color: '#3b3f35',
slideshow_button_current_background_color: '#ababab',
slideshow_button_border_color: 'none',
slideshow_button_border_size: '0'
});
});
</script>
<div id="number_slideshow" class="number_slideshow">
<ul>
<li><a href="#"><img src="images/banner-1.jpg" width="713" height="264" alt="slideshow_large"/></a></li>
<li><a href="#"><img src="images/banner-2.jpg" width="713" height="264" alt="slideshow_large"/></a></li>
<li><a href="#"><img src="images/banner-3.jpg" width="713" height="264" alt="slideshow_large"/></a></li>
<li><a href="#"><img src="images/banner-4.jpg" width="713" height="264" alt="slideshow_large"/></a></li>
</ul>
<ul class="number_slideshow_nav">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
</ul>
<div style="clear: both"></div>
</div>
</div>
<?php require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_FEATURED);?>
<a href="contact_us.php"><img src="images/do-you-have-any-question.jpg" alt="" border="0" align="left" /></a>
<img src="images/spacer.gif" alt="" height="98" width="10" align="left" />
<a href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>"><img src="images/special-offer-at-lifemed.jpg" alt="" border="0" align="left" /></a>
<?php require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_TOP_SELLING);?>
</div>
<!--left column ends-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<?php require(DIR_WS_INCLUDES . 'template_bottom.php'); ?>
Do you see anything I should edit in this file?
Another hassle is that the template has the version number scrubbed from it, so I'm not positive what version it is. It was supposedly just created a few weeks ago though, so I'm assuming it's the latest version.
#3285
Posted 21 June 2011 - 03:17 PM
Contributions:
Country-State Selector
Login Page a la Amazon
Protection of Configuration
Updated spiders.txt
Embed Links with SID in Description
#3286
Posted 21 June 2011 - 03:21 PM
Thanks for Your reply.
#3287
Posted 21 June 2011 - 05:57 PM
My website iswww.nontando.com
#3288
Posted 21 June 2011 - 06:08 PM
bksbeat, on 21 June 2011 - 05:57 PM, said:
My website iswww.nontando.com
I haven't a clue what your "item is sold" contribution is but USU5 creates urls, nothing else .. perhaps post in the support topic of the other contribution.
KissMT Dynamic SEO Meta & Canonical Header Tags
KissER Error Handling and Debugging
KissIT Image Thumbnailer
Security Pro - Querystring protection against hackers ( a KISS contribution )
If you found my post useful please click the "Like This" button to the right.
Please only PM me for paid work.
#3289
Posted 21 June 2011 - 06:10 PM
longhorn1999, on 18 June 2011 - 08:11 AM, said:
I've been using your USU5 with RC2a for a while now, and it's worked wonderfully for me.
I was wondering if you could comment on the rel="canonical" tag for product pages.
Hi nick
The support thread for USU5 isn't really the place, I don't mind commenting on it elsewhere however.
KissMT Dynamic SEO Meta & Canonical Header Tags
KissER Error Handling and Debugging
KissIT Image Thumbnailer
Security Pro - Querystring protection against hackers ( a KISS contribution )
If you found my post useful please click the "Like This" button to the right.
Please only PM me for paid work.
#3290
Posted 21 June 2011 - 06:14 PM
FWR Media, on 21 June 2011 - 06:08 PM, said:
Robert, I did not install any other contribution. When you click on a product to view the details, I have a message "THIS ITEM IS SOLD". This normally happens when quantity = 0 for that product. I have just installed your contr. - nothing else, and I have never had this issue.
I have checked my admin, the quantities are correct there, i.e. all are equal or greater than one.
Edited by bksbeat, 21 June 2011 - 06:19 PM.
#3291
Posted 21 June 2011 - 06:25 PM
bksbeat, on 21 June 2011 - 06:14 PM, said:
I have checked my admin, the quantities are correct there, i.e. all are equal or greater than one.
USU5 has nothing to do with quantities and has no known issues, also osCommerce does not have the functionality "THIS ITEM IS SOLD" so I can't help as.
a] I can't replicate any issue
b] It is non standard code
c] USU5 has nothing at all to do with quantities
Edited by FWR Media, 21 June 2011 - 06:25 PM.
KissMT Dynamic SEO Meta & Canonical Header Tags
KissER Error Handling and Debugging
KissIT Image Thumbnailer
Security Pro - Querystring protection against hackers ( a KISS contribution )
If you found my post useful please click the "Like This" button to the right.
Please only PM me for paid work.
#3292
Posted 21 June 2011 - 06:27 PM
Cheepnis, on 17 June 2011 - 04:44 PM, said:
Fatal error: Call to a member function fetch() on a non-object in /users/MYDOMAIN.com/htdocs/store/catalog/includes/modules/ultimate_seo_urls5/main/usu5.php on line 308
I wrote about this problem before and in the meantime discovered that this file is what breaks the store (I delete it and everything works again) but I still haven't heard from anybody here about what is the source of this problem. I really cannot allow it to keep happening as it breaks my store.
Any help?
Looks like sqlite crashes on your server for some reason .. change the cache strategy to file or database.
KissMT Dynamic SEO Meta & Canonical Header Tags
KissER Error Handling and Debugging
KissIT Image Thumbnailer
Security Pro - Querystring protection against hackers ( a KISS contribution )
If you found my post useful please click the "Like This" button to the right.
Please only PM me for paid work.
#3293
Posted 21 June 2011 - 06:37 PM
FWR Media, on 21 June 2011 - 06:25 PM, said:
a] I can't replicate any issue
b] It is non standard code
I have has this message appear whenever a quantity = 0 and the product status is still true. That has been the case, ever since I installed OSC.
c] USU5 has nothing at all to do with quantities
#3294
Posted 21 June 2011 - 06:46 PM
I just found where the message is coming from. In admin under config > stock
there is an option called "mark product out of stock". I have that value set as sold. And it says
under the edit button
Display something on screen so customer can see which product has insufficient stock
Date Added: 05/10/2006
Last Modified: 07/28/2008
Edited by bksbeat, 21 June 2011 - 06:54 PM.
#3295
Posted 21 June 2011 - 07:03 PM
bksbeat, on 21 June 2011 - 06:46 PM, said:
There is one thing .. and only one thing affected by USU5 in osCommerce and that is URLs via the tep_href_link() wrapper function.
If you have made code mistakes or whether or not you have a contribution installed that is breaking is really not the point, it is a localised issue and not a USU5 bug so I can't help you in this support thread.
Edited by FWR Media, 21 June 2011 - 07:03 PM.
KissMT Dynamic SEO Meta & Canonical Header Tags
KissER Error Handling and Debugging
KissIT Image Thumbnailer
Security Pro - Querystring protection against hackers ( a KISS contribution )
If you found my post useful please click the "Like This" button to the right.
Please only PM me for paid work.
#3296
Posted 21 June 2011 - 07:19 PM
FWR Media, on 21 June 2011 - 07:03 PM, said:
If you have made code mistakes or whether or not you have a contribution installed that is breaking is really not the point, it is a localised issue and not a USU5 bug so I can't help you in this support thread.
I have just copied back to my server the original code. And all is working again - www.nontando.com
I dont know - I did install kiss meta tags a few weeks ago and perhaps there is some conflict. Oh well! Thanks again
This is what I had installed. I did noticed that there was another wrapper function, i.e. The HTML form submit button wrapper function, below the code that needed to be installed. I am not sure if that is normally there.
/**
* ULTIMATE Seo Urls 5 PRO by FWR Media
* Replacement for osCommerce href link wrapper function
*/
require_once DIR_WS_MODULES . 'ultimate_seo_urls5/main/usu5.php';
function tep_href_link( $page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true ) {
return Usu_Main::i()->hrefLink( $page, $parameters, $connection, $add_session_id, $search_engine_safe );
}
// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
return false;
}
if ($image_size = @getimagesize($src)) {
if ((CONFIG_CALCULATE_IMAGE_SIZE == 'true' && $src != DIR_WS_IMAGES . 'pixel_black.gif' && $src != DIR_WS_IMAGES . 'pixel_trans.gif' && $src != DIR_WS_IMAGES . 'pixel_silver.gif' )) {
if ( ($width) || ($height) ) {
if ( $width=="100%" ) {
$width = $image_size[0];
} elseif ( $height=="100%" ) {
$height = $image_size[1];
} elseif ( $width==0 ) {
unset($width);
} elseif ( $height==0 ) {
unset($height);
}
$src=thumbimage(DIR_FS_CATALOG . '/' .$src, $width, $height, 1, 1, DIR_FS_CATALOG . '/' . DIR_WS_IMAGES . 'imagecache');
if ((($image_size[1]/$height) > ($image_size[0]/$width) ) && $height>0){
$width=ceil(($image_size[0]/$image_size[1])* $height);
} elseif ($width>0) {
$height=ceil($width/($image_size[0]/$image_size[1]));
}
}
}
} elseif (IMAGE_REQUIRED == 'false') {
return '';
}
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) {
$image .= ' title=" ' . tep_output_string($alt) . ' "';
}
if (tep_not_null($width) && tep_not_null($height)) {
$image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
}
if (tep_not_null($parameters)) $image .= ' ' . $parameters;
$image .= '>';
return $image;
}
////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;
$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';
if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
$image_submit .= '>';
return $image_submit;
}
Edited by bksbeat, 21 June 2011 - 07:29 PM.
#3297
Posted 21 June 2011 - 11:15 PM
category_id : 21
category's german name: bücher
category's english name: books
category's french names: livres
on site urls :
http://mysite/de/bücher-c-21.html
http://mysite/books-c-21.html
http://mysite/fr/livres-c-21.html
Sitemaps
http://mysite/de/bücher-c-21.html
http://mysite/bücher-c-21.html
http://mysite/fr/bücher-c-21.html
It seems like the Usu5_Bootstrap::i()->bootStrapper( $lng ) doesn't initiates correctly but I am not able to fix it not to track something through the objects. Any help greatly welcome.
#3298
Posted 22 June 2011 - 03:36 PM
bksbeat, on 21 June 2011 - 07:19 PM, said:
I dont know - I did install kiss meta tags a few weeks ago and perhaps there is some conflict. Oh well! Thanks again
This is what I had installed. I did noticed that there was another wrapper function, i.e. The HTML form submit button wrapper function, below the code that needed to be installed. I am not sure if that is normally there.
/**
* ULTIMATE Seo Urls 5 PRO by FWR Media
* Replacement for osCommerce href link wrapper function
*/
require_once DIR_WS_MODULES . 'ultimate_seo_urls5/main/usu5.php';
function tep_href_link( $page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true ) {
return Usu_Main::i()->hrefLink( $page, $parameters, $connection, $add_session_id, $search_engine_safe );
}
// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
return false;
}
if ($image_size = @getimagesize($src)) {
if ((CONFIG_CALCULATE_IMAGE_SIZE == 'true' && $src != DIR_WS_IMAGES . 'pixel_black.gif' && $src != DIR_WS_IMAGES . 'pixel_trans.gif' && $src != DIR_WS_IMAGES . 'pixel_silver.gif' )) {
if ( ($width) || ($height) ) {
if ( $width=="100%" ) {
$width = $image_size[0];
} elseif ( $height=="100%" ) {
$height = $image_size[1];
} elseif ( $width==0 ) {
unset($width);
} elseif ( $height==0 ) {
unset($height);
}
$src=thumbimage(DIR_FS_CATALOG . '/' .$src, $width, $height, 1, 1, DIR_FS_CATALOG . '/' . DIR_WS_IMAGES . 'imagecache');
if ((($image_size[1]/$height) > ($image_size[0]/$width) ) && $height>0){
$width=ceil(($image_size[0]/$image_size[1])* $height);
} elseif ($width>0) {
$height=ceil($width/($image_size[0]/$image_size[1]));
}
}
}
} elseif (IMAGE_REQUIRED == 'false') {
return '';
}
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) {
$image .= ' title=" ' . tep_output_string($alt) . ' "';
}
if (tep_not_null($width) && tep_not_null($height)) {
$image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
}
if (tep_not_null($parameters)) $image .= ' ' . $parameters;
$image .= '>';
return $image;
}
////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;
$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';
if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
$image_submit .= '>';
return $image_submit;
}
I removed this code from product_info and it seems to be working fine now.
<td class="main" align="right">
<?php if(tep_get_products_stock($products_id) > 0 )
{
echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
}else{
echo ("<p><FONT SIZE=5>THIS ITEM IS SOLD</FONT>");
}
?></td
#3299
Posted 22 June 2011 - 03:42 PM
bksbeat, on 22 June 2011 - 03:36 PM, said:
Glad you got it working .. but that code has nothing to do with USU5
KissMT Dynamic SEO Meta & Canonical Header Tags
KissER Error Handling and Debugging
KissIT Image Thumbnailer
Security Pro - Querystring protection against hackers ( a KISS contribution )
If you found my post useful please click the "Like This" button to the right.
Please only PM me for paid work.
#3300
Posted 22 June 2011 - 03:58 PM
FWR Media, on 22 June 2011 - 03:42 PM, said:
Thanks Robert and thanks for your patience. Just one quick question. If you place your mouse over a certain category, is that suppose to be reflected in the url? I thought I had read that somewhere in this forum. As that aint happening with my site, ie. www.nontando.com
I will take a look at the admin options, and see if there is anything that could be beneficial to improve things.
On of the things I want to remove is product_info appearing in the url very time you select a product.
- Just noticed in your doc, to remove index.php & product_info.php from appearing in the utl it requires a mod rewrite.
Otherwise, it is great - Thank you so much, Gary
Edited by bksbeat, 22 June 2011 - 04:05 PM.









