Olá Pessoal,
Acho que resolvi o problema, tive que revisar manualmente arquivo por arquivo dos dois últimos MODs que instalei.
Os arquivos do MOD Topic Solved estavão Ok.
Mais o arquivo "functions_posting.php" do MOD Ultimate Points estava faltando linhas.
Esse comando era para estar assim:
Código: Selecionar todos
if ($update_message)
{
$sql_data[POSTS_TABLE]['sql']['post_text'] = $data['message'];
}
Mais estava Assim:
E faltava ser substituído por isso:
Código: Selecionar todos
if ($update_message)
{
// Start Ultimate Points
$p_poll_received = $p_topic_received = $p_post_received = '';
// Check the forum points in the forum tables
$p_pertopic = $p_perpost = $p_peredit = '';
$sql = 'SELECT forum_pertopic, forum_perpost, forum_peredit
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $data['forum_id'];
$result = $db->sql_query_limit($sql, 1);
$forumrow = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// Now let's define the variables with the points from the forum
$p_pertopic = $forumrow['forum_pertopic'];
$p_perpost = $forumrow['forum_perpost'];
$p_peredit = $forumrow['forum_peredit'];
// Check the rest of the points
$sql = 'SELECT points_poll_received, points_topic_received, points_post_received, poster_id
FROM ' . POSTS_TABLE . '
WHERE post_id = ' . $data['post_id'];
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// Now let's define the variables with the points for the post
$p_poll_received = $row['points_poll_received'];
$p_topic_received = $row['points_topic_received'];
$p_post_received = $row['points_post_received'];
// If the topic_received greater than 0 and pertopic = 1
if ( ($p_topic_received > 0) && ($p_pertopic > 0) && $points_config['pertopic_enable'])
{
// First substract points from user account
substract_points($row['poster_id'], $p_topic_received);
// Reset the field $p_topic_received
reset_topic_received($data['post_id']);
// Now recalculate points
$ultimate_points->update_topic_ch($data['poster_id'], $data['forum_id'], $data['topic_id'], $ultimate_points->strip_text($data['message']));
}
// If the post_received is greater than 0 and and perpost = 1
if ( ($p_post_received > 0) && ($p_perpost > 0) && $points_config['perpost_enable'])
{
// First substract old post received points from user points
substract_points($row['poster_id'], $p_post_received);
// Now substract the post received points from the post table
reset_post_received($data['post_id']);
// Now update the post table
$ultimate_points->update_post_ch($data['poster_id'], $data['forum_id'], $data['post_id'], $ultimate_points->strip_text($data['message']));
}
// If the poll_reveived greater than 0 and topic received = 0 and pertopic = 1
if ( ($p_poll_received > 0) && ($p_pertopic > 0) && ($p_topic_received == 0) && ($points_config['pertopic_enable']) )
{
// Update Poll Text with new topic
$ultimate_points->update_topic_ch($poster_id, $data['forum_id'], $data['topic_id'], $ultimate_points->strip_text($data['message']));
}
// End Ultimate Points
$sql_data[POSTS_TABLE]['sql']['post_text'] = $data['message'];
}
Então eu fiz os ajustes e fui testar... De início não vi funcionar porque eu estava testando em uma mensagem já postada antes.
Continuei a verificar os outros arquivos e não encontrei mais erros.
Então decidi postar uma mensagem nova e depois a editei. O resultado foi positivo, estava funcionando novamente.
Ufa esse negocio de ficar instalando MODs é bom, pois é funcional, mais toma um tempo e paciência de Jó.
Obrigado amigos por estarem mais uma vez me ajudando.
Podem dar o tópico como Resolvido.
Abraços,