Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reputacija 1.00

Parašė bruzgis· 2008 Rugp. 22 18:08:32
#20

# START
$countplius = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='1'";
$countminus = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='0'";
$counttotal = $countplius - $countminus;
echo "<span class='alt'>Reputacija:</span> <a href='reputation.php?uid=".$data['user_id']."'>".$counttotal."</a>";
if (iMEMBER) {
echo " [<a href='".INFUSIONS."reputation/options.php?type=1&post=".$data['post_id']."&uid=".$data['user_id']."'>+</a>/<a href='".INFUSIONS."reputation/options.php?type=0&post=".$data['post_id']."&uid=".$data['user_id']."'>-</a>] <br><br>\n";
} else {
echo "<br><br>";
}
# END