View Single Post
  #13  
Old 11-21-2011, 06:24 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: 4.4.4 Site Won't Validate

I have modified my Socialize Module to use ShareThis so my visitors have access to over 100 services besides Facebook, Twitter, and Google +1.

With my modification the homepage validates fine with the Socialize module turned on because I've commented out sections and added the ShareThis code as shown below.

Quote:
{*
$Id: service_head.tpl,v 1.1.2.3 2011/09/19 12:08:28 aim Exp $
vim: set ts=2 sw=2 sts=2 et:
*}

{if ($active_modules.Socialize and ($main eq 'product' or $main eq 'catalog')) and (!$ie_ver or $ie_ver gt 6)}

{if $main eq "product" and !$active_modules.Facebook_Tab}
{assign var="prod_descr" value=$product.descr|default:$product.fulldescr}
<meta property="og:title" content="{$product.product|escape}"/>
<meta property="og:description" content="{$prod_descr|truncate:'500':'...':false|e scape|addslashes}" />
<meta property="og:type" content="product"/>
<meta property="og:url" content="{$current_location}/{$canonical_url}" />
<meta property="og:image" content="{if $product.tmbn_url && !$product.default_image}{$product.tmbn_url}{else}{ $current_location}{if $product.default_image}/{$product.default_image|replace:'./':''}{else}/image.php?type={$type|default:'T'}&id={$product.pr oductid}{/if}{/if}" />
<meta property="og:site_name" content="{$lng.lbl_site_name|default:$config.Compa ny.company_name|amp}" />
<meta property="og:street-address" content="{$config.Company.location_address}" />
<meta property="og:locality" content="{$config.Company.location_city}" />
<meta property="og:region" content="{$config.Company.location_state}" />
<meta property="og:postal-code" content="{$config.Company.location_zipcode}" />
<meta property="og:country-name" content="{$config.Company.location_country}" />
{if $config.Socialize.soc_fb_user_id ne ''}
<meta property="fb:admins" content="{$config.Socialize.soc_fb_user_id}" />
{/if}
{/if}

{*
{load_defer file="modules/Socialize/main.css" type="css"}
*}

{*
{if $config.Socialize.soc_ggl_plus_enabled eq "Y"}
<script type="text/javascript" src="{$current_protocol}://apis.google.com/js/plusone.js">
{ldelim}lang: '{$store_language}'{rdelim}
</script>
{/if}
*}

{if $config.Socialize.soc_fb_like_enabled eq "Y" or $config.Socialize.soc_fb_send_enabled eq "Y"}
<script type="text/javascript" src="{$current_protocol}://connect.facebook.net/{$store_language|@func_get_facebook_lang_code}/all.js#xfbml=1"></script>
{/if}

{*
{if $config.Socialize.soc_tw_enabled eq "Y"}
<script type="text/javascript" src="{$current_protocol}://platform.twitter.com/widgets.js"></script>
{/if}
*}

{literal}
<script type="text/javascript">var switchTo5x=false;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher:'***your-number-here***'});</script>
{/literal}


{/if}

I am getting validation errors on the product page related to using the FaceBook Comments part of the Socialize Module and ShareThis. I'll work on Line 97 but I'll live with Line 90 and Line 465.

Line 90, Column 26: there is no attribute "property"
<meta property="og:title" content="xxxxxxxxxxxxxxxxxxxxx...

Line 97, Column 96: general entity "id" not defined and no default entity
Line 97, Column 98: reference to entity "id" for which no system identifier could be generated
┘" content="http://www.mysite-444/image.php?type=T&id=16880" />

Line 465, Column 52: there is no attribute "displayText"
<span class='st_facebook_hcount' displayText='Facebook'></span>


When I finish the mod the way I want my products will list automatically on Twitter and my Facebook Wall. My FB Wall will show thumbnails of the products as well because of the FB code that the x-cart Socialize Module contains.

Access to the other services opens when you hover over the ShareThis icon as shown in the attachment.

Let me know if this is of interest to you and I'll provide more details.

Thanks!

Paul
__________________
WooCommerce as of 10/2022
Reply With Quote