Las lineas 1691 a 1694 están mal ubicadas, deben ir mas abajo, debes prestar mas atención a las instrucciones
antes y
despúes cuando instalas,
Aquí te dejo un extracto para que tengas una idea :
El código que está mal es este :
Código: Seleccionar todo
// Start Ultimate Points
$sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
$db->sql_query($sql);
// End Ultimate Points
está en este entorno :
Código: Seleccionar todo
$data = array(
'topic_first_post_id' => $post_data['topic_first_post_id'],
'topic_last_post_id' => $post_data['topic_last_post_id'],
'topic_replies_real' => $post_data['topic_replies_real'],
'topic_approved' => $post_data['topic_approved'],
'topic_type' => $post_data['topic_type'],
'post_approved' => $post_data['post_approved'],
'post_reported' => $post_data['post_reported'],
'post_time' => $post_data['post_time'],
'poster_id' => $post_data['poster_id'],
// Start Ultimate Points
'points_attachment_received' => $post_data['points_attachment_received'],
'points_poll_received' => $post_data['points_poll_received'],
'points_post_received' => $post_data['points_post_received'],
'points_topic_received' => $post_data['points_topic_received'],
'points_received' => $post_data['points_received'],
//End Ultimate Points
'post_postcount' => $post_data['post_postcount']
// Start Ultimate Points
$sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
$db->sql_query($sql);
// End Ultimate Points
);
y debe ser :
Código: Seleccionar todo
$data = array(
'topic_first_post_id' => $post_data['topic_first_post_id'],
'topic_last_post_id' => $post_data['topic_last_post_id'],
'topic_replies_real' => $post_data['topic_replies_real'],
'topic_approved' => $post_data['topic_approved'],
'topic_type' => $post_data['topic_type'],
'post_approved' => $post_data['post_approved'],
'post_reported' => $post_data['post_reported'],
'post_time' => $post_data['post_time'],
'poster_id' => $post_data['poster_id'],
// Start Ultimate Points
'points_attachment_received' => $post_data['points_attachment_received'],
'points_poll_received' => $post_data['points_poll_received'],
'points_post_received' => $post_data['points_post_received'],
'points_topic_received' => $post_data['points_topic_received'],
'points_received' => $post_data['points_received'],
//End Ultimate Points
'post_postcount' => $post_data['post_postcount']
);
// Start Ultimate Points
$sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - (" . $post_data['points_received'] . ' + ' . $post_data['points_attachment_received'] . ' + ' . $post_data['points_poll_received'] . ' + ' . $post_data['points_post_received'] . ' + ' . $post_data['points_topic_received'] . ") WHERE user_id = '" . $post_data['poster_id'] . "'";
$db->sql_query($sql);
// End Ultimate Points