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

Parašė ozzWANTED· 2007 Rugs. 23 10:09:38
#5

Reputation modas v1.0 pagal bdz. Prisegu.
Install notes:
Reputation 1.00 Sukurtas Pagal: bdZ
1. archyve yra failai, jos imetam i kataloga infusions.
2. Prijungiam kaip modifikacija (t.y. darom instal)
3. kol kas funkciju adminui nera ir pereinam prie 4 punkto
4. DB sukuriama iskart
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 ozzWANTED· 2007 Rugs. 23 10:09:59