sorry! forgot one thing:

if CURRENT_DEPT = 0, abort

On Aug 3, 1:44 am, Mark Marijnissen <[email protected]> wrote:
> On the "include" problem:
>
> * just keep track of the lines retrieved, instead of only the pages OR
> * fix the depth of recursion with an optional parameter. (depth=5).
> This can be done as follows:
> - when you call "include", set CURRENT_DEPTH to the depth-parameter
> (if specified, otherwise some default).
> - then, retrieve the contents of the to-be-included page.
> - search these contents for "include" calls.
> - ADD or MODIFY the DEPTH parameter of these "include" calls to
> CURRENT_DEPTH - 1.
>
> On Aug 3, 1:30 am, Mark Marijnissen <[email protected]> wrote:
>
> > > You can always override any function in BoltWire very easily. First,
> > > you can create your own custom login2 command (based off the core
> > > function) and then just use that in your actions instead of login. But
> > > to be more clever about it, you can use toolmapping to connect login
> > > to login2 so your function is used instead of mine. Just put this in
> > > the config.php just before your custom login2 command:
>
> > > $BOLTtoolmap['f']['login'] = 'login2';
>
> > > This means whenever BoltWire sees a login command it will map that
> > > over to your custom login2 function.
>
> > There is a bit of a redundancy here- that why i missed it. I saw that
> > the BOLTsavepage checks if there is a "myBOLTsavepage". So, i assumed
> > that in order to overwrite a function you should use myXXXX, if it's
> > supported. I suspect the redundancy exists for historical reasons, and
> > removing the myXXX lines would mess up peoples sites and plugins.
>
> > > Second it seems you could easily enough setup a line or two in your
> > > login form to check and see if an account with the given email exists.
> > > It would look something like:
>
> > > [session search "group=login data="email={=email} fmt=count"]
> > > [session if "equal {search} 1 ? warn=Account with this email account 
> > > exists..."]
>
> > I use a custom boltwire application, which I was planning to do
> > anyway. I modified the core Login and Register functions such way that
> > they check if the email exists.
>
> > if(BOLTXsearch("data='email=$BOLTarray[email]' group=$BOLTloginPages
> > count=1 join='' fmt={+p}", 'search', false) != '')
> >                 BOLTabort('register_member_exists');
>
> > cheers, Mark
--~--~---------~--~----~------------~-------~--~----~
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