Fix for entries and standardized output

Who the heck thought it would be a good idea to hardcode "$user_id=1" in
a PHP template file?!... this guy.