In every conditional you have, it should contain the single quotes within the brackets of an array.
e.g.
PHP Code:
<if condition="$bbuserinfo['userid']==$journalinfo['journalist_id']">
not:
PHP Code:
<if condition="$bbuserinfo[userid]==$journalinfo[journalist_id]">
In PHP this would not generate an error (although is recommended practice), but maybe the template editor handles it differently.