Fixed PHP notice in user profile (forumpost count) and syntax cleanup