[Share] code cập nhật tin nhắn hình ra index xtgem

  • Thread starter Thread starter yoona
  • Start date Start date
yoona

yoona

New Member
code này mình không dùng nữa nên share,ai biết thì thôi
demo đề mô
đầu tiên tạo thư mục: tin-nhan-hinh
trong thư mục đó tạo 2 file index và tin-nhan-hinh
dán code này vào file tin-nhan-hinh vừa tạo
Code:
<!--parser:xtscript-->get t
get tr
  include yeusinhvien.***tgem.com/xt/xem.xt
assign $output=call yeusinhvien.***tgem.com@xem $input=$t;
assign $content=call source $file=/$output; $html_safe=0; $nl2br=0; $space2nbsp=1 
assign $haystack = $content
  assign $needle =<xt:code>
assign $text = call strstr $haystack=$haystack; $needle=$needle; $before_needle=0;
  assign $text2 = call strstr $haystack=$haystack; $needle=$needle; $before_needle=0;
  assign $text2 = call str_replace $subject=$text2; $search=<br/>; $replace=;
  assign $text2 = call str_replace $subject=$text2; $search=</xt:code>; $replace=;
  assign $text2 = call str_replace $subject=$text2; $search=</body>; $replace=;
  assign $text2 = call str_replace $subject=$text2; $search=</html>; $replace=;
  print <div class="menu">Tên: $t<br/>Đăng bởi: admin<br/>Thể loại: <a href="/tin-nhan-hinh">tin nhắn hình</a></div>
  print <div class="box"><center>$text</center></div>
  print <center><a href="/tin-nhan-hinh">Menu tin nhắn</a></center>
<!--/parser:xtscript-->
dán code này trong file index vừa tạo
Code:
<!--parser:xtscript-->include yeusinhvien.***tgem.com/xt/tinnhan.xt
call yeusinhvien.***tgem.com@tinnhan $tn=/tin-nhan-hinh;
<!--/parser:xtscript-->
bây giờ dán code này vào trang chủ mà bạn muốn tin nhắn mới xuất hiện
Code:
<!--parser:xtscript-->include yeusinhvien.***tgem.com/xt/tinnhan_in.xt
call yeusinhvien.***tgem.com@tinnhan $tn=/tin-nhan-hinh;
<!--/parser:xtscript-->
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
518
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
8
Views
6K
hideonair
hideonair
Admin
Replies
3
Views
13K
AdminAdmin is verified member.
Admin
Admin
Replies
9
Views
14K
dinhluc1194
D
Npnken
Replies
3
Views
4K
AdminAdmin is verified member.
Admin
SuperTroll
Replies
0
Views
2K
SuperTroll
SuperTroll
Back
Top