
Admin
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 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
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/ và 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/
.
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
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
Code:
url-co-dang-nay
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-->
why: đây là file đặt blog của wap mình . Ae đặt blog ở file nào thì thay vào .
http://vinhbao3g.com/ và 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/

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>
xong rồi đấy