<?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 for Made in Paté</title>
	<atom:link href="http://djpate.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://djpate.com</link>
	<description>A do-it yourself blog</description>
	<lastBuildDate>Wed, 22 Feb 2012 08:06:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Animated scroll to anchor/id function with jQuery by elbee</title>
		<link>http://djpate.com/2009/10/07/animated-scroll-to-anchorid-function-with-jquery/comment-page-2/#comment-41120</link>
		<dc:creator>elbee</dc:creator>
		<pubDate>Wed, 22 Feb 2012 08:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=186#comment-41120</guid>
		<description>I have to unsubscribe to this,  by the  way, I solved my problem, can&#039;t believe it was so simple!</description>
		<content:encoded><![CDATA[<p>I have to unsubscribe to this,  by the  way, I solved my problem, can&#8217;t believe it was so simple!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to generate a word docx from a template with PHP ? by Christophe Verbinnen</title>
		<link>http://djpate.com/2011/05/18/how-to-generate-a-word-docx-from-a-template-with-php/comment-page-1/#comment-40857</link>
		<dc:creator>Christophe Verbinnen</dc:creator>
		<pubDate>Fri, 17 Feb 2012 22:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=427#comment-40857</guid>
		<description>can you do a pull request on github?</description>
		<content:encoded><![CDATA[<p>can you do a pull request on github?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to generate a word docx from a template with PHP ? by Benoît</title>
		<link>http://djpate.com/2011/05/18/how-to-generate-a-word-docx-from-a-template-with-php/comment-page-1/#comment-40573</link>
		<dc:creator>Benoît</dc:creator>
		<pubDate>Tue, 14 Feb 2012 15:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=427#comment-40573</guid>
		<description>About your problem to add image, i resolved the problem with these steps:
1- Declare in template docx image file with name FILE.png
2- Define docx object and add parameter with assignNestedBlock or assignBlock:
$phpdocx-&gt;assignNestedBlock(&quot;imgmodels&quot;,array(array(&quot;FILE.png&quot;=&gt;&quot;$entry&quot;)),array(&quot;files&quot;=&gt;1));
3- Add the image in media/ directory by using:
$phpdocx-&gt;addImage(&quot;$entry&quot;,$dir . &quot;/&quot; . $entry);

For that, i modified your class in assignNestedBlock() and assignBlock() functions by adding the following lines:
foreach($row as $id =&gt; $val){
# If Id is image, it gets the reference id to be replaced by the value
if (preg_match(&quot;/img/&quot;,$blockname)) {
   if (preg_match(&quot;/name=\&quot;$id\&quot;.+r:embed=\&quot;(\S+)\&quot; cstate=\&quot;print\&quot;/&quot;,$current_block,$matcharray)) {
    $id = $matcharray[1];
   // The keyword phpdocx_ is added by addImage function
    $val = &quot;phpdocx_&quot; . $val;
}
 $current_block = str_replace(&quot;\&quot;$id\&quot;&quot;,&quot;\&quot;&quot; . $this-&gt;filter($val) . &quot;\&quot;&quot;,$current_block);
} else {
$current_block = str_replace($id,$this-&gt;filter($val),$current_block);
}
}

Thanks
Benoît</description>
		<content:encoded><![CDATA[<p>About your problem to add image, i resolved the problem with these steps:<br />
1- Declare in template docx image file with name FILE.png<br />
2- Define docx object and add parameter with assignNestedBlock or assignBlock:<br />
$phpdocx-&gt;assignNestedBlock(&#8220;imgmodels&#8221;,array(array(&#8220;FILE.png&#8221;=&gt;&#8221;$entry&#8221;)),array(&#8220;files&#8221;=&gt;1));<br />
3- Add the image in media/ directory by using:<br />
$phpdocx-&gt;addImage(&#8220;$entry&#8221;,$dir . &#8220;/&#8221; . $entry);</p>
<p>For that, i modified your class in assignNestedBlock() and assignBlock() functions by adding the following lines:<br />
foreach($row as $id =&gt; $val){<br />
# If Id is image, it gets the reference id to be replaced by the value<br />
if (preg_match(&#8220;/img/&#8221;,$blockname)) {<br />
   if (preg_match(&#8220;/name=\&#8221;$id\&#8221;.+r:embed=\&#8221;(\S+)\&#8221; cstate=\&#8221;print\&#8221;/&#8221;,$current_block,$matcharray)) {<br />
    $id = $matcharray[1];<br />
   // The keyword phpdocx_ is added by addImage function<br />
    $val = &#8220;phpdocx_&#8221; . $val;<br />
}<br />
 $current_block = str_replace(&#8220;\&#8221;$id\&#8221;",&#8221;\&#8221;" . $this-&gt;filter($val) . &#8220;\&#8221;",$current_block);<br />
} else {<br />
$current_block = str_replace($id,$this-&gt;filter($val),$current_block);<br />
}<br />
}</p>
<p>Thanks<br />
Benoît</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to generate a word docx from a template with PHP ? by Benoît</title>
		<link>http://djpate.com/2011/05/18/how-to-generate-a-word-docx-from-a-template-with-php/comment-page-1/#comment-40571</link>
		<dc:creator>Benoît</dc:creator>
		<pubDate>Tue, 14 Feb 2012 14:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=427#comment-40571</guid>
		<description>Hello,
Thanks very much for your class !

I need to customize header then i modify the class with the following line:
Save() function:
$this-&gt;content = file_get_contents($this-&gt;tmpDir.&quot;/word/document.xml&quot;);
// Parameters can be used in header
$this-&gt;header = file_get_contents($this-&gt;tmpDir.&quot;/word/header1.xml&quot;);
$this-&gt;clean();
			
$this-&gt;content = $this-&gt;parseBlocks($this-&gt;content);
						
foreach($this-&gt;assigned_field as $field =&gt; $value){
	$this-&gt;content = str_replace($field,$value,$this-&gt;content);
        $this-&gt;header = str_replace($field,$value,$this-&gt;header);
}

compact() function:
file_put_contents($this-&gt;tmpDir.&quot;/word/header1.xml&quot;,$this-&gt;header);

Thanks !
Benoît</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Thanks very much for your class !</p>
<p>I need to customize header then i modify the class with the following line:<br />
Save() function:<br />
$this-&gt;content = file_get_contents($this-&gt;tmpDir.&#8221;/word/document.xml&#8221;);<br />
// Parameters can be used in header<br />
$this-&gt;header = file_get_contents($this-&gt;tmpDir.&#8221;/word/header1.xml&#8221;);<br />
$this-&gt;clean();</p>
<p>$this-&gt;content = $this-&gt;parseBlocks($this-&gt;content);</p>
<p>foreach($this-&gt;assigned_field as $field =&gt; $value){<br />
	$this-&gt;content = str_replace($field,$value,$this-&gt;content);<br />
        $this-&gt;header = str_replace($field,$value,$this-&gt;header);<br />
}</p>
<p>compact() function:<br />
file_put_contents($this-&gt;tmpDir.&#8221;/word/header1.xml&#8221;,$this-&gt;header);</p>
<p>Thanks !<br />
Benoît</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jTag : A jQuery plugin to tag pictures &amp; more ! by rahadyan</title>
		<link>http://djpate.com/2011/01/14/jtag-a-jquery-plugin-to-tag-pictures-more/comment-page-1/#comment-40485</link>
		<dc:creator>rahadyan</dc:creator>
		<pubDate>Mon, 13 Feb 2012 15:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=373#comment-40485</guid>
		<description>i can&#039;t syn with live() jquery function ???, please help</description>
		<content:encoded><![CDATA[<p>i can&#8217;t syn with live() jquery function ???, please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jTag : A jQuery plugin to tag pictures &amp; more ! by web2sol</title>
		<link>http://djpate.com/2011/01/14/jtag-a-jquery-plugin-to-tag-pictures-more/comment-page-1/#comment-40256</link>
		<dc:creator>web2sol</dc:creator>
		<pubDate>Sat, 11 Feb 2012 13:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=373#comment-40256</guid>
		<description>hello all, i m hving problem with addtag , i need to save tag for picture, picture tag is saved ok, values are taken ok based on id of pic, but addtag not working for me to make tag, i see when i put alert and alert comes, i may wait for site to be loaded fully and then press ok of alert , it then show some tags, i m not known with jquery development therefore having issue, but i know that there is some little bug only. please help me</description>
		<content:encoded><![CDATA[<p>hello all, i m hving problem with addtag , i need to save tag for picture, picture tag is saved ok, values are taken ok based on id of pic, but addtag not working for me to make tag, i see when i put alert and alert comes, i may wait for site to be loaded fully and then press ok of alert , it then show some tags, i m not known with jquery development therefore having issue, but i know that there is some little bug only. please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on gmail, yahoo &amp; live messenger contact inviter script by Plaincraz</title>
		<link>http://djpate.com/2010/12/18/gmail-yahoo-live-contact-inviter-script/comment-page-1/#comment-39517</link>
		<dc:creator>Plaincraz</dc:creator>
		<pubDate>Sun, 05 Feb 2012 18:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=283#comment-39517</guid>
		<description>Hi There,

Even the demo is not working for all emails. Is there a new updated method?</description>
		<content:encoded><![CDATA[<p>Hi There,</p>
<p>Even the demo is not working for all emails. Is there a new updated method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write a complete OAuth Provider in PHP5 by daryl</title>
		<link>http://djpate.com/2011/01/13/how-to-write-a-complete-oauth-provider-in-php5/comment-page-1/#comment-39263</link>
		<dc:creator>daryl</dc:creator>
		<pubDate>Fri, 03 Feb 2012 03:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=369#comment-39263</guid>
		<description>Hi Trey,

I have the same problem.
Its got some \n characters in the $info array in the index file. Must be a bug of some sort. 

my quick fix was this:
in client/index.php
$info = $oauth_client-&gt;getRequestToken(&quot;http://localhost:8089/oauth/request_token?oauth_callback=http://localhost:8089/client/callback.php&quot;);
//hack cuz some weird shit was happening with the authentification_url array key. 
$info2 = array();
foreach ($info as $key =&gt; $vagkef)
{
    $key = str_replace(&quot;\n&quot;, &quot;&quot;, $key);
    $info2[$key] = $vagkef; 
}
$info = $info2;
//END HACK



Now i am on the next screen fiddling with the client.. I think i nearly have my system sorted.. I just need to understand the access part.</description>
		<content:encoded><![CDATA[<p>Hi Trey,</p>
<p>I have the same problem.<br />
Its got some \n characters in the $info array in the index file. Must be a bug of some sort. </p>
<p>my quick fix was this:<br />
in client/index.php<br />
$info = $oauth_client-&gt;getRequestToken(&#8220;http://localhost:8089/oauth/request_token?oauth_callback=http://localhost:8089/client/callback.php&#8221;);<br />
//hack cuz some weird shit was happening with the authentification_url array key.<br />
$info2 = array();<br />
foreach ($info as $key =&gt; $vagkef)<br />
{<br />
    $key = str_replace(&#8220;\n&#8221;, &#8220;&#8221;, $key);<br />
    $info2[$key] = $vagkef;<br />
}<br />
$info = $info2;<br />
//END HACK</p>
<p>Now i am on the next screen fiddling with the client.. I think i nearly have my system sorted.. I just need to understand the access part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ajax notification messages MSN style by francis</title>
		<link>http://djpate.com/2009/08/02/ajax-notification-messages-msn-style/comment-page-1/#comment-39046</link>
		<dc:creator>francis</dc:creator>
		<pubDate>Wed, 01 Feb 2012 08:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=49#comment-39046</guid>
		<description>thnx very much!it helps a lot!</description>
		<content:encoded><![CDATA[<p>thnx very much!it helps a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Animated scroll to anchor/id function with jQuery by Samson</title>
		<link>http://djpate.com/2009/10/07/animated-scroll-to-anchorid-function-with-jquery/comment-page-2/#comment-39032</link>
		<dc:creator>Samson</dc:creator>
		<pubDate>Wed, 01 Feb 2012 06:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=186#comment-39032</guid>
		<description>This works great. But how to use this if on my page i want to scroll inside a table and not the whole page....please help...
Thanks in advance!!</description>
		<content:encoded><![CDATA[<p>This works great. But how to use this if on my page i want to scroll inside a table and not the whole page&#8230;.please help&#8230;<br />
Thanks in advance!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

