Reply #12 April 29, 2011 - 04:37 16:37
No conozco mucho de php.. pero creo que si sólo añado el bloque antes del texto que se me indica, me generaría un error.
El código quedaría de la siguiente manera:
// What? It's not like it *couldn't* be only guests in this topic...
if (!empty($posters))
loadMemberData($posters);
$messages_request = $smcFunc['db_query']('', '
SELECT
id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,
smileys_enabled, poster_name, poster_email, approved,
//*************************** BLOQUE AÑADIDO *************************************
' . ($board_info['thank_you_post_enable'] && allowedTo('thank_you_post_show') ? 'thank_you_post, thank_you_post_counter,' : '') . '
id_msg_modified < {int:new_from} AS is_read
FROM {db_prefix}messages
//*************************** FIN DE BLOQUE AÑADIDO ********************************
id_msg_modified < {int:new_from} AS is_read,
gpbp_score
FROM {db_prefix}messages
WHERE id_msg IN ({array_int:message_list})
ORDER BY id_msg' . (empty($options['view_newest_first']) ? '' : ' DESC'),
array(
'message_list' => $messages,
'new_from' => $topicinfo['new_from'],
)
);
Quedaría bien el bloque de código? Hago la modificación para realizar la instalación del MOD?