I'm creating an add-on in which I need to create a URL based on the $thread_id. Is there a function I can call that returns a link with the appropriate URL? I would also need a similar xF function for posts. I input the $post_id and the function returns the URL. Thank you.