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>
<<a href="mailto:oscar@renalias.net">oscar@renalias.net</a>> 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'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 <
<a href="mailto:ahmadfds@gmail.com">ahmadfds@gmail.com</a>> wrote:<br>> I have finished Crystal Poll plugin but if any one want to use it<br>> he must make above changes which we talked about, so that I include this 3
<br>> files in (core files) folder . is that acceptance for you?<br>><br>> Regards,<br>> Ahmad<br>><br>><br>> On 6/5/07, Ahmad Saleh <<a href="mailto:ahmadfds@gmail.com">ahmadfds@gmail.com</a>
> wrote:<br>> > another thing,<br>> > I made test plugin that have getTest function which rerturn random number<br>> > isDynamic field of this plugin have true value<br>> > then I call it in footer.template
like this:<br>> ><br>> > { dynamic}<br>> > {$test->getTest()}<br>> > {/dynamic}<br>> ><br>> > and it's worked without any problem.<br>> ><br>> > Regards,<br>> > Ahmad
<br>> ><br>> ><br>> > On 6/4/07, Oscar Renalias < <a href="mailto:oscar@renalias.net">oscar@renalias.net</a>> wrote:<br>> ><br>> > > Well this sounds like a reasonable approach... but I see at least one
<br>> problem.<br>> > ><br>> > > When a page is cached, currently its data is not loaded. So for<br>> > > example $posts and $blog are not available in main.template when it's<br>> > > cached because it doesn't make any sense to load that data anymore. So
<br>> > > if you develop a plugin that registers itself as dynamic and depends<br>> > > in any of the data that is not available anymore, this won't work. The<br>> > > plugin will be there and trying to run, but it's data will not.
<br>> > ><br>> > > But before we dig deeper into this, can anybody list any examples of<br>> > > plugins that would *really* benefit of running even in cached pages<br>> > > (other than a plugin that would list the number of users currently
<br>> > > logged in)<br>> > ><br>> > > Oscar<br>> > ><br>> > > On 6/3/07, Ahmad Saleh <<a href="mailto:ahmadfds@gmail.com">ahmadfds@gmail.com</a>> wrote:<br>> > > >
<br>> > > > ><br>> > > > ><br>> > > > ><br>> > > > > 1) Add ($isDynamic = false) field in PluginBase class.<br>> > > > > 2) just add function (getDynamicPlugins()) that return only dynamic
<br>> > > > plugins<br>> > > > without changing any thing in getPlugins() function.<br>> > > ><br>> > > ><br>> > > > ><br>> > > > ><br>> > > > > 3) in BlogView class:
<br>> > > ><br>> > > ><br>> > > > sorry about this mistake :)<br>> > > ><br>> > > > Regards,<br>> > > > Ahmad<br>> > > ><br>> > > >
<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>> > > ><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>> > ><br>> ><br>> ><br>><br>><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>><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>