So what you suggest?<br><br><br><div><span class="gmail_quote">On 6/12/07, <b class="gmail_sendername">Jon Daley</b> &lt;<a href="mailto:plogworld@jon.limedaley.com">plogworld@jon.limedaley.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;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Using {php} in the templates isn&#39;t that great - blog hosters won&#39;t<br>want to use it.<br><br>On Tue, 12 Jun 2007, Ahmad Saleh wrote:<br><br>&gt; I found a solution without changing any core file.<br>&gt;<br>
&gt; Regards,<br>&gt;&nbsp;&nbsp; Ahmad<br>&gt;<br>&gt; On 6/12/07, Ahmad Saleh &lt;<a href="mailto:ahmadfds@gmail.com">ahmadfds@gmail.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; See the attached file<br>&gt;&gt;<br>&gt;&gt; Regards,
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Ahmad<br>&gt;&gt;<br>&gt;&gt; On 6/12/07, Mark Wu &lt;<a href="mailto:markplace@gmail.com">markplace@gmail.com</a>&gt; wrote:<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;&nbsp;&nbsp;Hi Ahmad:<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Maybe you can send to this mailing list first. Then we can have a detail
<br>&gt;&gt; &gt; look at it and discuss with you&nbsp;&nbsp;about how to integrate( or not to<br>&gt;&gt; &gt; integrate) those files to the core.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Or we have no idea the change is reasonable or not.
<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Mark<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;&nbsp;&nbsp;------------------------------<br>&gt;&gt; &gt; *From:* <a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a>
 [mailto:<br>&gt;&gt; &gt; <a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a>] *On Behalf Of *Ahmad Saleh<br>&gt;&gt; &gt; *Sent:* Tuesday, June 12, 2007 6:47 PM<br>&gt;&gt; &gt; *To:* 
<a href="mailto:plog-svn@devel.lifetype.net">plog-svn@devel.lifetype.net</a><br>&gt;&gt; &gt; *Subject:* Re: [pLog-svn] dynamic plugins<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; the problem here that this plugin object must send in each request, but
<br>&gt;&gt; &gt; if this template is cached then it will not be send.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; On 6/12/07, Oscar Renalias &lt;<a href="mailto:oscar@renalias.net">oscar@renalias.net</a>&gt; wrote:
<br>&gt;&gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; I think that providing plugins that change core files is not a good<br>&gt;&gt; &gt; &gt; idea, we&#39;re unfortunately not going to support a bunch of people<br>&gt;&gt; &gt; &gt; running around with core code changes.
<br>&gt;&gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; Was there really no other way to implement this, than to modify core<br>&gt;&gt; &gt; &gt; code?<br>&gt;&gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; On 6/12/07, Ahmad Saleh &lt; <a href="mailto:ahmadfds@gmail.com">
ahmadfds@gmail.com</a>&gt; wrote:<br>&gt;&gt; &gt; &gt; &gt; I have finished Crystal Poll plugin but if any one want to use it<br>&gt;&gt; &gt; &gt; &gt; he must make above changes which we talked about, so that I include
<br>&gt;&gt; &gt; &gt; this 3<br>&gt;&gt; &gt; &gt; &gt; files in (core files) folder . is that acceptance for you?<br>&gt;&gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; Regards,<br>&gt;&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ahmad<br>&gt;&gt; &gt; &gt; &gt;
<br>&gt;&gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; On 6/5/07, Ahmad Saleh &lt;<a href="mailto:ahmadfds@gmail.com">ahmadfds@gmail.com</a> &gt; wrote:<br>&gt;&gt; &gt; &gt; &gt; &gt; another thing,<br>&gt;&gt; &gt; &gt; &gt; &gt; I made test plugin that have getTest function which rerturn random
<br>&gt;&gt; &gt; &gt; number<br>&gt;&gt; &gt; &gt; &gt; &gt; isDynamic field of this plugin have true value<br>&gt;&gt; &gt; &gt; &gt; &gt; then I call it in footer.template like this:<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; { dynamic}<br>&gt;&gt; &gt; &gt; &gt; &gt; {$test-&gt;getTest()}<br>&gt;&gt; &gt; &gt; &gt; &gt; {/dynamic}<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; and it&#39;s worked without any problem.
<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; Regards,<br>&gt;&gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Ahmad<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; On 6/4/07, Oscar Renalias &lt; 
<a href="mailto:oscar@renalias.net">oscar@renalias.net</a>&gt; wrote:<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; Well this sounds like a reasonable approach... but I see at<br>&gt;&gt; &gt; &gt; least one
<br>&gt;&gt; &gt; &gt; &gt; problem.<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; When a page is cached, currently its data is not loaded. So for<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; example $posts and $blog are not available in 
main.template when<br>&gt;&gt; &gt; &gt; it&#39;s<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; cached because it doesn&#39;t make any sense to load that data<br>&gt;&gt; &gt; &gt; anymore. So<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; if you develop a plugin that registers itself as dynamic and
<br>&gt;&gt; &gt; &gt; depends<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; in any of the data that is not available anymore, this won&#39;t<br>&gt;&gt; &gt; &gt; work. The<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; plugin will be there and trying to run, but it&#39;s data will not.
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; But before we dig deeper into this, can anybody list any<br>&gt;&gt; &gt; &gt; examples of<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; plugins that would *really* benefit of running even in cached
<br>&gt;&gt; &gt; &gt; pages<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; (other than a plugin that would list the number of users<br>&gt;&gt; &gt; &gt; currently<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; logged in)<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt;
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; Oscar<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &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; &gt; &gt; &gt; &gt;
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 1) Add ($isDynamic = false) field in PluginBase class.
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2) just add function (getDynamicPlugins()) that return only<br>&gt;&gt; &gt; &gt; dynamic<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; plugins<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; without changing any thing in getPlugins() function.
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 3) in BlogView class:
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; sorry about this mistake :)<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; Regards,
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;Ahmad<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; pLog-svn mailing list<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>&gt;&gt; &gt; &gt; &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; &gt; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________
<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; pLog-svn mailing list<br>&gt;&gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>&gt;&gt; &gt; &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; &gt; &gt; &gt;<br>&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt;&gt; &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; pLog-svn mailing list<br>&gt;&gt; &gt; &gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>&gt;&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; &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;<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;&gt;<br>&gt;<br><br>--<br>Jon Daley<br><a href="http://jon.limedaley.com/">http://jon.limedaley.com/</a><br><br>God humbled himself; that&#39;s a good place for us to start too.
<br>-- Dave Harvey<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>