[pLog-svn] dynamic plugins

Ahmad Saleh ahmadfds at gmail.com
Tue Jun 12 06:47:28 EDT 2007


the problem here that this plugin object must send in each request, but if
this template is cached then it will not be send.


On 6/12/07, Oscar Renalias <oscar at renalias.net> wrote:
>
> I think that providing plugins that change core files is not a good
> idea, we're unfortunately not going to support a bunch of people
> running around with core code changes.
>
> Was there really no other way to implement this, than to modify core code?
>
> On 6/12/07, Ahmad Saleh <ahmadfds at gmail.com> wrote:
> > I have finished Crystal Poll plugin but if any one want to use it
> > he must make above changes which we talked about, so that I include this
> 3
> > files in (core files) folder . is that acceptance for you?
> >
> > Regards,
> >      Ahmad
> >
> >
> > On 6/5/07, Ahmad Saleh <ahmadfds at gmail.com> wrote:
> > > another thing,
> > > I made test plugin that have getTest function which rerturn random
> number
> > > isDynamic field of this plugin have true value
> > > then I call it in footer.template like this:
> > >
> > > { dynamic}
> > > {$test->getTest()}
> > > {/dynamic}
> > >
> > > and it's worked without any problem.
> > >
> > > Regards,
> > >     Ahmad
> > >
> > >
> > > On 6/4/07, Oscar Renalias < oscar at renalias.net> wrote:
> > >
> > > > Well this sounds like a reasonable approach... but I see at least
> one
> > problem.
> > > >
> > > > When a page is cached, currently its data is not loaded. So for
> > > > example $posts and $blog are not available in main.template when
> it's
> > > > cached because it doesn't make any sense to load that data anymore.
> So
> > > > if you develop a plugin that registers itself as dynamic and depends
> > > > in any of the data that is not available anymore, this won't work.
> The
> > > > plugin will be there and trying to run, but it's data will not.
> > > >
> > > > But before we dig deeper into this, can anybody list any examples of
> > > > plugins that would *really* benefit of running even in cached pages
> > > > (other than a plugin that would list the number of users currently
> > > > logged in)
> > > >
> > > > Oscar
> > > >
> > > > On 6/3/07, Ahmad Saleh <ahmadfds at gmail.com> wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 1) Add ($isDynamic = false) field in PluginBase class.
> > > > > > 2) just add function (getDynamicPlugins()) that return only
> dynamic
> > > > > plugins
> > > > > without changing any thing in getPlugins() function.
> > > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > 3) in BlogView class:
> > > > >
> > > > >
> > > > > sorry about this mistake :)
> > > > >
> > > > > Regards,
> > > > >    Ahmad
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > pLog-svn mailing list
> > > > > pLog-svn at devel.lifetype.net
> > > > > http://limedaley.com/mailman/listinfo/plog-svn
> > > > >
> > > > _______________________________________________
> > > > pLog-svn mailing list
> > > > pLog-svn at devel.lifetype.net
> > > > http://limedaley.com/mailman/listinfo/plog-svn
> > > >
> > >
> > >
> >
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20070612/8108d85b/attachment-0001.htm 


More information about the pLog-svn mailing list