Ultimate Points System, Problema.
Publicado: 14 Dic 2010, 18:10
Aca Los Datos De Soporte:
URL: DesingsArts.com
Versión phpBB: phpBB3 (3.0.7-PL1)
MODs Instalados: Advanced Visual Anti Bot
Evaluation Topics
Facebook Profile Link
ReIMG Image Resizer
User Reminder
Plantilla(s) usada(s): Prosilver
Servidor: Pago
Actualización desde otra versión:
Conversión desde otro sistema de foros:
Acá El soporte de modificaciones:
Nombre y versión del MOD: Ultimate Points System 1.0.7
URL del MOD: http://www.ivemfinity.com/foro/mods-php ... t1255.html
Versión de phpBB: 3.0.7-PL1
Servidor: Pago
Si es una actualización desde otra versión: ---
Especificar lo mejor posible el problema, copiando y pegando el error de tu sitio
Realizando una búsqueda antes de preguntar en cualquiera de los foros, también nos ayudáis.
Especificación del problema: Bueno soy administrador del sitio, y trato de instalar este mod llamado Ultimate Point System, el problema es el archivo includes/functions_posting.php Que tengo que reemplazar algo, (Hize una copia de seguridad del archivo antes) Trate de colocarlo de todas las formas posible y me sale: El Encontrar, especificado por el MOD, no se pudo encontrar, Tengo miedo a forzar la instalación ya que el foro no es mio, y podría hacer estragos
Aca la guía: [b]Encontrar:[/b]
if ($update_message)
{
$sql_data[POSTS_TABLE]['sql']['post_text'] = $data['message'];
}
[b]Reemplazar por[/b]
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'];
} Así esta en el archivo:

URL De Imagen: http://img827.imageshack.us/img827/1619/dibujoahw.png
Y van a disculpar al final si tiene }, solo que no dio para que salga.
URL: DesingsArts.com
Versión phpBB: phpBB3 (3.0.7-PL1)
MODs Instalados: Advanced Visual Anti Bot
Evaluation Topics
Facebook Profile Link
ReIMG Image Resizer
User Reminder
Plantilla(s) usada(s): Prosilver
Servidor: Pago
Actualización desde otra versión:
Conversión desde otro sistema de foros:
Acá El soporte de modificaciones:
Nombre y versión del MOD: Ultimate Points System 1.0.7
URL del MOD: http://www.ivemfinity.com/foro/mods-php ... t1255.html
Versión de phpBB: 3.0.7-PL1
Servidor: Pago
Si es una actualización desde otra versión: ---
Especificar lo mejor posible el problema, copiando y pegando el error de tu sitio
Realizando una búsqueda antes de preguntar en cualquiera de los foros, también nos ayudáis.
Especificación del problema: Bueno soy administrador del sitio, y trato de instalar este mod llamado Ultimate Point System, el problema es el archivo includes/functions_posting.php Que tengo que reemplazar algo, (Hize una copia de seguridad del archivo antes) Trate de colocarlo de todas las formas posible y me sale: El Encontrar, especificado por el MOD, no se pudo encontrar, Tengo miedo a forzar la instalación ya que el foro no es mio, y podría hacer estragos
Aca la guía: [b]Encontrar:[/b]
if ($update_message)
{
$sql_data[POSTS_TABLE]['sql']['post_text'] = $data['message'];
}
[b]Reemplazar por[/b]
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'];
} Así esta en el archivo:

URL De Imagen: http://img827.imageshack.us/img827/1619/dibujoahw.png
Y van a disculpar al final si tiene }, solo que no dio para que salga.