<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BuyNowShop &#187; modify</title>
	<atom:link href="http://buynowshop.com/tag/modify/feed/" rel="self" type="application/rss+xml" />
	<link>http://buynowshop.com</link>
	<description>WordPress administration, installation, and development.</description>
	<lastBuildDate>Tue, 31 Jan 2012 20:32:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Modified Facebook Sharecount Plugin</title>
		<link>http://buynowshop.com/2009/10/modified-facebook-sharecount-plugin/</link>
		<comments>http://buynowshop.com/2009/10/modified-facebook-sharecount-plugin/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:25:21 +0000</pubDate>
		<dc:creator>Edward Caissie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[cais]]></category>
		<category><![CDATA[Edward Caissie]]></category>
		<category><![CDATA[Five Minute Fix]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://buynowshop.com/?p=913</guid>
		<description><![CDATA[Facebook Sharecount plugin modification made to only show on posts, not pages. Credit to the original author(s) at Snowball Factory, Inc. for the original GPL code.
Related posts:<ol>
<li><a href='http://buynowshop.com/2011/09/plugin-bns-theme-add-ins/' rel='bookmark' title='Plugin: BNS Theme Add-Ins'>Plugin: BNS Theme Add-Ins</a></li>
<li><a href='http://buynowshop.com/2010/04/wordpress-3-0-bns-plugin-updates/' rel='bookmark' title='WordPress 3.0 BNS Plugin Updates'>WordPress 3.0 BNS Plugin Updates</a></li>
<li><a href='http://buynowshop.com/2009/12/new-wordpress-plugin-bns-support/' rel='bookmark' title='New WordPress Plugin: BNS Support'>New WordPress Plugin: BNS Support</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I often frequent the <a href="http://wordpress.org/support/">WordPress.org Support</a> forums to offer help where I can.</p>
<p>Last week I came across a post title that caught my eye: <a href="http://wordpress.org/support/topic/316926">How to tweak plugin to show on posts only, not pages too?</a></p>
<p>I decided to have a read and see if there was something I could help with. The question at hand was in regards to a very nice little GPL licensed plugin by <a href="http://thesnowballfactory.com/">Snowball Factory, Inc.</a> called &#8220;<a href="http://www.fbshare.me/">Facebook Sharecount</a>&#8221;</p>
<p>The solution to the question seemed like it should be straight forward and I placed it into the <a href="http://buynowshop.com/five-minute-fix/">Five-Minute-Fix</a> services queue. OK, it was about 15 minutes. That was fine. I left another reply stating I had created a &#8220;fix&#8221;.</p>
<p>A week passed and then this thread came up on the WordPress Support forums: <a href="http://wordpress.org/support/topic/320509">How do I get a plugin to only display on my blog (not every page)?</a></p>
<p>Thinking this sounded very familiar I replied and left a link to the original post from the week before. More or less at the same time I also received an email from another interested person directly inquiring about the &#8220;fix&#8221; I mentioned above.</p>
<p>As I had not heard from the original poster from the week before I removed the plugin from our test server and deleted the files, fortunately <a href="http://buynowshop.com/five-minute-fix/">Five-Minute-Fix</a> items are generally very easy to re-create.</p>
<p>Here is the modified file freely available for download: <a class="downloadlink" href="http://buynowshop.com/wp-downloads/bns-facebook-sharecount.zip" title="Version0.8.1 downloaded 66 times" >BNS Facebook Sharecount (66)</a><br />
I have added a small bit of notation showing the modifications made by BNS. All credit and the bulk of the work still goes to the original author(s) at Snowball Factory, Inc.</p>
<p style='text-align:left'>&copy; 2009, <a href='http://buynowshop.com'>BuyNowShop</a>. All rights reserved. </p>
<p>Related posts:<ol>
<li><a href='http://buynowshop.com/2011/09/plugin-bns-theme-add-ins/' rel='bookmark' title='Plugin: BNS Theme Add-Ins'>Plugin: BNS Theme Add-Ins</a></li>
<li><a href='http://buynowshop.com/2010/04/wordpress-3-0-bns-plugin-updates/' rel='bookmark' title='WordPress 3.0 BNS Plugin Updates'>WordPress 3.0 BNS Plugin Updates</a></li>
<li><a href='http://buynowshop.com/2009/12/new-wordpress-plugin-bns-support/' rel='bookmark' title='New WordPress Plugin: BNS Support'>New WordPress Plugin: BNS Support</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://buynowshop.com/2009/10/modified-facebook-sharecount-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Display Default Sidebar and Widgets</title>
		<link>http://buynowshop.com/2009/08/display-default-sidebar-and-widgets/</link>
		<comments>http://buynowshop.com/2009/08/display-default-sidebar-and-widgets/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 00:04:03 +0000</pubDate>
		<dc:creator>Edward Caissie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://buynowshop.com/?p=360</guid>
		<description><![CDATA[How to edit the sidebar.php file in a WordPress theme to display both the default sidebar content and the content from activated widgets at the same time.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I thought it would be an interesting exercise to provide a solution to displaying the <em>default content of the sidebar</em> that comes with a theme <strong>and</strong> the <em>content from activated widgets</em>.  This is especially useful when using a theme with only one widget area in the sidebar.</p>
<p>The first thing I would strongly recommend is to make a back-up of the sidebar.php file as what I am suggesting would be considered a large or significant edit.</p>
<p>I will be using the code from the <a href="http://wordpress.org/extend/themes/shades">Shades</a> theme as it is the simplest to work from, for this tip, and should be easily related to most themes. First, look for the code similar to this, near the top of the sidebar.php file and make note where it is:</p>
<pre><code>&lt;?php if (function_exists('dynamic_sidebar') &#038;&#038; dynamic_sidebar(1) ) : else : ?>
</code></pre>
<p>Next, follow the code to near the bottom of the file, and look for a statement very similar if not exactly like this:</p>
<pre><code>&lt;?php endif; ?></code></pre>
<p>The Shades theme actually has two (2) sidebar widget areas so the code to look for would look similar to this for multiple widget area themes:</p>
<pre><code>&lt;?php endif; ?>
&lt;?php if (function_exists('dynamic_sidebar') &#038;&#038; dynamic_sidebar(2) ) : else : ?>&lt;?php endif; ?></code></pre>
<p>Make sure to note the code and area between the &#8220;dynamic sidebar&#8221; line and its <strong>matching</strong> &#8220;endif&#8221; line above, in the case of the Shades theme it would be the first instance of the &#8220;endif&#8221; statement as shown above.</p>
<p>Now, the BIG edit: <em><strong>cut</strong> and paste</em> all the code between the two statements you noted above and place it either directly below the &#8220;endif&#8221; statement; or, directly above the &#8220;dynamic sidebar&#8221; statement, depending on how you want your sidebar default and widget content to display. If you use &#8220;copy&#8221; it will display the sidebar default twice until you activate a widget.</p>
<p>Take a look at your blog &#8230; if you had no widgets activated before the edit, then you should not notice anything different. Try activating a widget or two and you should see them appear either above, or below, the &#8220;default&#8221; sidebar content, again depending on where you moved the default sidebar code to.</p>
<p>Feel free to <a href="http://buynowshop.com/contact-us/">contact us</a> if you need help making these edits to the theme you are using.</p>
<p style='text-align:left'>&copy; 2009, <a href='http://buynowshop.com'>BuyNowShop</a>. All rights reserved. </p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://buynowshop.com/2009/08/display-default-sidebar-and-widgets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multiple Contributors in Desk Mess Mirrored</title>
		<link>http://buynowshop.com/2009/06/multiple-contributors-in-desk-mess-mirrored/</link>
		<comments>http://buynowshop.com/2009/06/multiple-contributors-in-desk-mess-mirrored/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 00:39:28 +0000</pubDate>
		<dc:creator>JellyBeen</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://buynowshop.com/?p=127</guid>
		<description><![CDATA[Editing Desk Mess Mirrored theme for WordPress to add multiple contributor functionality.
Related posts:<ol>
<li><a href='http://buynowshop.com/2009/05/styling-comments-by-author/' rel='bookmark' title='Styling Comments by Author'>Styling Comments by Author</a></li>
<li><a href='http://buynowshop.com/2009/06/desk-mess-mirrored-105/' rel='bookmark' title='Desk Mess Mirrored 1.0.5'>Desk Mess Mirrored 1.0.5</a></li>
<li><a href='http://buynowshop.com/2009/06/desk-mess-mirrored-1-0-6/' rel='bookmark' title='Desk Mess Mirrored 1.0.6'>Desk Mess Mirrored 1.0.6</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/themes/desk-mess-mirrored">Desk Mess Mirrored</a> version 1.0.5 has added the features of identifying more readily multiple contributors to an individual blog.</p>
<p>In the comments.php file the code will need to be (as of this writing) be manually edited.  The changes are relatively small and very easy to do. Starting around line 30 change this:</p>
<pre><code>&lt;?php foreach ($comments as $comment) : ?&gt;
  &lt;div id="comment-&lt;?php comment_ID() ?&gt;" &gt;
  /* elseif ($comment-&gt;user_id == '2') echo 'jellybeen'; */ /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  else echo $oddcomment; ?&gt; item" id="comment-&lt;?php comment_ID() ?&gt;" &gt;</code></pre>
<p>to this by simply removing the first &#8220;/*&#8221; and the first &#8220;*/&#8221;:</p>
<pre><code>&lt;?php foreach ($comments as $comment) : ?&gt;
  &lt;div id="comment-&lt;?php comment_ID() ?&gt;" &gt;
  elseif ($comment-&gt;user_id == '2') echo 'jellybeen'; /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  else echo $oddcomment; ?&gt; item" id="comment-&lt;?php comment_ID() ?&gt;" &gt;</code></pre>
<p>This adds the specific registered user comment styling.</p>
<p>The author.php file will also need to be edited to complete the full feature set of version 1.0.5, which is matching the style of the contributor comments to their individual page listing their specific posts.  Starting with this (around line 17):</p>
<pre><code>&lt;div id="author" class="&lt;?php if ((get_userdata(intval($author))-&gt;ID) == '1') echo 'administrator';
  /* elseif ((get_userdata(intval($author))-&gt;ID) == '2') echo 'jellybeen'; */ /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  ?&gt;"&gt;</code></pre>
<p>Simply remove the first &#8220;/*&#8221; and the first &#8220;*/&#8221; to change to this:</p>
<pre><code>&lt;div id="author" class="&lt;?php if ((get_userdata(intval($author))-&gt;ID) == '1') echo 'administrator';
  elseif ((get_userdata(intval($author))-&gt;ID) == '2') echo 'jellybeen'; /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  ?&gt;"&gt;</code></pre>
<p>The classes are already called out in the CSS so the rest is easily changed to suit the individual author.</p>
<p>If you need additional help feel free to <a href="http://buynowshop.com/contact-us">contact us</a>.</p>
<p style='text-align:left'>&copy; 2009, <a href='http://buynowshop.com'>BuyNowShop</a>. All rights reserved. </p>
<p>Related posts:<ol>
<li><a href='http://buynowshop.com/2009/05/styling-comments-by-author/' rel='bookmark' title='Styling Comments by Author'>Styling Comments by Author</a></li>
<li><a href='http://buynowshop.com/2009/06/desk-mess-mirrored-105/' rel='bookmark' title='Desk Mess Mirrored 1.0.5'>Desk Mess Mirrored 1.0.5</a></li>
<li><a href='http://buynowshop.com/2009/06/desk-mess-mirrored-1-0-6/' rel='bookmark' title='Desk Mess Mirrored 1.0.6'>Desk Mess Mirrored 1.0.6</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://buynowshop.com/2009/06/multiple-contributors-in-desk-mess-mirrored/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

