quick hack to get you going:

add it to the begining of engine.php, which should let it be called
after the functions are defined.

If that doesn't work, look for this line in engine.php

$BOLTscripts = Array('markups', 'functions', 'conditions');

add your script title to the list, and then place your script in barn/
scripts/

I'm sure dan will core some solution soon though.

On Aug 21, 11:53 am, blues <[email protected]> wrote:
> As I thought, it is not working this way, since the plugin uses core
> functions.
> Needs a fix.
>
> blues
>
> On Aug 21, 9:38 am, blues <[email protected]> wrote:
>
> > I see.
> > I will try including the plugin before the engine. Not sure if it will
> > work though since it uses some functions from the engine (eg. MarkUp).
> > Anyway, i think this should be fixed in the core by including the
> > plugins before starting processing the pages... What's the benefit in
> > having a hook for the page loading process if we cannot use it in a
> > plugin?
>
> > blues
>
> > On Aug 21, 1:04 am, The Editor <[email protected]> wrote:
>
> > > Oh, sure. Just don't define the function in a plugin. Define it in
> > > index.php before calling the engine. Or at the very least load the
> > > script in index.php--so it is available first thing. Will that work?
>
> > > Cheers,
> > > Dan
>
> > > On Fri, Aug 20, 2010 at 5:34 PM, blues <[email protected]> wrote:
> > > > Sorry if i was not clear.
> > > > I am trying to define a myBOLTloadpage function to override the
> > > > default BOLTloadpage function.
> > > > I define the new function in a custom plugin that i am writing. The
> > > > custom function (myBOLTloadpage) that i write is not called
> > > > successfully for every page that is loaded since the plugin where
> > > > there is the declaration is included AFTER some of the pages are
> > > > already loaded (specifically auth pages and the main zone).
> > > > Hope i am clear now.
>
> > > > On Aug 20, 10:03 pm, The Editor <[email protected]> wrote:
> > > >> Can you specify exactly what you are trying to do and what the problem
> > > >> is?  I'm not sure I got what you are saying...
>
> > > >> Cheers,
> > > >> Dan
>
> > > >> On Fri, Aug 20, 2010 at 7:04 AM, blues <[email protected]> wrote:
> > > >> > the BOLTloadpage hook (defining a myBOLTloadpage function) does not
> > > >> > work correctly, because configs and plugins scripts are included 
> > > >> > AFTER
> > > >> > some of the pages are already loaded.
> > > >> > can anybody think of any quick fix?
>
> > > >> > --
> > > >> > You received this message because you are subscribed to the Google 
> > > >> > Groups "BoltWire" group.
> > > >> > To post to this group, send email to [email protected].
> > > >> > To unsubscribe from this group, send email to 
> > > >> > [email protected].
> > > >> > For more options, visit this group 
> > > >> > athttp://groups.google.com/group/boltwire?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "BoltWire" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to 
> > > > [email protected].
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/boltwire?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.

Reply via email to