<?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>FWSS &#187; Plugins</title>
	<atom:link href="http://fw2s.com/category/blog/reviews/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://fw2s.com</link>
	<description>WordPress Articles, Tutorials, Tips &#38; Tricks</description>
	<lastBuildDate>Wed, 01 Sep 2010 23:36:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Style Box plugin &#8211; review</title>
		<link>http://fw2s.com/2009/12/12/style-box-plugin-review/</link>
		<comments>http://fw2s.com/2009/12/12/style-box-plugin-review/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 02:16:31 +0000</pubDate>
		<dc:creator>Webmaster</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[style box]]></category>

		<guid isPermaLink="false">http://fw2s.com/?p=216</guid>
		<description><![CDATA[This plugin by Shivendu Madhava is one of my favorites. Small, simple and adds stylish look to your posts/pages. It is so simple that my review consists of examples only!&#160;&#160; Examples: This is a note &#60;p class=&#34;note&#34;&#62;This is a note&#60;/p&#62; This is an alert &#60;p class=&#34;alert&#34;&#62;This is an alert&#60;/p&#62; This is a help box &#60;p [...]]]></description>
			<content:encoded><![CDATA[<p>This plugin by Shivendu Madhava is one of my favorites. Small, simple and adds stylish look to your posts/pages. It is so simple that my review consists of examples only!<br />&nbsp;<br />&nbsp;</p>
<p><span id="more-216"></span></p>
<p><strong>Examples</strong>:</p>
<p class="note">This is a note</p>
<pre class="brush: php;">&lt;p class=&quot;note&quot;&gt;This is a note&lt;/p&gt;</pre>
</p>
<p class="alert">This is an alert</p>
<pre class="brush: php;">&lt;p class=&quot;alert&quot;&gt;This is an alert&lt;/p&gt;</pre>
</p>
<p class="help">This is a help box</p>
<pre class="brush: php;">&lt;p class=&quot;help&quot;&gt;This is a help box&lt;/p&gt;</pre>
</p>
<p class="important">This is important</p>
<pre class="brush: php;">&lt;p class=&quot;important&quot;&gt;This is important&lt;/p&gt;</pre>
</p>
<p class="tip">This is a tip</p>
<pre class="brush: php;">&lt;p class=&quot;tip&quot;&gt;This is a tip&lt;/p&gt;</pre>
</p>
<p class="linux">This is linux</p>
<pre class="brush: php;">&lt;p class=&quot;linux&quot;&gt;This is linux&lt;/p&gt;</pre>
</p>
<p class="windows">This is windows</p>
<pre class="brush: php;">&lt;p class=&quot;windows&quot;&gt;This is windows&lt;/p&gt;</pre>
</p>
<p class="infobox">This is info box</p>
<pre class="brush: php;">&lt;p class=&quot;infobox&quot;&gt;This is info box&lt;/p&gt;</pre>
</p>
<p>Very simple. Isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://fw2s.com/2009/12/12/style-box-plugin-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delink Pages plugin &#8211; review (cont.)</title>
		<link>http://fw2s.com/2009/10/22/delink-pages-plugin-review-cont/</link>
		<comments>http://fw2s.com/2009/10/22/delink-pages-plugin-review-cont/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 01:27:34 +0000</pubDate>
		<dc:creator>Webmaster</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[delink pages]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://fw2s.com/?p=198</guid>
		<description><![CDATA[Delink Pages 1.1 by Jennifer Stuart is now available. There were some issues with first release of the plugin. Jennifer addressed them all in this new release&#8230; and more. Now you can strip page link entirely ( by creating custom field delink with value true ) or replace it with &#60;a href=&#8221;#&#8221;&#62;page title&#60;/a&#62; ( by [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Delink Pages on WordPress.org" href="http://wordpress.org/extend/plugins/delink-pages/" target="_blank">Delink Pages 1.1</a> by <a href="http://www.scriptygoddess.com/" target="_blank">Jennifer Stuart</a> is now available.</p>
<p>There were some issues with first release of the plugin. Jennifer addressed them all in this new release&#8230; and more.</p>
<p><span id="more-198"></span></p>
<p>Now you can strip page link entirely ( by creating custom field <strong>delink</strong> with value <strong>true</strong> ) or replace it with <em>&lt;a href=&#8221;#&#8221;&gt;page title&lt;/a&gt;</em> ( by creating custom field <strong>delink</strong> with value <strong>href</strong> ).</p>
<p class="important"><strong>Important</strong>: be aware that first option ( stripping )  might mess up navigation menu on some themes ( horizontal list of parent pages with vertical submenus of child pages ). If this is your case, you can still use second option ( link to &#8220;#&#8221; ) safely.</p>
]]></content:encoded>
			<wfw:commentRss>http://fw2s.com/2009/10/22/delink-pages-plugin-review-cont/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delink Pages plugin &#8211; review</title>
		<link>http://fw2s.com/2009/10/19/delink-pages-plugin-review/</link>
		<comments>http://fw2s.com/2009/10/19/delink-pages-plugin-review/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 13:42:02 +0000</pubDate>
		<dc:creator>Webmaster</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[delink pages]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://fw2s.com/?p=188</guid>
		<description><![CDATA[Recently I found Delink Pages 1.0 plugin by Jennifer Stuart. It promises something I was looking for: This plugin will allow you to specify certain pages to not be linked when wp_list_pages() is used in a theme. You might want to do this if you want a header for a series of subpages, but don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I found <a href="http://wordpress.org/extend/plugins/delink-pages/" target="_blank">Delink Pages 1.0</a> plugin by <a href="http://www.scriptygoddess.com/" target="_blank">Jennifer Stuart</a>. It promises something I was looking for:</p>
<blockquote><p>This plugin will allow you to specify certain pages to not be linked when wp_list_pages() is used in a theme. You might want to do this if you want a header for a series of subpages, but don&#8217;t specifically want that header to be a real page itself.</p></blockquote>
<p><span id="more-188"></span></p>
<p>Instruction says:</p>
<p>
<blockquote>To indicate that a page should not be linked when wp_list_pages() is used, edit the page that you do not want linked and create a custom field with a key of &#8220;delink&#8221; and value of &#8220;true&#8221;.</p></blockquote>
<p>Simple. Unfortunately it doesn&#8217;t work. Below is the source code:</p>
<pre class="brush: php;">&lt;?php
add_filter('wp_list_pages', 'scripty_de_link');

function scripty_de_link($output) {
		$allpageids = get_posts(array('post_type' =&gt; 'page', 'numberposts' =&gt; -1));
		foreach ($allpageids as $eachpage) {
			//get custom field value for delink
			$delinkthis = get_post_meta($eachpage-&gt;ID, &quot;delink&quot;);
			if ($delinkthis) {
				$newurl = preg_quote(get_permalink($eachpage-&gt;ID));
				$output = preg_replace('@\&lt;a href=&quot;'.$newurl.'&quot; (.*?)&gt;(.*?)\&lt;\/a&gt;@i', '$2', $output);
			}
		}
        return $output;
}
?&gt;
</pre>
<p>So, what&#8217;s wrong with this code? Apparently, parameters of <em>preg_replace</em> function are incorrect. I&#8217;m too old and too lazy to analyze the regular expression being used. Don&#8217;t get me wrong. I love regular expressions but I wouldn&#8217;t use them if there is a simpler solution. By adding one function ( <em>str_replace_count</em> ) and changing two lines of the original code I made it to serve my purpose. The new code follows:</p>
<pre class="brush: php;">
&lt;?php
add_filter('wp_list_pages', 'scripty_de_link');

function str_replace_count($find,$replace,$subject,$count)
{
   $subjectnew = $subject;
   $pos = strpos($subject,$find);
   if ($pos !== FALSE)
   {
     while ($pos !== FALSE)
     {
         $nC = $nC + 1;
         $temp = substr($subjectnew,$pos+strlen($find));
         $subjectnew = substr($subjectnew,0,$pos) . $replace . $temp;
         if ($nC &gt;= $count)
         {
           break;
         }
         $pos = strpos($subjectnew,$find);
     } // closes the while loop
   } // closes the if
   return $subjectnew;
}

function scripty_de_link($output) {
		$allpageids = get_posts(array('post_type' =&gt; 'page', 'numberposts' =&gt; -1));
		foreach ($allpageids as $eachpage) {
			//get custom field value for delink
			$delinkthis = get_post_meta($eachpage-&gt;ID, &quot;delink&quot;);
			if ($delinkthis) {
				$newurl = get_permalink($eachpage-&gt;ID);
				$output = str_replace_count($newurl, '#', $output, 1);
			}
		}
        return $output;
}
?&gt;
</pre>
<p>It does not strip the page link entirely but replaces it with <em>href=&#8221;#&#8221;</em> which causes no action when you click on it. You can see it implemented in one of my websites &#8211; <a href="http://synagoguefund.com/" target="_blank">synagoguefund.com</a>. Top navigation bar was constructed with <em>wp_list_pages</em>. Three pages &#8211; <strong>History</strong>, <strong>Videos</strong>, and <strong>Donations</strong> are dummy pages acting as parents to meaningfull subpages. </p>
]]></content:encoded>
			<wfw:commentRss>http://fw2s.com/2009/10/19/delink-pages-plugin-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
