The Soda Pop
Hãy nhanh tay Đăng kí và Đăng nhập để trở thành thành viên chính thức của Vn3x.Yn.Lt và cùng thảo luận!
» » » Xtgem, Code Bày Tỏ Cảm Xúc Bằng XtCat
Bạn phải để Bình luận

Xtgem, Code Bày Tỏ Cảm Xúc Bằng XtCat

Forum GetSmile..! ↑ ↓
MinhNP * MinhNP (Member) [Off]
* 22-10-2016

Demo: Cick

<!--parser:xtscript-->
Var $xturl1 = <tx:url type="path" />
var $xturl = call str_replace $subject=$xturl1;$search=.;$replace=_;
var $xturl = call str_replace $subject=$xturl;$search=/;$replace=_;
Var $xturl = a$xturl
Var $tlike = <tx:tdate format="H:i" tzone="7"/>
Var $d1 = <tx:tdate format="d" tzone="7" />
Var $d2 = <tx:tdate format="m" tzone="7" />
Var $d3 = <tx:tdate format="Y" tzone="7" />
Var $dlike = $d1-$d2-$d3
Var $ytday = ($d1-1)-$d2-$d3
Get like
var $codelike=call cookie::get $name=camxuc3_$xturl;$default=0;
Var $timelike = call str_replace $subject=$codelike;$search=$dlike;$replace=hôm nay;
If $like==thich or $like==yeuthich or $like==haha or $like==wow or $like==buon or $like==phanno
If $codelike==0
call cookie::set $name=camxuc3_$xturl;$val=$tlike $dlike;$expire=9876543210;
Endif
Endif
Print <div class="menu"><div class="submenu" id="like"> Bày tỏ cảm xúc</div><div class="rmenu" align="center">
If $like==thich or $like==yeuthich or $like==haha or $like==wow or $like==buon or $like==phanno
If $codelike==0
Print <div style="display:none"><tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="$like$xturl1"/></div>
Endif
Endif
if not $codelike==0
Print <a class="list2" href="#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yF/r/TgAEdYq1f2o.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="thich$xturl1" type="display1" /></a> <a href="#like" class="list2"> <img src="https://static.xx.fbcdn.net/rsrc.php/v3/yZ/r/hW2384CGXQP.png" alt="like" width="32"> <tx:widget label_0="0" tool="Counter" id="xt.c.a.t." key="2130399" xtuser="muathu" idstring="yeuthich$xturl1" type="display1"/></a> <a class="list2" href="#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yU/r/R291QkfEhae.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="haha$xturl1" type="display1" /></a> <a class="list2" href="#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yV/r/ltkAOOk-PHI.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="wow$xturl1" type="display1" /></a> <a class="list2" href="#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yY/r/K9IxPOWrczW.png" alt="like" width="32">  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="buon$xturl1" type="display1" /></a> <a class="list2" href="#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yi/r/V7hJbT3mp1e.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="phanno$xturl1" type="display1" /></a><br />bạn đã đánh giá bài viết này vào lúc: $timelike
Else
Print <a class="list2" href="$xturl1?like=thich#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yF/r/TgAEdYq1f2o.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="thich$xturl1" type="display1" /></a> <a href="$xturl1?like=yeuthich#like" class="list2"> <img src="https://static.xx.fbcdn.net/rsrc.php/v3/yZ/r/hW2384CGXQP.png" alt="like" width="32"/> <tx:widget label_0="0" tool="Counter" id="xt.c.a.t." key="2130399" xtuser="muathu" idstring="yeuthich$xturl1" type="display1"/></a> <a class="list2" href="$xturl1?like=haha#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yU/r/R291QkfEhae.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="haha$xturl1" type="display1" /></a> <a class="list2" href="$xturl1?like=wow#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yV/r/ltkAOOk-PHI.png" alt="like" width="32"/>  <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="wow$xturl1" type="display1" /></a> <a class="list2" href="$xturl1?like=buon#like" />
<img src="https://static.xx.fbcdn.net/rsrc.php/v3/yY/r/K9IxPOWrczW.png" alt="like" width="32"/> <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="buon$xturl1" type="display1" /></a> <a class="list2" href="$xturl1?like=phanno#like" /><img src="https://static.xx.fbcdn.net/rsrc.php/v3/yi/r/V7hJbT3mp1e.png" alt="like" width="32"/> <tx:widget tool="Counter" id="xt.c.a.t." label_0="0" key="2130399" xtuser="muathu" idstring="phanno$xturl1" type="display1" /></a> 
Endif 
Print </div></div> 
<!--/parser:xtscript-->

Nguồn: Kusdinks

(0)
- Tổng số 1 bình luận và lượt xem

Online: [0]Khách: [1]
GetSmile..!Thiết kế bởi SINO-