Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Labai reikia jusu pagalbos !

Parašė JLS· 2007 Rugs. 23 13:09:37
#12

ozzWANTED parašė:
Reputation modas v1.0 pagal bdz. Prisegu.
Install notes:
Reputation 1.00 Sukurtas Pagal: bdZ
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



kurioj eiluteij iterpt ?