C4BR3R4

SMF => Paquetes del Foro => Mis Mods SMF => Mensaje iniciado por: C4BR3R4 en 10 de Febrero de 2017 a las 19:54

Título: Icono de Respuesta v1.0
Publicado por: C4BR3R4 en 10 de Febrero de 2017 a las 19:54
DESCARGAC4BR3R4
Icono de Respuesta
v1.0 (http://c4br3r4.es/index.php?action=dlattach;topic=465.0;attach=90)
(http://c4br3r4.es/Themes/Chalk/images/custom/logo.png) (http://c4br3r4.es/index.php?topic=102.0)
Icono de respuesta igual que el primero.


Descripción
Modificación para establecer de forma predeterminada el mismo icono de respuesta que el del primer mensaje.


Agradecimientos
Este mod no se hubiera podido realizar sin la ayuda de Gluz (http://www.simplemachines.org/community/index.php?action=profile;u=338423) por encontrar ESTE (http://www.simplemachines.org/community/index.php?topic=542277.msg3853592#msg3853592) mensaje de la aportación de margarett (http://www.simplemachines.org/community/index.php?action=profile;u=41895) y a Príncipe_Azul (http://www.simplemachines.org/community/index.php?action=profile;u=409440) por colaborar en ESTE (http://www.simplemachines.org/community/index.php?topic=552030) tema.
Título: Icono de respuesta igual que el primero
Publicado por: C4BR3R4 en 11 de Febrero de 2017 a las 13:23
Sources/Post.php
Modificaciones para establecer por defecto el icono de respuesta igual que el del primer mensaje.

Código: (Buscar) [Seleccionar]
CASE WHEN ml.poster_time > ml.modified_time THEN ml.poster_time ELSE ml.modified_time END AS last_post_time
Código: (Reemplazar) [Seleccionar]
CASE WHEN ml.poster_time > ml.modified_time THEN ml.poster_time ELSE ml.modified_time END AS last_post_time, mf.icon
Código: (Buscar) [Seleccionar]
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime) = $smcFunc['db_fetch_row']($request);
Código: (Reemplazar) [Seleccionar]
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime, $first_icon) = $smcFunc['db_fetch_row']($request);
Código: (Buscar) [Seleccionar]
// By default....
$context['use_smileys'] = true;
$context['icon'] = 'xx';
Código: (Reemplazar) [Seleccionar]
// By default....
$context['use_smileys'] = true;
$context['icon'] = !empty($first_icon) ? $first_icon : 'xx';