<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: osCommerce: STS and Dynamic Meta Tags</title>
	<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 01:01:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Antoine Hoekman</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10277</link>
		<pubDate>Tue, 06 May 2008 09:34:02 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10277</guid>
					<description>Another Addition/

Don't use require(DIR_WS_INCLUDES . ‘meta_tags.php’);  in str_user_code.php ... after that index.php and categories don't work anymore.  In stead add the line

require(DIR_WS_INCLUDES . ‘meta_tags.php’);

Somewhere in 

product_info.php
specials.php
products_new.php

somewhere after another require.

Hopefully everything works fine know .. if not let me know.

Antoine</description>
		<content:encoded><![CDATA[<p>Another Addition/</p>
<p>Don&#8217;t use require(DIR_WS_INCLUDES . ‘meta_tags.php’);  in str_user_code.php &#8230; after that index.php and categories don&#8217;t work anymore.  In stead add the line</p>
<p>require(DIR_WS_INCLUDES . ‘meta_tags.php’);</p>
<p>Somewhere in </p>
<p>product_info.php<br />
specials.php<br />
products_new.php</p>
<p>somewhere after another require.</p>
<p>Hopefully everything works fine know .. if not let me know.</p>
<p>Antoine
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Antoine Hoekman</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10245</link>
		<pubDate>Mon, 05 May 2008 11:23:33 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10245</guid>
					<description>addition to above post.

Meant:

right after the opening php tag.

   require(DIR_WS_INCLUDES . 'meta_tags.php');

This solved the problem for me.

Kind regards,

Antoine</description>
		<content:encoded><![CDATA[<p>addition to above post.</p>
<p>Meant:</p>
<p>right after the opening php tag.</p>
<p>   require(DIR_WS_INCLUDES . &#8216;meta_tags.php&#8217;);</p>
<p>This solved the problem for me.</p>
<p>Kind regards,</p>
<p>Antoine
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Antoine Hoekman</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10244</link>
		<pubDate>Mon, 05 May 2008 11:17:18 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10244</guid>
					<description>I had the same problem with empty variables. The problem is that the above installation procedure is not complete. The meta_tags.php file isn't called from any code.

Adding the line below to the beginning of sts_user.php (right after </description>
		<content:encoded><![CDATA[<p>I had the same problem with empty variables. The problem is that the above installation procedure is not complete. The meta_tags.php file isn&#8217;t called from any code.</p>
<p>Adding the line below to the beginning of sts_user.php (right after
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: kevin</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10104</link>
		<pubDate>Tue, 29 Apr 2008 17:42:42 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10104</guid>
					<description>// Mod STS + cDynamic Meta Tags
// Check if STS is enabled or in test mode
    if ((MODULE_STS_DEFAULT_STATUS == 'true') &#124;&#124; (($_GET['sts_debug'] == MODULE_STS_DEBUG_CODE)))
	  { };

that works</description>
		<content:encoded><![CDATA[<p>// Mod STS + cDynamic Meta Tags<br />
// Check if STS is enabled or in test mode<br />
    if ((MODULE_STS_DEFAULT_STATUS == &#8216;true&#8217;) || (($_GET[&#8217;sts_debug&#8217;] == MODULE_STS_DEBUG_CODE)))<br />
	  { };</p>
<p>that works
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Michael</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10008</link>
		<pubDate>Sat, 19 Apr 2008 19:32:06 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10008</guid>
					<description>Hmm... it was not that :)

Here it comes again:

Hello.

I have installed following the above instructions, but i get a [Opening Tag] (- cant write it, because this blog will disform it) in the top left corner of my site now. Everything else is working fine (also Meta).

Can some one please help me? I cant find a loose tag anywhere :(

The tag is somewhere in my catalog\includes\meta_tags.php - i think.

I really hope you can help! - Michael</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; it was not that <img src='http://sodoityourself.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here it comes again:</p>
<p>Hello.</p>
<p>I have installed following the above instructions, but i get a [Opening Tag] (- cant write it, because this blog will disform it) in the top left corner of my site now. Everything else is working fine (also Meta).</p>
<p>Can some one please help me? I cant find a loose tag anywhere <img src='http://sodoityourself.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>The tag is somewhere in my catalog\includes\meta_tags.php - i think.</p>
<p>I really hope you can help! - Michael
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Michael</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10007</link>
		<pubDate>Sat, 19 Apr 2008 19:29:10 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-10007</guid>
					<description>Hello.

I have installed following the above instructions, but i get a "</description>
		<content:encoded><![CDATA[<p>Hello.</p>
<p>I have installed following the above instructions, but i get a &#8220;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Simon</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-8981</link>
		<pubDate>Wed, 09 Jan 2008 12:49:03 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-8981</guid>
					<description>@David:

The 'n' should be a line break: replace "n" with "\n" and it should work fine.

I'm having a similar problem with output though. I have tested on a development copy of my client's site and can get it working properly. I install cDynamic Meta Tags on the production site and get no output at the template stage other than empty HTML tags. This suggests to me that the variables aren't being passed to the templates somewhere up the line. I have tested the code in sts_user_code.php by putting some static text in the title tag, and confirmed this. It looks like the $meta- variables need to be passed on somewhere. More when I find it.</description>
		<content:encoded><![CDATA[<p>@David:</p>
<p>The &#8216;n&#8217; should be a line break: replace &#8220;n&#8221; with &#8220;\n&#8221; and it should work fine.</p>
<p>I&#8217;m having a similar problem with output though. I have tested on a development copy of my client&#8217;s site and can get it working properly. I install cDynamic Meta Tags on the production site and get no output at the template stage other than empty HTML tags. This suggests to me that the variables aren&#8217;t being passed to the templates somewhere up the line. I have tested the code in sts_user_code.php by putting some static text in the title tag, and confirmed this. It looks like the $meta- variables need to be passed on somewhere. More when I find it.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: bgfkjg</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-7351</link>
		<pubDate>Sun, 30 Sep 2007 16:06:31 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-7351</guid>
					<description>http://www.meta-fx.com
forex     فارکس</description>
		<content:encoded><![CDATA[<p><a href='http://www.meta-fx.com' rel='nofollow'>http://www.meta-fx.com</a><br />
forex     فارکس
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: eBoxNet</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-6979</link>
		<pubDate>Sun, 09 Sep 2007 12:52:24 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-6979</guid>
					<description>just add the code in catalog\includes\modules\sts_inc\sts_user_code.php

# Mod STS + cDynamic Meta Tags
 $sts-&#62;template['stsMetaTitle']='  '.$metatitle.'' . "";
 $sts-&#62;template['stsMetaDescription']='  ' . "";
 $sts-&#62;template['stsMetaKeywords']='  ' . "";
# End Mod STS + cDynamic Meta Tags

and then add 

$stsMetaTitle
$stsMetaDescription
$stsMetaKeywords

in your template file. remember to remove the &lt;!--$headcontent--&gt; and will be fine</description>
		<content:encoded><![CDATA[<p>just add the code in catalog\includes\modules\sts_inc\sts_user_code.php</p>
<p># Mod STS + cDynamic Meta Tags<br />
 $sts-&gt;template[&#8217;stsMetaTitle&#8217;]=&#8217;  &#8216;.$metatitle.'&#8217; . &#8220;&#8221;;<br />
 $sts-&gt;template[&#8217;stsMetaDescription&#8217;]=&#8217;  &#8216; . &#8220;&#8221;;<br />
 $sts-&gt;template[&#8217;stsMetaKeywords&#8217;]=&#8217;  &#8216; . &#8220;&#8221;;<br />
# End Mod STS + cDynamic Meta Tags</p>
<p>and then add </p>
<p>$stsMetaTitle<br />
$stsMetaDescription<br />
$stsMetaKeywords</p>
<p>in your template file. remember to remove the <!--$headcontent--> and will be fine
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David</title>
		<link>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-6412</link>
		<pubDate>Tue, 07 Aug 2007 00:56:56 +0000</pubDate>
		<guid>http://sodoityourself.com/oscommerce-sts-dynamic-meta-tags/#comment-6412</guid>
					<description>Tried the above on business-investment-news.info which is a test site that I'm creating an SEO version of Oscommerce with no tables in the code (so all CSS driven).

When complete will be quite easy to use various CSS bases templates, the one on the test site is a popular WordPress theme. Has taken a week to get this far, Oscommerce code is a pain to change from tables to CSS/divs.

Using the latest versions of the two contributions (so the STS version is not the one listed above)

Couldn't get it working 

I think you have an error in (prob not the cause of the problem)-

// Mod STS + cDynamic Meta Tags

blah...
else {


The else above clashes with 

else if (strpos

I found removing else from "else if (strpos" (so use "if (strpos") at least got the site working again, but the title etc... is not shown correctly. What I get is the title/meta tags code listed minus the actual keywords etc... and the /n is shown as text.

Anyone know how to get STS and Meta Tags working in the latest versions?</description>
		<content:encoded><![CDATA[<p>Tried the above on business-investment-news.info which is a test site that I&#8217;m creating an SEO version of Oscommerce with no tables in the code (so all CSS driven).</p>
<p>When complete will be quite easy to use various CSS bases templates, the one on the test site is a popular WordPress theme. Has taken a week to get this far, Oscommerce code is a pain to change from tables to CSS/divs.</p>
<p>Using the latest versions of the two contributions (so the STS version is not the one listed above)</p>
<p>Couldn&#8217;t get it working </p>
<p>I think you have an error in (prob not the cause of the problem)-</p>
<p>// Mod STS + cDynamic Meta Tags</p>
<p>blah&#8230;<br />
else {</p>
<p>The else above clashes with </p>
<p>else if (strpos</p>
<p>I found removing else from &#8220;else if (strpos&#8221; (so use &#8220;if (strpos&#8221;) at least got the site working again, but the title etc&#8230; is not shown correctly. What I get is the title/meta tags code listed minus the actual keywords etc&#8230; and the /n is shown as text.</p>
<p>Anyone know how to get STS and Meta Tags working in the latest versions?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
