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="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">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&#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">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">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>