Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del pora modu

Parašė Artnew· 2008 Gru. 23 00:12:22
#5

keiciam faila viewthread.php ten kur norit, kad rodytu reputacija iterpkit sita koda:
# 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']."'>+$countplius</a>/<a href='".INFUSIONS."reputation/options.php?type=0&post=".$data['post_id']."&uid=".$data['user_id']."'>-$countminus</a>] <br><br>\n";
} else {
echo "<br><br>";
}
# END



Redagavo Artnew· 2008 Gru. 23 00:12:45