moving parser to phpbb hook