MyBB Community Forums

Full Version: parse_message_end
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When using the parse_message_end hook, is there any way to find from that hook what the id is of the forum each thread/post is in?

I've been messing with it and can't find a way, if anyone could help that would be great, thanks!
No, it gives you the HTML of the post.

What you could do it globalize $post (I think?) and use $post['fid'].
what Paul said. but that will only work for posts, so it depends on if you want it to run on PMs, etc. then you need to find the array variable similar to $post and global those as well.
(2011-12-09, 09:50 PM)Paul H. Wrote: [ -> ]No, it gives you the HTML of the post.

What you could do it globalize $post (I think?) and use $post['fid'].

Yep global $post worked, thanks a bunch! Smile