See the attached file<br><br>Regards,<br>&nbsp;&nbsp; Ahmad<br><br><div><span class="gmail_quote">On 6/12/07, <b class="gmail_sendername">Mark Wu</b> &lt;<a href="mailto:markplace@gmail.com">markplace@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2">Hi Ahmad:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2">Maybe you can send to&nbsp;this mailing list first. Then we 
can have a detail look at it and&nbsp;discuss with you&nbsp; about how to 
integrate( or not to integrate) those files to the core.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2">Or we have no idea the change is reasonable or 
not.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="新細明體" size="2">Mark</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="zh-tw">
  <hr>
  <font face="Tahoma" size="2"><b>From:</b> <a href="mailto:plog-svn-bounces@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">plog-svn-bounces@devel.lifetype.net</a> 
  [mailto:<a href="mailto:plog-svn-bounces@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">plog-svn-bounces@devel.lifetype.net</a>] <b>On Behalf Of </b>Ahmad 
  Saleh<br><b>Sent:</b> Tuesday, June 12, 2007 6:47 PM<br><b>To:</b> 
  <a href="mailto:plog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">plog-svn@devel.lifetype.net</a><br><b>Subject:</b> Re: [pLog-svn] dynamic 
  plugins<br></font><br></div><div><span class="e" id="q_1131f920c2c076d5_1">
  <div></div>the problem here that this plugin object must send in each request, 
  but if this template is cached then it will not be send.<br><br><br>
  <div><span class="gmail_quote">On 6/12/07, <b class="gmail_sendername">Oscar 
  Renalias</b> &lt;<a href="mailto:oscar@renalias.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">oscar@renalias.net</a>&gt; wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I 
    think that providing plugins that change core files is not a good <br>idea, 
    we&#39;re unfortunately not going to support a bunch of people<br>running around 
    with core code changes.<br><br>Was there really no other way to implement 
    this, than to modify core code?<br><br>On 6/12/07, Ahmad Saleh &lt; <a href="mailto:ahmadfds@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ahmadfds@gmail.com</a>&gt; wrote:<br>&gt; I 
    have finished Crystal Poll plugin but if any one want to use it<br>&gt; he 
    must make above changes which we talked about, so that I include this 3 
    <br>&gt; files in (core files) folder . is that acceptance for 
    you?<br>&gt;<br>&gt; 
    Regards,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ahmad<br>&gt;<br>&gt;<br>&gt; 
    On 6/5/07, Ahmad Saleh &lt;<a href="mailto:ahmadfds@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ahmadfds@gmail.com</a> &gt; wrote:<br>&gt; 
    &gt; another thing,<br>&gt; &gt; I made test plugin that have getTest 
    function which rerturn random number<br>&gt; &gt; isDynamic field of this 
    plugin have true value<br>&gt; &gt; then I call it in footer.template like 
    this:<br>&gt; &gt;<br>&gt; &gt; { dynamic}<br>&gt; &gt; 
    {$test-&gt;getTest()}<br>&gt; &gt; {/dynamic}<br>&gt; &gt;<br>&gt; &gt; and 
    it&#39;s worked without any problem.<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; 
    &gt;&nbsp;&nbsp;&nbsp;&nbsp; Ahmad <br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 
    On 6/4/07, Oscar Renalias &lt; <a href="mailto:oscar@renalias.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">oscar@renalias.net</a>&gt; wrote:<br>&gt; 
    &gt;<br>&gt; &gt; &gt; Well this sounds like a reasonable approach... but I 
    see at least one <br>&gt; problem.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; When 
    a page is cached, currently its data is not loaded. So for<br>&gt; &gt; &gt; 
    example $posts and $blog are not available in main.template when 
    it&#39;s<br>&gt; &gt; &gt; cached because it doesn&#39;t make any sense to load that 
    data anymore. So <br>&gt; &gt; &gt; if you develop a plugin that registers 
    itself as dynamic and depends<br>&gt; &gt; &gt; in any of the data that is 
    not available anymore, this won&#39;t work. The<br>&gt; &gt; &gt; plugin will be 
    there and trying to run, but it&#39;s data will not. <br>&gt; &gt; &gt;<br>&gt; 
    &gt; &gt; But before we dig deeper into this, can anybody list any examples 
    of<br>&gt; &gt; &gt; plugins that would *really* benefit of running even in 
    cached pages<br>&gt; &gt; &gt; (other than a plugin that would list the 
    number of users currently <br>&gt; &gt; &gt; logged in)<br>&gt; &gt; 
    &gt;<br>&gt; &gt; &gt; Oscar<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 6/3/07, 
    Ahmad Saleh &lt;<a href="mailto:ahmadfds@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ahmadfds@gmail.com</a>&gt; wrote:<br>&gt; 
    &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; 
    &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; 1) Add 
    ($isDynamic = false) field in PluginBase class.<br>&gt; &gt; &gt; &gt; &gt; 
    2) just add function (getDynamicPlugins()) that return only dynamic <br>&gt; 
    &gt; &gt; &gt; plugins<br>&gt; &gt; &gt; &gt; without changing any thing in 
    getPlugins() function.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; 
    &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; 
    3) in BlogView class: <br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; 
    &gt; &gt; &gt; sorry about this mistake :)<br>&gt; &gt; &gt; &gt;<br>&gt; 
    &gt; &gt; &gt; Regards,<br>&gt; &gt; &gt; 
    &gt;&nbsp;&nbsp;&nbsp;&nbsp;Ahmad<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; 
    &gt; <br>&gt; &gt; &gt; &gt; 
    _______________________________________________<br>&gt; &gt; &gt; &gt; 
    pLog-svn mailing list<br>&gt; &gt; &gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pLog-svn@devel.lifetype.net</a><br>&gt; 
    &gt; &gt; &gt; <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://limedaley.com/mailman/listinfo/plog-svn</a><br>&gt; 
    &gt; &gt; &gt;<br>&gt; &gt; &gt; 
    _______________________________________________<br>&gt; &gt; &gt; pLog-svn 
    mailing list <br>&gt; &gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pLog-svn@devel.lifetype.net</a><br>&gt; 
    &gt; &gt; <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://limedaley.com/mailman/listinfo/plog-svn</a> 
    <br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; 
    _______________________________________________<br>&gt; pLog-svn mailing 
    list<br>&gt; <a href="mailto:pLog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pLog-svn@devel.lifetype.net 
    </a><br>&gt; <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://limedaley.com/mailman/listinfo/plog-svn</a><br>&gt;<br>_______________________________________________
<br>pLog-svn 
    mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote></div><br></span></div></blockquote></div>
<br>_______________________________________________<br>pLog-svn mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">
http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote></div><br>