Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Code này mình kết hợp xtscript,xt funtion và công cụ tìm kiếm tuỳ chỉnh của google để lấy từ khoá dựa vào url . Hỗ trợ tốt nhất cho url có dạng
Code:
url-co-dang-nay
. Code tự động bỏ dấu "/" trong url và thay dấu "-" thành khoảng trắng. Gợi ý cho ae dùng code này kết hợp thêm script để làm blog như wap mình http://vinhbao3g.com/why . . .hàng đây
Code:
Đám mây từ khoá: <!--parser:xtscript-->
assign $tags=<xt:url>
assign $space=call chr $val=32
assign $tags=call str_replace $subject=$tags;$search=why;$replace=<!--[color=red]why[/color];
assign $tags=call str_replace $subject=$tags;$search=#xt_blog;$replace=/--!>;
assign $tags=call str_replace $subject=$tags;$search=[color=blue]http://9xtuoigi.xtgem.com/[/color];$replace= ;
assign $tags=call str_replace $subject=$tags;$search=-;$replace=$space;
assign $tags=call str_replace $subject=$tags;$search=.html;$replace= ;
assign $tags=call str_replace $subject=$tags;$search=[color=blue]http://vinhbao3g.com/[/color];$replace= ;
assign $tags=call str_replace $subject=$tags;$search=index;$replace= ;
assign $tags=call str_replace $subject=$tags;$search=/;$replace=,;
print <a href="http://www.google.com/cse/m?cx=[color=green]000655708458304540088%3Ainy1bd_irpe[/color]&ie=UTF-8&q=$tags">$tags</a>
<!--/parser:xtscript-->
ae copy dán vào footer của wap rồi thay những chỗ sau cho phù hợp với wap bạn :
why: đây là file đặt blog của wap mình . Ae đặt blog ở file nào thì thay vào .
http://vinhbao3g.com/http://9xtuoigi.xtgem.com/ là tên wap và domain quốc tế của mình. .ae cũng thay tên wap ae vào. .nếu ko có domain quốc tế thì để im dòng http://vinhbao3g.com/ :D.
000655708458304540088%3Ainy1bd_irpe là đoạn mã tuỳ chỉnh của wap mình khi sử dụng tìm kiếm tuỳ chỉnh của google . .ae lấy mã của wap tại đây. Sau khi làm theo hướng dẫn và lấy đc đoạn script thế này
Code:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com.vn/jsapi" type="text/javascript"></script>
<script type="text/javascript"> 
  google.load('search', '1', {language : 'vi', style : google.loader.themes.V2_DEFAULT});
  google.setOnLoadCallback(function() {
    var customSearchOptions = {};  var customSearchControl = new google.search.CustomSearchControl(
      '[color=yellow]000655708458304540088:iny1bd_irpe[/color]', customSearchOptions);
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>
thì mã của wap để ae thay vào code là đoạn này 000655708458304540088:iny1bd_irpe . Ae có thể thay dấu : trong mã thành %3A
xong rồi đấy
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
853
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
604
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
4K
AdminAdmin is verified member.
Admin
Back
Top