<?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: WP Plugin: Simple Image Linking v1.0</title>
	<atom:link href="http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/</link>
	<description>Malaysia Tech Blog</description>
	<pubDate>Thu, 04 Dec 2008 00:52:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: canon sx110</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-286486</link>
		<dc:creator>canon sx110</dc:creator>
		<pubDate>Thu, 04 Sep 2008 16:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-286486</guid>
		<description>i'll check it
thanks a lot</description>
		<content:encoded><![CDATA[<p>i&#8217;ll check it<br />
thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP Plugins DB &#187; Blog Archive &#187; Simple Image Linking</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-46308</link>
		<dc:creator>WP Plugins DB &#187; Blog Archive &#187; Simple Image Linking</dc:creator>
		<pubDate>Sun, 20 May 2007 09:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-46308</guid>
		<description>[...] Visit [...]</description>
		<content:encoded><![CDATA[<p>[...] Visit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Inter Casin&#242;</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-44879</link>
		<dc:creator>Inter Casin&#242;</dc:creator>
		<pubDate>Thu, 10 May 2007 20:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-44879</guid>
		<description>&lt;strong&gt;Inter Casin&#242;&lt;/strong&gt;

probation harasses?aloneness flounders stones,offends,</description>
		<content:encoded><![CDATA[<p><strong>Inter Casin&#242;</strong></p>
<p>probation harasses?aloneness flounders stones,offends,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My Wordpress Plugins compatible with WP2.1 at CypherHackz.Net - Personal, Technology, Computers, Security &#38; Internet Site</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-19113</link>
		<dc:creator>My Wordpress Plugins compatible with WP2.1 at CypherHackz.Net - Personal, Technology, Computers, Security &#38; Internet Site</dc:creator>
		<pubDate>Wed, 31 Jan 2007 13:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-19113</guid>
		<description>[...] I want to announce here that I will not do anymore support to Simple Image Linking plugin. If you have any problems with it, I feel very very sorry. The plugin is not supported [...]</description>
		<content:encoded><![CDATA[<p>[...] I want to announce here that I will not do anymore support to Simple Image Linking plugin. If you have any problems with it, I feel very very sorry. The plugin is not supported [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-18298</link>
		<dc:creator>Olivier</dc:creator>
		<pubDate>Wed, 24 Jan 2007 09:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-18298</guid>
		<description>Hi,
are you going to make this plugin compatible with WP 2.1 ?

Olivier :-?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
are you going to make this plugin compatible with WP 2.1 ?</p>
<p>Olivier <img src='http://www.cypherhackz.net/smilies/yahoo_think.gif' alt='&#58;&#45;&#63;' class='wp-smiley' width='18' height='18' title='&#58;&#45;&#63;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CypherHackz</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-15154</link>
		<dc:creator>CypherHackz</dc:creator>
		<pubDate>Mon, 20 Nov 2006 02:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-15154</guid>
		<description>it is in the .php file. :)</description>
		<content:encoded><![CDATA[<p>it is in the .php file. <img src='http://www.cypherhackz.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: claire</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-15152</link>
		<dc:creator>claire</dc:creator>
		<pubDate>Sun, 19 Nov 2006 23:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-15152</guid>
		<description>Hi, I downloaded the image linking file, but there enclosed was only one .php file, and no read me instructions (I did not find any clues after activating the program, under options, files, etc....) I know you mention a requisite image folder not included with the zip. folder. can you supply more info. or a link to more info? thanks, i am new at wordpress.</description>
		<content:encoded><![CDATA[<p>Hi, I downloaded the image linking file, but there enclosed was only one .php file, and no read me instructions (I did not find any clues after activating the program, under options, files, etc&#8230;.) I know you mention a requisite image folder not included with the zip. folder. can you supply more info. or a link to more info? thanks, i am new at wordpress.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CypherHackz</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-14336</link>
		<dc:creator>CypherHackz</dc:creator>
		<pubDate>Tue, 05 Sep 2006 05:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-14336</guid>
		<description>sorry dude... your comments trapped by my akismet plugin. i have un-spammed all of your comments. :d</description>
		<content:encoded><![CDATA[<p>sorry dude&#8230; your comments trapped by my akismet plugin. i have un-spammed all of your comments. <img src='http://www.cypherhackz.net/smilies/yahoo_bigsmile.gif' alt='&#58;&#100;' class='wp-smiley' width='18' height='18' title='&#58;&#100;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mykad</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-14326</link>
		<dc:creator>mykad</dc:creator>
		<pubDate>Mon, 04 Sep 2006 17:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-14326</guid>
		<description>ok I give up</description>
		<content:encoded><![CDATA[<p>ok I give up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mykad</title>
		<link>http://www.cypherhackz.net/archives/2005/06/29/simple-image-linking-v101/#comment-14325</link>
		<dc:creator>mykad</dc:creator>
		<pubDate>Mon, 04 Sep 2006 17:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cypherhackz.net/?p=32#comment-14325</guid>
		<description>I'm sorry I seem to be cluttering up the comments section.  I thought I sent the code in a previous comment, but now I don't see it.  Here is the correct code (no need to add /*).

&#60;?php
/*

HOW TO USE:
Just use this tag in your post

[slink img=image-name.jpg height=100 border=2 vspace=5 hspace=5 align=left]

*/


function cypher_simplelink($content) {

    global $post;

    $pic_folder = 'wp-content/uploads/admin';   //images folder

    $n = preg_match_all("/\[slink.*\]/i", $content, $matches);

    for($j=0;$j&#60;$n;$j++) {
       $pic_width = "";
       $pic_height = "";
       $pic_align = "";
       $pic_vspace = "";
       $pic_hspace = "";
       $pic_border = "";
	
       $replace = $matches[0][$j];
	   
       if(preg_match("/\simg=(\S*?)[\]\s]/i", $replace, $picmatch)) {
          $pic_file = $picmatch[1];

          if (preg_match("/\swidth=(\S*?)[\]\s]/i", $replace, $picwidth)){         
             $pic_width = $picwidth[1];
          }

          if (preg_match("/\sheight=(\S*?)[\]\s]/i", $replace, $picheight)){
             $pic_height = $picheight[1];
          }

          if (preg_match("/\salign=(\S*?)[\]\s]/i", $replace, $picalign)){
             $pic_align = $picalign[1];
          }

          if (preg_match("/\svspace=(\S*?)[\]\s]/i", $replace, $picvspace)){
             $pic_vspace = $picvspace[1];
          }

          if (preg_match("/\shspace=(\S*?)[\]\s]/i", $replace, $pichspace)){
             $pic_hspace = $pichspace[1];
          }

          if (preg_match("/\sborder=(\S*?)[\]\s]/i", $replace, $picborder)){
             $pic_border = $picborder[1];
          }

       }
       
       $pic_link = "&#60;a href=\"" . get_settings('siteurl') . "/" . $pic_folder . "/" . $pic_file . 
	           "\" target=\"_blank\"&#62;&#60;img src=\"" . get_settings('siteurl') . "/" . 
                   $pic_folder . "/" . $pic_file .
                   "\" $pic_width . 
                   "\" height=\"" . $pic_height .
                   "\" align=\"". $pic_align .           
                   "\" vspace=\"". $pic_vspace .  
                   "\" hspace=\"". $pic_hspace .
                   "\" border=\"" . $pic_border . "\"/&#62;&#60;/a&#62;";

       $content = str_replace($replace, $pic_link, $content);
    } // for
    
	return $content;
}

add_filter('the_content', 'cypher_simplelink', 10);

?&#62;</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry I seem to be cluttering up the comments section.  I thought I sent the code in a previous comment, but now I don&#8217;t see it.  Here is the correct code (no need to add /*).</p>
<p>&lt;?php<br />
/*</p>
<p>HOW TO USE:<br />
Just use this tag in your post</p>
<p>[slink img=image-name.jpg height=100 border=2 vspace=5 hspace=5 align=left]</p>
<p>*/</p>
<p>function cypher_simplelink($content) {</p>
<p>    global $post;</p>
<p>    $pic_folder = &#8216;wp-content/uploads/admin&#8217;;   //images folder</p>
<p>    $n = preg_match_all(&#8221;/\[slink.*\]/i&#8221;, $content, $matches);</p>
<p>    for($j=0;$j&lt;$n;$j++) {<br />
       $pic_width = &#8220;&#8221;;<br />
       $pic_height = &#8220;&#8221;;<br />
       $pic_align = &#8220;&#8221;;<br />
       $pic_vspace = &#8220;&#8221;;<br />
       $pic_hspace = &#8220;&#8221;;<br />
       $pic_border = &#8220;&#8221;;</p>
<p>       $replace = $matches[0][$j];</p>
<p>       if(preg_match(&#8221;/\simg=(\S*?)[\]\s]/i&#8221;, $replace, $picmatch)) {<br />
          $pic_file = $picmatch[1];</p>
<p>          if (preg_match(&#8221;/\swidth=(\S*?)[\]\s]/i&#8221;, $replace, $picwidth)){<br />
             $pic_width = $picwidth[1];<br />
          }</p>
<p>          if (preg_match(&#8221;/\sheight=(\S*?)[\]\s]/i&#8221;, $replace, $picheight)){<br />
             $pic_height = $picheight[1];<br />
          }</p>
<p>          if (preg_match(&#8221;/\salign=(\S*?)[\]\s]/i&#8221;, $replace, $picalign)){<br />
             $pic_align = $picalign[1];<br />
          }</p>
<p>          if (preg_match(&#8221;/\svspace=(\S*?)[\]\s]/i&#8221;, $replace, $picvspace)){<br />
             $pic_vspace = $picvspace[1];<br />
          }</p>
<p>          if (preg_match(&#8221;/\shspace=(\S*?)[\]\s]/i&#8221;, $replace, $pichspace)){<br />
             $pic_hspace = $pichspace[1];<br />
          }</p>
<p>          if (preg_match(&#8221;/\sborder=(\S*?)[\]\s]/i&#8221;, $replace, $picborder)){<br />
             $pic_border = $picborder[1];<br />
          }</p>
<p>       }</p>
<p>       $pic_link = &#8220;&lt;a href=\&#8221;" . get_settings(&#8217;siteurl&#8217;) . &#8220;/&#8221; . $pic_folder . &#8220;/&#8221; . $pic_file .<br />
	           &#8220;\&#8221; target=\&#8221;_blank\&#8221;&gt;&lt;img src=\&#8221;" . get_settings(&#8217;siteurl&#8217;) . &#8220;/&#8221; .<br />
                   $pic_folder . &#8220;/&#8221; . $pic_file .<br />
                   &#8220;\&#8221; $pic_width .<br />
                   &#8220;\&#8221; height=\&#8221;" . $pic_height .<br />
                   &#8220;\&#8221; align=\&#8221;". $pic_align .<br />
                   &#8220;\&#8221; vspace=\&#8221;". $pic_vspace .<br />
                   &#8220;\&#8221; hspace=\&#8221;". $pic_hspace .<br />
                   &#8220;\&#8221; border=\&#8221;" . $pic_border . &#8220;\&#8221;/&gt;&lt;/a&gt;&#8221;;</p>
<p>       $content = str_replace($replace, $pic_link, $content);<br />
    } // for</p>
<p>	return $content;<br />
}</p>
<p>add_filter(&#8217;the_content&#8217;, &#8216;cypher_simplelink&#8217;, 10);</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
