<!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=新細明體
color=#0000ff size=2>Hi Ahmad:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=新細明體
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=新細明體
color=#0000ff size=2>Maybe you can send to this mailing list first. Then we
can have a detail look at it and discuss with you 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=新細明體
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=新細明體
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=新細明體
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=128015210-12062007><FONT face=新細明體
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> <<A
href="mailto:oscar@renalias.net">oscar@renalias.net</A>> 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 < <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></BLOCKQUOTE></BODY></HTML>