Teya Salat
Ủng hộ wap từ FaceBook
04 giờ 03 phút| Tuesday, 01/12/26
Wap Game Online Hay : Game Tương tác, Game Nhập vai ... Avatar, KPAH, ...; Game Offline Crack miễn phí; Đọc truyện Online hay; Sms Kute đẹp ...
APKTRUYỆN
Game Online / Game Offline / Sms Kute / ChatRoom / Kho Lưu Trữ / Kho Game /
BookMark : OPERAUCWEBJAR
> > >
Lượt xem : | Tìm Kiếm | Tập tin chủ đề


- Code like cho wap xtgem v2 có mod thêm cookie, nên mỗi người chỉ like, dislike được 1 lần, nếu muốn like, dislike tiếp thì phải đợi, bạn có thể sửa thời gian của cookie trong code.
Code này dùng cho filelist xtgem nhé

Tạo thư mục xt trong thư mục xt tạo file vt.xt rồi dán code này
Code :
<!--parser:xtscript-->
get id
assign $vt = <div class="rmenu">Đánh giá :<a href="/vote?id=$id&vote=like" title="Thích"><img src="/icon/like.png" alt="like" /> <xt:widget tool="Counter" id="xt.c.a.t." key="2130399" xtuser="muathu" idstring="$id|like" type="display1" /></a>|<a href="/vote?id=$id&vote=unlike" title="Không thích"><img src="/icon/unlike.png" alt="dislike" /> <xt:widget tool="Counter" id="xt.c.a.t." key="2130399" xtuser="muathu" idstring="$id|unlike" type="display1" /></a><br /><div align="center"><img src="http://24gio.sextgem.com/icon/vote2/views_<xt:widget tool="Counter" id="xt.c.a.t." key="2130399" xtuser="muathu" idstring="$id|like" type="display1" />.gif" alt="vote" /></div></div>
print $vt
<!--/parser:xtscript-->


Tạo tiếp file vote ngang index rồi dán code này
Code :
<!--parser:xtscript-->
get_or_default id;share-full-code-filelist-co-dem-luot-xem.m
get_or_default vote;like
var $user = muathu
var $key = 2130399
var $space = call chr $val=32
var $name = call str_replace $subject=$id;$search=.;$replace=_;
var $name = call str_replace $subject=$name;$search=$space;$replace=_;
var $name = call strtolower $val=$name
var $cookie=call cookie::get $name=$name-vote;$default=0;
if $cookie==0
print <xt:widget tool="Counter" type="none" idstring="$id|$vote" key="$key" xtuser="$user" id="xt.c.a.t." /><xt:widget tool="Counter" type="none" idstring="admin|$vote" key="$key" xtuser="$user" id="xt.c.a.t." /><h1 class="hdr">Cảm ơn!!!</h1><div class="list1">Bạn đã đánh giá bài viết này!<br />
call cookie::set $name=$name-vote;$val=1000;$expire=500;$path=/;
print <meta http-equiv=refresh content="2; URL=/xem?id=$id"><br />Tự động chuyển trang sau 2 giây, nếu trình duyệt bạn đang dùng không hỗ trợ thì <a href="/xem?id=$id">bấm vào đây</a></div>
else
print <h1 class="hdr">Xin lỗi???</h1><div class="list1">Bạn đã đánh giá bài viết này. Hãy quay lại sau <meta http-equiv=refresh content="2; URL=/xem?id=$id"><br />Tự động chuyển trang sau 2 giây, nếu trình duyệt bạn đang dùng không hỗ trợ thì <a href="/xem?id=$id">bấm vào đây</a></div>
endif
<!--/parser:xtscript-->


rồi dán code này vào nơi muốn hiển thị like,dislike
Code :
<!--parser:xtscript-->
include /xt/vt.xt
<!--/parser:xtscript-->


chúc bạn thành công!
↓ Tải về máy ↓
Code like/dislike
↓ Tải về máy ↓
code-like.js (2.43KB)
Link :
BBcode :
Cùng chuyên mục
icon Css kẻ sọc, xen kẻ list cho wap - 4689 ngày trước
icon Những thẻ Meta cần thiết trong SEO - 4777 ngày trước
icon Share blog xtgem bản mới nhất by tranthai - 4778 ngày trước
icon Code tập tin bài viết (tập tin đính kèm) cho filelist xtgem - 4813 ngày trước
icon Hiệu ứng xoay và phóng to ảnh - 4813 ngày trước
123»

Tags : WapMaster, Code, like,dislike, xtgem, v2, mod, thêm, cookie, Kinh, Nghiệm, &, Thủ, Thuật
đầu trang Game hay tuyển chọn
Khu Vườn Thần Kỳ Khu Vườn Thần Kỳ: Tham gia ngay vào hệ thống nuôi thú - trồng cây cực hot trên điện thoại mà chỉ có ở Khu Vườn Thần Kỳ - Sự kỳ diệu của tạo hóa.
Bình luận
Tên bạn:

Nội dung:

Từ khóa :

, ,

Uc Browser 9.3 sử dụng trình duyệt này để tải game ko bị lỗi, tiết kiệm chi phí, thời gian ...
•Hướng dẫn •Tải ngay
back top
• Thanks Xtgem gave me a great web hosting! So I always abide by the rules of you Please contact me if I have any negligence
- Email nguyenanhtuan407@gmail.com
C-STAT U-ON 1 2 3 4 5