<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Embedding WordPress into OS Commerce Part II</title>
	<atom:link href="http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/</link>
	<description>J. Michael Wender - Graphic Artist, Web Developer, Coder</description>
	<pubDate>Fri, 04 Jul 2008 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Cal Skate Skateboard</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1186</link>
		<dc:creator>Cal Skate Skateboard</dc:creator>
		<pubDate>Thu, 26 Jun 2008 15:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1186</guid>
		<description>Thanks for this plug-in Michael!  I just did an integration found here: http://www.calsk8.com/skateshop/

Regarding the 404 errors and SEO problems... I ran into those as well.  We run Ultimate SEO.  Simple solution: turn off permalinks in wordpress.  It appears that having mod-rewrite on both Oscommerce links and Wordpress links doesn't work out well.  No idea why that is.

I put two dynamic sidebars within oscommerce boxes.  We wanted the blog and pages accessible from everywhere.  This eliminates a second "blog" sidebar (as your demo has).  
In "column_right.php" i put:
require(DIR_WS_BOXES . 'blog_sidebar.php');

I created a "blog_sidebar.php" in includes/boxes/.  I put the stuff below... your milage may vary.  This worked... our oscommerce design is not highly modified so it should look fairly good for you:


&lt;pre&gt;&lt;code&gt;
&#60;?php
/* Blog Sidebar by Paul Ireland for Cal Skate Skateboards (http://www.calsk8.com/) 6/26/2008 */
?&#62;
&#60;!-- blog sidebar //--&#62;
&#60;tr&#62;&#60;td&#62;
&#60;?php
  $info_box_contents = array();
  $info_box_contents[] = array('text' =&#62; "Blog Stuff");

  new infoBoxHeading($info_box_contents, false, false);
?&#62;
&#60;table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"&#62;
  &#60;tr&#62;&#60;td&#62;&#60;table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"&#62;
  &#60;tr&#62;&#60;td&#62;&#60;img src="images/pixel_trans.gif" width="100%" height="1" border="0" alt="  "&#62;&#60;/td&#62;&#60;/tr&#62;
  &#60;tr&#62;&#60;td align="left" class="boxText"&#62;&#60;div id="blog_sidebar"&#62;&#60;ul&#62;&#60;?php  dynamic_sidebar('Main Sidebar'); ?&#62;&#60;/ul&#62;&#60;/div&#62;&#60;/td&#62;
  &#60;/tr&#62;&#60;tr&#62;&#60;td&#62;&#60;img src="images/pixel_trans.gif" width="100%" height="1" border="0" alt="  "&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;!-- blog_sidebar_eof //--&#62;
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this plug-in Michael!  I just did an integration found here: <a href="http://www.calsk8.com/skateshop/" rel="nofollow">http://www.calsk8.com/skateshop/</a></p>
<p>Regarding the 404 errors and SEO problems&#8230; I ran into those as well.  We run Ultimate SEO.  Simple solution: turn off permalinks in wordpress.  It appears that having mod-rewrite on both Oscommerce links and Wordpress links doesn&#8217;t work out well.  No idea why that is.</p>
<p>I put two dynamic sidebars within oscommerce boxes.  We wanted the blog and pages accessible from everywhere.  This eliminates a second &#8220;blog&#8221; sidebar (as your demo has).<br />
In &#8220;column_right.php&#8221; i put:<br />
require(DIR_WS_BOXES . &#8216;blog_sidebar.php&#8217;);</p>
<p>I created a &#8220;blog_sidebar.php&#8221; in includes/boxes/.  I put the stuff below&#8230; your milage may vary.  This worked&#8230; our oscommerce design is not highly modified so it should look fairly good for you:</p>
<pre><code>
&lt;?php
/* Blog Sidebar by Paul Ireland for Cal Skate Skateboards (http://www.calsk8.com/) 6/26/2008 */
?&gt;
&lt;!-- blog sidebar //--&gt;
&lt;tr&gt;&lt;td&gt;
&lt;?php
  $info_box_contents = array();
  $info_box_contents[] = array(&#8217;text&#8217; =&gt; &#8220;Blog Stuff&#8221;);

  new infoBoxHeading($info_box_contents, false, false);
?&gt;
&lt;table border=&#8221;0&#8243; width=&#8221;100%&#8221; cellspacing=&#8221;0&#8243; cellpadding=&#8221;1&#8243; class=&#8221;infoBox&#8221;&gt;
  &lt;tr&gt;&lt;td&gt;&lt;table border=&#8221;0&#8243; width=&#8221;100%&#8221; cellspacing=&#8221;0&#8243; cellpadding=&#8221;3&#8243; class=&#8221;infoBoxContents&#8221;&gt;
  &lt;tr&gt;&lt;td&gt;&lt;img src=&#8221;images/pixel_trans.gif&#8221; width=&#8221;100%&#8221; height=&#8221;1&#8243; border=&#8221;0&#8243; alt=&#8221;  &#8220;&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td align=&#8221;left&#8221; class=&#8221;boxText&#8221;&gt;&lt;div id=&#8221;blog_sidebar&#8221;&gt;&lt;ul&gt;&lt;?php  dynamic_sidebar(&#8217;Main Sidebar&#8217;); ?&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=&#8221;images/pixel_trans.gif&#8221; width=&#8221;100%&#8221; height=&#8221;1&#8243; border=&#8221;0&#8243; alt=&#8221;  &#8220;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- blog_sidebar_eof //--&gt;
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: EmmaK</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1161</link>
		<dc:creator>EmmaK</dc:creator>
		<pubDate>Thu, 19 Jun 2008 20:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1161</guid>
		<description>Well, I'm just starting the whole thing from scratch, so maybe I mangled something at one point and this will solve it.

By the way, did hackers really hack the demo?  I can't get to it.  :-/</description>
		<content:encoded><![CDATA[<p>Well, I&#8217;m just starting the whole thing from scratch, so maybe I mangled something at one point and this will solve it.</p>
<p>By the way, did hackers really hack the demo?  I can&#8217;t get to it.  :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tino</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1159</link>
		<dc:creator>Tino</dc:creator>
		<pubDate>Thu, 19 Jun 2008 18:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1159</guid>
		<description>Great contribution Michael. Thanks for sharing! :-)

I had a problem though.
Because I was using OsCommerce STS template system, and Header Tags SEO contributions. The meta tags were all the same for all blog pages.

I have came up with a solution. Just add the code in the STS template file's headers:

&lt;pre&gt;&lt;code&gt;
&#60;?php
if (preg_match("/(.*)blog.php(.*)/", $_SERVER['REQUEST_URI'])) {
	echo "&#60;title&#62;";
	wp_title('');
	if(wp_title('', false)) { echo ' :'; }
	bloginfo('name');
	echo "&#60;/title&#62;";
	wp_head();
	wp_get_archives('type=monthly&#038;format=link');
	echo '&#60;link rel="pingback" href="' .get_bloginfo('pingback_url'). '" /&#62;';
	echo '&#60;base href="http://www.YOURSITE.com" /&#62;';
} else {
	echo '&#60;!--' .$headcontent. '--&#62;';
}
?&#62;
&lt;/code&gt;&lt;/pre&gt;

Basically this adds one header for the blog pages and the standard header for all other pages.

I hope this helps someone. ;-)

Cheers</description>
		<content:encoded><![CDATA[<p>Great contribution Michael. Thanks for sharing! <img src='http://michaelwender.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I had a problem though.<br />
Because I was using OsCommerce STS template system, and Header Tags SEO contributions. The meta tags were all the same for all blog pages.</p>
<p>I have came up with a solution. Just add the code in the STS template file&#8217;s headers:</p>
<pre><code>
&lt;?php
if (preg_match("/(.*)blog.php(.*)/", $_SERVER['REQUEST_URI'])) {
	echo &#8220;&lt;title&gt;&#8221;;
	wp_title(&#8221;);
	if(wp_title(&#8221;, false)) { echo &#8216; :&#8217;; }
	bloginfo(&#8217;name&#8217;);
	echo &#8220;&lt;/title&gt;&#8221;;
	wp_head();
	wp_get_archives(&#8217;type=monthly&#038;format=link&#8217;);
	echo &#8216;&lt;link rel=&#8221;pingback&#8221; href=&#8221;&#8216; .get_bloginfo(&#8217;pingback_url&#8217;). &#8216;&#8221; /&gt;&#8217;;
	echo &#8216;&lt;base href=&#8221;http://www.YOURSITE.com&#8221; /&gt;&#8217;;
} else {
	echo &#8216;&lt;!--&#8217; .$headcontent. &#8216;--&gt;&#8217;;
}
?&gt;
</code></pre>
<p>Basically this adds one header for the blog pages and the standard header for all other pages.</p>
<p>I hope this helps someone. <img src='http://michaelwender.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1158</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 19 Jun 2008 18:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1158</guid>
		<description>@EmmaK - Hmm...I'm unsure of what you could have done to drop the CSS from your admin. I've never heard of this before.

@n00b0101 - Check to see that stylesheet.css and stylesheet.blog.css are in the root folder of your OSC install.</description>
		<content:encoded><![CDATA[<p>@EmmaK - Hmm&#8230;I&#8217;m unsure of what you could have done to drop the CSS from your admin. I&#8217;ve never heard of this before.</p>
<p>@n00b0101 - Check to see that stylesheet.css and stylesheet.blog.css are in the root folder of your OSC install.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EmmaK</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1156</link>
		<dc:creator>EmmaK</dc:creator>
		<pubDate>Thu, 19 Jun 2008 15:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1156</guid>
		<description>When I follow these instructions, the admin pages lose the css.  I'd like it to retain it, since a non-css version is ugly and difficult to navigate.  Did I miss something somewhere?</description>
		<content:encoded><![CDATA[<p>When I follow these instructions, the admin pages lose the css.  I&#8217;d like it to retain it, since a non-css version is ugly and difficult to navigate.  Did I miss something somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n00b0101</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1155</link>
		<dc:creator>n00b0101</dc:creator>
		<pubDate>Thu, 19 Jun 2008 15:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1155</guid>
		<description>I followed the instructions, but it seems there's no css at all for my blog anymore.  Is there something I should check?</description>
		<content:encoded><![CDATA[<p>I followed the instructions, but it seems there&#8217;s no css at all for my blog anymore.  Is there something I should check?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: momota</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1107</link>
		<dc:creator>momota</dc:creator>
		<pubDate>Mon, 09 Jun 2008 18:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-1107</guid>
		<description>everything is working, but when i update index.php with the one you provide, the last 4 blog headlines doesn't display.

It's empty... any idea how to fix that?</description>
		<content:encoded><![CDATA[<p>everything is working, but when i update index.php with the one you provide, the last 4 blog headlines doesn&#8217;t display.</p>
<p>It&#8217;s empty&#8230; any idea how to fix that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silk wedding flowers</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-759</link>
		<dc:creator>silk wedding flowers</dc:creator>
		<pubDate>Mon, 07 Apr 2008 17:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-759</guid>
		<description>Just to let you know this is exactly what I want to do and would love to see that demo ;)</description>
		<content:encoded><![CDATA[<p>Just to let you know this is exactly what I want to do and would love to see that demo <img src='http://michaelwender.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Goodman</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-562</link>
		<dc:creator>Dale Goodman</dc:creator>
		<pubDate>Fri, 29 Feb 2008 22:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-562</guid>
		<description>Hi, I did the install, but when I finished I got this error on blog.php

Fatal error: Call to undefined function: get_bloginfo() in /home/northcen/public_html/blog.php on line 14


?? :(</description>
		<content:encoded><![CDATA[<p>Hi, I did the install, but when I finished I got this error on blog.php</p>
<p>Fatal error: Call to undefined function: get_bloginfo() in /home/northcen/public_html/blog.php on line 14</p>
<p>?? <img src='http://michaelwender.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-482</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 12 Feb 2008 20:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://beta.michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/#comment-482</guid>
		<description>@none - Thanks for noticing! Your comment made me realize that I needed to make a server-side adjustment due to a recent upgrade from PHP4 to PHP5.</description>
		<content:encoded><![CDATA[<p>@none - Thanks for noticing! Your comment made me realize that I needed to make a server-side adjustment due to a recent upgrade from PHP4 to PHP5.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
