On Tue, Sep 22, 2009 at 7:35 PM, DrunkenMonk <[email protected]> wrote:
>
>> > if( function_exists('myBOLTreadpage') ) $contents = myBOLTreadpage
>> > ($location);
>> > else $contents = BOLTreadpage($location);
>> > if( $contents === NULL ) return '';
>>
>> Here's the critical lines, you should be able to use in BOLTloadpage
>> and BOLTsavepage:
>>
>>         if (function_exists('myBOLTloadpage')) return myBOLTloadpage($page,
>> $dir, $data, $auth);
>>
>>         if (function_exists('myBOLTsavepage')) return myBOLTsavepage($page,
>> $newcontent, $newdata, $enableconflict, $indexing);
>>
>> You got all the information you need. Just copy over the core
>> functions and customize the page read/write sections as needed.
>
> I see it, but I'm a bit annoyed that the anchor logic will be
> bypassed. There will be compatibility issues if we have seperate code
> for the same feature.

Don't bypass is. Just incorporate it into your alternate functions.
Basically copy the two functions, change the few lines that
read/write. Keep everything else the same.  And you shouldn't have any
problems. Probably you will want to have the page text in one db
field, and the data fields probably all separate data fields. Or at
least a second field.

>> > Of course, the page store is largely superfluous, and this doesn't
>> > jack into searches now that mysql can handle groups and searching
>> > faster than php...
>>
>> You are right...   I need to add a hook in the BOLTexists function.
>>
>> Not sure about searching and indexing...  I assume they use the
>> loadpage/savepage functions, so it should work ok...  Not tested...
>
> The point is mysql can probably search faster than any php regexp.
> It's basically what it's made for, after all.

It will be nice to get it working...

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
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