Remove use of PHPBB_ROOT_PATH constant.
Fix "Non-static method parser::parse_sql() should not be called statically" error.
Remove use of PHPBB_USE_BOARD_URL_PATH.

It's no longer necessary now that the path helper takes care of generating the
correct URL for smilies.