On Mon, Sep 7, 2009 at 11:13 PM, Kevin<[email protected]> wrote: > > Dan, > > I added [(pagecount output=false)] to the top and it worked. I only > have {pgcount} in the bottom and it works there as well.
Still there is no reason you should have needed the output=false unless you returned something somehow from the function. That's the curious part. I can't imagine what would do that. And it seems the plugin would be better if you didn't need the extra key strokes when calling the function. Did you try adding a simple return; at the end of the function? Or maybe return 'hi'; just to see if it is actually getting to the end of the function? > Example of the ob_ stuff.. > > This is especially useful for debugging... > > In the script I have something like: > > ob_start(); > echo "Dir = " . $counterdir . "\n"; > echo "Page = " . $pageLink . "\n"; > $BOLTvar['$pgerror'] = ob_get_contents(); > ob_end_clean(); > > The echo's will display the info I want but not when the script is > running. The output from them is stored until I stuff the results > into $BOLTvar['$pgerror'] using the ob_get_contents(). I kind of have a feel for how these lines work, but thought there was a remote possibility they might interfere with how BoltWire uses these functions to return the final page output. Perhaps temporarily commenting out these lines and seeing if it doesn't remove your extraneous output might be in order. There really shouldn't be any reason your function is displaying content unless you are returning something. I'd help debug but can't reproduce it at all. Still this is an interesting use of these functions for debugging. I'm sure I'll learn some interesting new things working with you Kevin. Thanks for being a part of BoltWire! Blessings, 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 -~----------~----~----~----~------~----~------~--~---
