Forum Moderators: coopster
Line in Question:
$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+¦(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . )\b#i, '<span style="color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));
I'm at my wits end with this.
Line:
$poster_avatar = '<img src="' . append_sid("avatar.php?action=view&user_id=' . $postrow[$i]['user_id']) . '" alt='' . $postrow[$i]['username'] . '\'s Character" border="0" />';
I have no clue on this one...
1. Insert a "dummy" line above the one that shows the error. Something like
$dummy_var = 0;
This does nothing, but if the error then appears on *that* line, you know that the actual error is upstream in a missing quote (usually) or missing ; or ) etc.
2. Now that you know you're on the right line, break it down into component parts.
$id = $postrow[$i]['user_id'];
$source = append_sid("avatar.php?action=view&user_id=' . $id);
$alt = $postrow[$i]['username'];
$poster_avatar = '<img src="' . $source . '" alt='' . $alt . '\'s Character" border="0" />';
Now it will be clear where the errors are and you can work on them one at a time.