In the instructions for this mod there is a section which says:
#
#-----[ FIND ]------------------------------------------
#
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$temp_url = append_sid("posting.$phpEx?mode=reply_post&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$reply_post_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_reply_post'] . '" alt="' . $lang['Reply_Post'] . '" title="' . $lang['Reply_Post'] . '" border="0" /></a>';
if ( empty($postrow[$i]['in_reply_to']))
{
$Post_in_reply_to = '';
$Reply_post = '';
$View_post = '';
}
else
{
$Post_in_reply_to = $lang['In_reply_to'];
$Reply_post = 'this message';
$View_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['in_reply_to']) . '#' . $postrow[$i]['in_reply_to'] . '">' . $Reply_post . '</a>';
}
To get the original poster's name appearing, you need to do the following instead:
#
#-----[ FIND ]------------------------------------------
#
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" /></a>';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
$temp_url = append_sid("posting.$phpEx?mode=reply_post&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$reply_post_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_reply_post'] . '" alt="' . $lang['Reply_Post'] . '" title="' . $lang['Reply_Post'] . '" border="0" /></a>';
if ( empty($postrow[$i]['in_reply_to']))
{
$Post_in_reply_to = '';
$Reply_post = '';
$View_post = '';
}
else
{
$Post_in_reply_to = $lang['In_reply_to'];
$nReplyPost = -1;
for($nPost = 0; $nPost < $total_posts; $nPost++)
{
if ( $postrow[$nPost]['post_id'] == $postrow[$i]['in_reply_to'] )
{
$nReplyPost = $nPost;
break;
}
}
if ( $nReplyPost == -1 )
{
$Reply_post = 'this message';
}
else
{
if ( $postrow[$nReplyPost]['poster_id'] == ANONYMOUS )
{
if ( $postrow[$nReplyPost]['post_username'] != '' )
{
$Reply_post = $postrow[$nReplyPost]['post_username'];
}
else
{
$Reply_post = $lang['Guest'];
}
}
else
{
$Reply_post = $postrow[$nReplyPost]['username'];
}
}
$View_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['in_reply_to']) . '#' . $postrow[$i]['in_reply_to'] . '">' . $Reply_post . '</a>';
}
For some reason, it has a couple of problems finding the poster's username (in which case it just puts the old 'this message' text up), but it works on about 95% of the posts in my test forum.
If anyone can check this code and fix this minor error, I'd be very happy.



