Got it! I didn't quite zoom in on this one first because I didn't
think I did anything with the embed code. But the error message made
it obvious what happened. In working on the mail function I reshuffled
the snippets from the vars markup group to the pre markup group. For
various reasons. Any way, this broke the embed function.
Looking at the code it also seems we broke full snippets functionality
in an embed function some time back. So I've tried to fix that as
well.
If you replace the embed function in markups.php with this code, I
think it will work. Watch out for email generated line breaks.
Cheers,
Dan
function BOLTMembed($embed) {
## TAKES A SCRIPT (USUALLY JAVASCRIPT, ETC) FROM A CODE.EMBED PAGE,
ACTIVATES IT, AND INSERTS INTO PAGE
global $pageLink, $MarkUpTable;
$out = BOLTloadpage("code.embed.$embed");
$out = str_replace(Array(' ? ', ' : ', ' , '), Array(' ?
', ' : ', ' , '), $out);
$rules = $MarkUpTable;
$out = BOLTescape(preg_replace($rules['pre']['snippets']['pattern'],
$rules['pre']['snippets']['replace'], $out), false);
$out = preg_replace($rules['vars']['request']['pattern'],
$rules['vars']['request']['replace'], $out);
$out = preg_replace($rules['vars']['var']['pattern'],
$rules['vars']['var']['replace'], $out);
$out = preg_replace($rules['vars']['var2']['pattern'],
$rules['vars']['var2']['replace'], $out);
$out = preg_replace($rules['vars']['var3']['pattern'],
$rules['vars']['var3']['replace'], $out);
$out = preg_replace($rules['vars']['member']['pattern'],
$rules['vars']['member']['replace'], $out);
return BOLTescape($out);
}
On Wed, Sep 30, 2009 at 5:23 PM, Markus <[email protected]> wrote:
>
>
>
> On Sep 30, 10:30 pm, Martin <[email protected]> wrote:
>> Can anyone check if code.embed still works with 3.16?
>
> Does not work.
>
> Warning: preg_replace() [function.preg-replace]: Empty regular
> expression in /.../boltwire/barn/scripts/markups.php on line 176
>
> And then many times the following two:
>
> Warning: session_start() [function.session-start]: Cannot send session
> cookie - headers already sent by (output started at /.../boltwire/barn/
> scripts/markups.php:176) in /.../boltwire/barn/scripts/markups.php on
> line 234
>
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at /.../boltwire/
> barn/scripts/markups.php:176) in /.../boltwire/barn/scripts/
> markups.php on line 234
>
>
>> I use to have a code.embed.page and put that on my page with <embed
>> xxx>
>> The embedded page does not show up with 3.16.
>>
>> Was something changed here? Or do I have to fix my htaccess again?
>>
>> Greetings, Martin
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---