Using Jamroom
Is this in a template?
Try wrapping the code with 'literal' tags -
{literal}<script src=........>{/literal}
hth
{literal}<script src=........>{/literal}
{if isset($profile_approved) && $profile_approved == 'on'}
{* The profile template code here *}
{else}
THIS PROFILE IS NOT APPROVED
{/if}