|
That's a fancy username issue.. Find in the script this line of code (around line number 134):
[code:1]
// Insert the post into the database
$query="INSERT INTO `{$mosConfig_dbprefix}fb_messages`"
." (id, ip, phpbb_userid, userid, name, time, thread, subject, hits, catid, parent)"
// $JMI ." VALUES ('$row->post_id', '$row->poster_ip', '$row->poster_id', '$row->poster_id', '$row->poster_id', "
." VALUES ('$row->post_id', '$row->poster_ip', '$row->poster_id', '$row->poster_id', '$row->post_username', "
// $JMI ." '$row->post_time', '$currentthread', '$subject', '$row->topic_views', '$row->forum_id', '$lastpost')";
." '$row->post_time', '$currentthread', '$subject', '$row->topic_views', '$row->forum_id', '$postparent')";
$updateresult = mysql_query($query) or die("Invalid query:$query" . mysql_error());
$lastpost = $row->post_id;[/code:1]
And change it to:
[code:1]
$post_username = addslashes($row->post_username);
// Insert the post into the database
$query="INSERT INTO `{$mosConfig_dbprefix}fb_messages`"
." (id, ip, phpbb_userid, userid, name, time, thread, subject, hits, catid, parent)"
// $JMI ." VALUES ('$row->post_id', '$row->poster_ip', '$row->poster_id', '$row->poster_id', '$row->poster_id', "
." VALUES ('$row->post_id', '$row->poster_ip', '$row->poster_id', '$row->poster_id', '$post_username', "
// $JMI ." '$row->post_time', '$currentthread', '$subject', '$row->topic_views', '$row->forum_id', '$lastpost')";
." '$row->post_time', '$currentthread', '$subject', '$row->topic_views', '$row->forum_id', '$postparent')";
$updateresult = mysql_query($query) or die("Invalid query:$query" . mysql_error());
$lastpost = $row->post_id;[/code:1]
|