|
|

Tác giả |
Đăng lúc 21-4-2009 04:34 PM
|
Xem tất
Saokim999, mình tự edit cai code và bây h tự rate cho mình được rồi.
nhưng khi mình edit cái rate thì bị: "You could not rate the same post again, please return."
và ngoi mo`, cuối cùng, mình edit cái rate được, nhưng vấn đề là nếu mình edit, thì nó sẽ cộng và cái point cu~, chứ ko phải là update nũa.
ex: mình rate 10, va edit thành rate 3 thì nó sẽ trỡ thành 13 chúu ko phải còn 7
a`, khi mi`nh click vao rate, no co co dropmenu, de change nhung number do minh la`m o dau the..ti`m hoai ko ra
bạn biết cách fix, help mình nhé.sẵn đây mình kèm theo cai edit, đẻ sau này cac member khác cần:
Tránh mesage: "You could not rate yourself, please return."
open: misc.php
Find and comment this:- } elseif($post['authorid'] == $discuz_uid || $post['tid'] != $tid) {
- showmessage('thread_rate_member_invalid', NULL, 'HALTED');
Sao chép mã de edit rate dc:, nhung van bi loi add, ai biet fix, chi du`m
open: misc.php
find:- showmessage('thread_rate_duplicate', NULL, 'HALTED');
Sao chép mã replace:- $query = $db->query("Select extcredits, SUM(ABS(score)) AS todayrate FROM {$tablepre}ratelog
- WHERE uid='$discuz_uid' AND dateline>=$timestamp-86400
- GROUP BY extcredits";
-
- while($rate = $db->fetch_array($query)) {
-
- $maxratetoday[$rate['extcredits']] = $raterange[$rate['extcredits']]['mrpd'] - $rate['todayrate'];
- }
Sao chép mã |
|