function getVoto(){
global $tsCore, $tsUser;
$post_id = intval($_GET['post_id']);
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT tid, cant FROM p_votos WHERE tid = \''.(int)$post_id.'\' AND tuser = \''.$tsUser->uid.'\' AND type = \'1\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
return $data['cant'];
}
// DATOS DEL RANGO DEL PUTEADOR
$smarty->assign("tsPunteador",$tsPosts->getPunteador());
// VOTOS DEL POSTS
$smarty->assign("tsVoto",$tsPosts->getVoto());
{if ($tsUser->is_admod || $tsUser->permisos.godp) && $tsUser->is_member == 1 && $tsPost.post_user != $tsUser->uid && $tsUser->info.user_puntosxdar >= 1}
{if $tsVoto==true}
<div class="votod">Ya diste {$tsVoto} Puntos en este Post</div><br>
{else}
<hr class="divider"/>
{/if}
{/if}
.votod{font-family:Arial;background:#c4e19b none repeat scroll 0 0;padding:10px;color:green;font-weight:700;font-size:12px;text-align:center}