<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>Hi Ahmad:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff 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 class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>Or we have no idea the change is reasonable or 
not.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>Mark</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=zh-tw dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> plog-svn-bounces@devel.lifetype.net 
  [mailto:plog-svn-bounces@devel.lifetype.net] <B>On Behalf Of </B>Ahmad 
  Saleh<BR><B>Sent:</B> Tuesday, June 12, 2007 6:47 PM<BR><B>To:</B> 
  plog-svn@devel.lifetype.net<BR><B>Subject:</B> Re: [pLog-svn] dynamic 
  plugins<BR></FONT><BR></DIV>
  <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">oscar@renalias.net</A>&gt; wrote:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I 
    think that providing plugins that change core files is not a good <BR>idea, 
    we'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">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">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'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">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's<BR>&gt; &gt; &gt; cached because it doesn'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't work. The<BR>&gt; &gt; &gt; plugin will be 
    there and trying to run, but it'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">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">pLog-svn@devel.lifetype.net</A><BR>&gt; 
    &gt; &gt; &gt; <A 
    href="http://limedaley.com/mailman/listinfo/plog-svn">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">pLog-svn@devel.lifetype.net</A><BR>&gt; 
    &gt; &gt; <A 
    href="http://limedaley.com/mailman/listinfo/plog-svn">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">pLog-svn@devel.lifetype.net 
    </A><BR>&gt; <A 
    href="http://limedaley.com/mailman/listinfo/plog-svn">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">pLog-svn@devel.lifetype.net</A><BR><A 
    href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>