In 1.9, how can I hack the post permalink into the forum?
mod/forum/user.php generates a permalink (See this post in context) with the following code:
$fulllink = "discussion#p$post->id\">".get_string("postincontext", "forum")."";
forum_print_post($post, $discussion, $forum, $cms[$forum->id], $course, false, false, false, $ratings, $fulllink);
How can I generate the permalink in posts in the forum (mod/forum/discuss.php)? I've tried cutting and pasting various parts of the above code in both discuss.php and lib.php, but have not been successful. How can $fulllink be instantiated in the forum?
Any suggestions are greatly apprecaited.