generate html & bbcode link for entries and page