yep...that is whats happening... it strips out the PHP reference. Is there any way to force it to accept it?
--never mind, I got it to save after repeatedly trying it about 4 or 5 times. But now I get an error after activating it on my site. In fact the homepage completely fails to render.
Here's my version of the code:
===================================
$body = <<<EOF
<?PHP
if (\$user['USER_DISPLAY_NAME']) {
echo <<<STUFF
Thanks for logging in.
STUFF;
} else {
echo <<<STUFF
Please login in order to post a note or reply.
STUFF;
}
>?
EOF;