MyBB Community Forums

Full Version: [F] Links given in email and PM via reported post [C-Michael83]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Are missing the "#pid11246" on the end of the URL, so you are not taken directly to the reported post.

The links that I get in emails and PMs are something like this:
http://www.<board url>.com/thread-605-post-11246.html
Whereas they should be:
http://www.<board url>.com/thread-605-post-11246.html#pid11246

I spent a while trying to work out how to fix this myself, just out of curiosity, but ended up going around in circles and getting next to no-where. Sad
A fix (probably) would be to replace, in report.php, both instances of:
get_post_link($post['pid'], $thread['tid'])
with
get_post_link($post['pid'], $thread['tid'])."#pid".$post['pid']

Though I'm not too sure why it isn't just added to the defined THREAD_URL_POST constant...
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group