<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Display PDF using Thickbox in a WordPress plugin</title>
	<atom:link href="http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 07:38:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Avinash Kabra</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10855</link>
		<dc:creator>Avinash Kabra</dc:creator>
		<pubDate>Tue, 12 Mar 2013 05:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10855</guid>
		<description><![CDATA[Nice Plugin. Happy to come across it. Thanks for sharing it.]]></description>
		<content:encoded><![CDATA[<p>Nice Plugin. Happy to come across it. Thanks for sharing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melanie</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10848</link>
		<dc:creator>Melanie</dc:creator>
		<pubDate>Tue, 05 Mar 2013 15:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10848</guid>
		<description><![CDATA[I am trying to display multiple pdf&#039;s on a single page and used the following code provided by &#039;Beany&#039; in May, 2012

Unfortunately the pdfs now open in a new page instead of a preview iframe/box.

Any suggestions on how to fix this issue?

Thanks

function ilc_pdfbox_thecontent ($content){
    global $post;
    global $pdfbox_width;
    global $pdfbox_height;
     
    $pdfbox_height_plus = $pdfbox_height + 15;
    $pdfbox_height += 35;
 
    $pattern = &quot;/&lt;a&gt;]*).(pdf)(&#039;&#124;\&quot;)(.*?)&gt;(.*?)/i&quot;;
    $replacement = &#039;&lt;a href=&quot;#TB_inline?height=&#039;.$pdfbox_height.&#039;&amp;width=&#039;.$pdfbox_width.&#039;&amp;inlineId=ilc_pdfbox_##&quot; rel=&quot;nofollow&quot;&gt;Launch PDF file.&lt;/a&gt;
        &#039;;
    preg_match_all($pattern,$content,$matches);
    foreach($matches[0] as $k=&gt;$v){
        $new_v = preg_replace($pattern, $replacement, $v);
        $new_v = preg_replace(&quot;!##!&quot;, $k, $new_v);
        $content = preg_replace(&quot;!&quot;.preg_quote($v).&quot;!&quot;, $new_v, $content);
    }
    return $content;
}]]></description>
		<content:encoded><![CDATA[<p>I am trying to display multiple pdf&#8217;s on a single page and used the following code provided by &#8216;Beany&#8217; in May, 2012</p>
<p>Unfortunately the pdfs now open in a new page instead of a preview iframe/box.</p>
<p>Any suggestions on how to fix this issue?</p>
<p>Thanks</p>
<p>function ilc_pdfbox_thecontent ($content){<br />
    global $post;<br />
    global $pdfbox_width;<br />
    global $pdfbox_height;</p>
<p>    $pdfbox_height_plus = $pdfbox_height + 15;<br />
    $pdfbox_height += 35;</p>
<p>    $pattern = &#8220;/<a>]*).(pdf)(&#8216;|\&#8221;)(.*?)&gt;(.*?)/i&#8221;;<br />
    $replacement = &#8216;</a><a href="#TB_inline?height='.$pdfbox_height.'&amp;width='.$pdfbox_width.'&amp;inlineId=ilc_pdfbox_##" rel="nofollow">Launch PDF file.</a><br />
        &#8216;;<br />
    preg_match_all($pattern,$content,$matches);<br />
    foreach($matches[0] as $k=&gt;$v){<br />
        $new_v = preg_replace($pattern, $replacement, $v);<br />
        $new_v = preg_replace(&#8220;!##!&#8221;, $k, $new_v);<br />
        $content = preg_replace(&#8220;!&#8221;.preg_quote($v).&#8221;!&#8221;, $new_v, $content);<br />
    }<br />
    return $content;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawna</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10787</link>
		<dc:creator>Shawna</dc:creator>
		<pubDate>Sun, 20 Jan 2013 16:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10787</guid>
		<description><![CDATA[I am having the same problem as Paco I want to redirect back to the page the user was on but when I click the x I get a blank page.]]></description>
		<content:encoded><![CDATA[<p>I am having the same problem as Paco I want to redirect back to the page the user was on but when I click the x I get a blank page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paco</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10783</link>
		<dc:creator>Paco</dc:creator>
		<pubDate>Thu, 17 Jan 2013 20:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10783</guid>
		<description><![CDATA[Hello. The plugin works perfectly in chrome. But iexplorer, when you open the pdf, is going well. But to close the thickbox main page, which was background goes blank, and you have to reload. Could you give me a solution, please?]]></description>
		<content:encoded><![CDATA[<p>Hello. The plugin works perfectly in chrome. But iexplorer, when you open the pdf, is going well. But to close the thickbox main page, which was background goes blank, and you have to reload. Could you give me a solution, please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paco</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10782</link>
		<dc:creator>Paco</dc:creator>
		<pubDate>Thu, 17 Jan 2013 06:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10782</guid>
		<description><![CDATA[Hola. El plugin funciona perfectamente en chrome. Pero en iexplorer, cuando abres el pdf, va muy bien. Pero al cerrar el thickbox la pagina principal, que estaba de fondo, se queda en blanco, y hay que volver a cargarla. ¿Podría darme una solución, por favor?]]></description>
		<content:encoded><![CDATA[<p>Hola. El plugin funciona perfectamente en chrome. Pero en iexplorer, cuando abres el pdf, va muy bien. Pero al cerrar el thickbox la pagina principal, que estaba de fondo, se queda en blanco, y hay que volver a cargarla. ¿Podría darme una solución, por favor?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitris</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10576</link>
		<dc:creator>Dimitris</dc:creator>
		<pubDate>Sat, 22 Sep 2012 12:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10576</guid>
		<description><![CDATA[Ok solved, it was messing with another plugin:)]]></description>
		<content:encoded><![CDATA[<p>Ok solved, it was messing with another plugin:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitris</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10574</link>
		<dc:creator>Dimitris</dc:creator>
		<pubDate>Fri, 21 Sep 2012 14:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10574</guid>
		<description><![CDATA[Hi Elio, thank you for the plugin! I installed it but when I tried to deactivate it I realized that it messes up with the menu of the site: The submenus cannot be clicked anymore, since when I try to click on them after hovering their parent menu, they just disappear. When I activate the plugin, the menu works again normally. So in order to have the website running I must have the plugin active. Any ideas what part of the plugin s causing this and the way to fix it? Thank you in advance for your time and help]]></description>
		<content:encoded><![CDATA[<p>Hi Elio, thank you for the plugin! I installed it but when I tried to deactivate it I realized that it messes up with the menu of the site: The submenus cannot be clicked anymore, since when I try to click on them after hovering their parent menu, they just disappear. When I activate the plugin, the menu works again normally. So in order to have the website running I must have the plugin active. Any ideas what part of the plugin s causing this and the way to fix it? Thank you in advance for your time and help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Test to display eBooks (pdf) within Wordpress Website &#8249;&#8249; Website Design in Weston-super-Mare</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10557</link>
		<dc:creator>Test to display eBooks (pdf) within Wordpress Website &#8249;&#8249; Website Design in Weston-super-Mare</dc:creator>
		<pubDate>Fri, 14 Sep 2012 13:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10557</guid>
		<description><![CDATA[[...] plugin comes from the I Love Colors site  and is slightly different to the above, whereby it does not display the PDF within the document, [...]]]></description>
		<content:encoded><![CDATA[<p>[...] plugin comes from the I Love Colors site  and is slightly different to the above, whereby it does not display the PDF within the document, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-10251</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Wed, 04 Apr 2012 17:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-10251</guid>
		<description><![CDATA[When i want to display tree pdf on one page i cant i get this error - Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 5 in C:\wamp\www\mp\wp-content\plugins\ilc-pdfbox\pdfbox.php on line 54


function ilc_pdfbox_thecontent ($content){
    global $post;
    global $pdfbox_width;
    global $pdfbox_height;
 
    $pdfbox_height_plus = $pdfbox_height + 15;
    $pdfbox_height += 35;
 
    $pattern = &quot;/&lt;a&gt;]*).(pdf)(&#039;&#124;\&quot;)(.*?)&gt;(.*?)/i&quot;;
    $replacement = &#039;&lt;a href=&quot;#TB_inline?height=&#039;.$pdfbox_height.&#039;&amp;width=&#039;.$pdfbox_width.&#039;&amp;inlineId=ilc_pdfbox_##&quot; rel=&quot;nofollow&quot;&gt;Launch PDF file.&lt;/a&gt;
        &#039;;
    preg_match_all($pattern,$content,$matches);
    foreach($matches[0] as $k=&gt;$v){
        $new_v = preg_replace($pattern, $replacement, $v);
        $new_v = preg_replace(&quot;!##!&quot;, $k, $new_v);
        $content = preg_replace(&quot;!&quot;.preg_quote($v).&quot;!&quot;, $new_v, $content);
    }
    return $content;
}]]></description>
		<content:encoded><![CDATA[<p>When i want to display tree pdf on one page i cant i get this error &#8211; Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 5 in C:\wamp\www\mp\wp-content\plugins\ilc-pdfbox\pdfbox.php on line 54</p>
<p>function ilc_pdfbox_thecontent ($content){<br />
    global $post;<br />
    global $pdfbox_width;<br />
    global $pdfbox_height;</p>
<p>    $pdfbox_height_plus = $pdfbox_height + 15;<br />
    $pdfbox_height += 35;</p>
<p>    $pattern = &#8220;/<a>]*).(pdf)(&#8216;|\&#8221;)(.*?)&gt;(.*?)/i&#8221;;<br />
    $replacement = &#8216;</a><a href="#TB_inline?height='.$pdfbox_height.'&amp;width='.$pdfbox_width.'&amp;inlineId=ilc_pdfbox_##" rel="nofollow">Launch PDF file.</a><br />
        &#8216;;<br />
    preg_match_all($pattern,$content,$matches);<br />
    foreach($matches[0] as $k=&gt;$v){<br />
        $new_v = preg_replace($pattern, $replacement, $v);<br />
        $new_v = preg_replace(&#8220;!##!&#8221;, $k, $new_v);<br />
        $content = preg_replace(&#8220;!&#8221;.preg_quote($v).&#8221;!&#8221;, $new_v, $content);<br />
    }<br />
    return $content;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias</title>
		<link>http://www.ilovecolors.com.ar/wordpress-thickbox-pdf/#comment-9564</link>
		<dc:creator>Matias</dc:creator>
		<pubDate>Thu, 13 Oct 2011 02:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilovecolors.com.ar/?p=1874#comment-9564</guid>
		<description><![CDATA[Hey! this works GRET! BUUUUTT somehow, FireFox tries to download the PDF when i access the page. how do i prevent firefox from downloading the PDF?? thanks!!!]]></description>
		<content:encoded><![CDATA[<p>Hey! this works GRET! BUUUUTT somehow, FireFox tries to download the PDF when i access the page. how do i prevent firefox from downloading the PDF?? thanks!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
