Parašė Tauren· 2010 Bir. 10 15:06:32
#1
galite padeti kad vietoj reputacijos + - rodytu siuos
paveikslelius
+ :
- :
kodas :
# 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
MOdas :
Parašė DEMO_user· 2010 Bir. 10 15:06:15
#2
uid=".$data['user_id']."'><img src='http://www.supergames.lt/images/reputation/add.png'$countplius</a>/<a href='".INFUSIONS."reputation/options.php?type=0&post=".$data['post_id']."&uid=".$data['user_id']."'><img src='http://www.supergames.lt/images/reputation/subtract.png'$countminus</a>] <br><br>\n";
+10?
Redagavo DEMO_user· 2010 Bir. 10 15:06:55
Parašė Tauren· 2010 Bir. 10 15:06:12
#3
gali pilna koda padaryti?
jau neriekia
beje +10 seu jau tau daves 2 komentaras mano paziurek :)
Redagavo Tauren· 2010 Bir. 10 15:06:16