1
Soporte General SMF / Re:Mostrar cantidad de gracias recibidas
« on: July 27, 2014 - 10:41 22:41 »
ups pls
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Si amigo, lo probe, de hecho lo tenia de la modificacion de un usuario zistu algo asi que agregaba varias cosas en el tema principal, a ti te funcionó amigo??
Yo tengo el thank-o-matic 3.0 y funciona bien. Igual fijate porke la consulta la tenés que agregar antes del div, si no, no funciona.
4k tiene razón también, esto agrega una consulta extra a la BD, sin embargo, yo lo usé en mi foro y no parecía significativo para la BD aunke todo suma.
Cualkier cosa, dejá tu Display.template y me fijo, si kerés.
A ver si te sirve esto:Code: [Select]$select = @mysql_query("SELECT thank_you_post FROM `smf_messages` WHERE id_msg = '".$context['topic_first_message']."'");
$array = @mysql_fetch_array($select);
Iría antes de la info de cantidad de gracias.
Y la cantidad en número es con este array:Code: [Select]
array['thank_you_post'].'
$thankYouPost['counter']
echo '
<', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', '" style="display: '.($message['thank_you_post']['isThankYouPost'] ? 'block' : 'none').';" id="ThankOMaticID' . $message['id'] . '">
<span class="error" id="ErrorThankOMaticID' . $message['id'] . '"></span>';
// Output the Template for Thank-O-Matic (Normal found in the index.template.php)
// It will fall back into a standard function, if this template_thank_you_post doesn't exists!
if ($message['thank_you_post']['isThankYouPost'])
{
// Mistake? Function not loaded oO.
if (empty($context['call_thank_you_post_func']))
loadThankYouTemplateFunctions();
// Call the correct function =D
$context['call_thank_you_post_func']($message['thank_you_post']);
}
// Call the correct function =D
$context['call_thank_you_post_func']($message['thank_you_post']);
<div class="readmorimg"><img src="http://www.chile-pro.com/Themes/twotone_20/images/comments.png" alt="comentar" /></div> '.$txt['coment'].' (', $context['num_replies'], ')
$thankYouPost['counter']
<FORM ACTION="texto del estado" METHOD="POST">
<TEXTAREA COLS=20 ROWS=10 NAME="Texto">
</TEXTAREA>
<BR><BR>
<INPUT TYPE="submit"><INPUT TYPE="Reset">
</FORM>
no pongas de pregunta "2+3" eso lo puede leer cualquier bot, pon algo más "humano"
"de que color son los ojos azules de Nicole Kidman?"