It's a pretty simple function--I don't see anything problematic.

Is it possible you have another function called BOLTFhighlight somewhere?
Perhaps you put it in config.php or a plug or something for testing
purposes? You will get a blank screen if the function is defined twice. I
was going to release 4.19 today, but maybe I'll wait to hear from you to
see if you can figure out the problem. I don't want to cause anyone else
trouble if there is a problem in the code.

Cheers,
Dan

P.S. Here's the current code I have for this in case my last cut and paste
had a typo or something:

function BOLTFhighlight($args) {
$text = strtoupper(BOLTinit($args[1], $args['text']));
$page = BOLTinit($args[2], $args['page']);
$header = BOLTinit("[[$page|+]]", $args['header']);
$content = BOLTloadpage($page);
$lines = explode("\n", $content);
foreach($lines as $line) {
$line = BOLTstrip($line);
if (preg_match("/\b($text)\b/i", $line) === 0) continue;
$out[] = '* ' . preg_replace("/\b($text)\b/i", "||$text||", $line);
}
if (count($out) != 0) return "<ul>$header\n" . implode("\n", $out) .
'</ul>';
}



On Fri, Oct 17, 2014 at 3:21 AM, Tiffany Grenier <[email protected]>
wrote:

> Hi!
>
> I have understood it doe snot seem to be the case for at list Shawn and
> you, but my site displays only a blank page if I include the highlight
> function in functions.php and works again fine as soon as I comment it
> out... I haven't had a good look at it, so I don't know what's going wrong,
> but maybe it is using functions that are not available on all servers...
>
> I would be happy to help debugging that during the weekend.
> Cheers,
> Tiffany
>
> --
> You received this message because you are subscribed to the Google Groups
> "BoltWire" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/boltwire.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Reply via email to