Người đăng: kiemdaigia on Thứ Hai, 29 tháng 12, 2014

More about

Hướng dẫn lấy bài viết liên quan trong blogspot (blogger)

Người đăng: kiemdaigia on Thứ Năm, 25 tháng 12, 2014

Hướng dẫn lấy bài viết liên quan trong blogspot (blogger), Hướng dẫn lấy bài viết liên quan trong blogspot (blogger).
THực ra những mẫu teamplate blogspot bây giờ người ta đều thêm chức năng này cả rồi nhưng nếu blog của bạn chưa có thì Hôm nay mình sẽ hướng dẫn các bạn cách thực hiện.




Bước 1: Vào cài đặt >> mẫu >> Html

Và chèn đoạn code này bên dưới nơi bạn muốn hiển thị


<b:if cond='data:blog.pageType == "item"'>
<div style='clear:both'/>
<div id='related-posts'>
<script type='text/javascript'>var ry='<h2>Bài viết liên quan</h2>';rn='<h2>Không có Bài viết liên quan</h2>';rcomment='Nhận xét';rdisable='Tắt Nhận xét';commentYN='yes';</script>
<script type='text/javascript'>
//<![CDATA[
var nothumb='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7MxWBcQLq6hm_gMUn_7tpsjqLvI604jyoT8fWW-x1V_mmOYIUNTfMXKoSOQvVqiXNbq23S-OcX3bhBX6-uboiUWDy1aoFQP7-YmqotO4RA9UOgO8M0LZUKN0xnHy0kex3u4W7Y5Q4OLDi/';dw='';titles=new Array();titlesNum=0;urls=new Array();time=new Array();thumb=new Array();commentsNum=new Array();comments=new Array();function related_results_labels(c){for(var b=0;b<c.feed.entry.length;b++){var d=c.feed.entry[b];titles[titlesNum]=d.title.$t;for(var a=0;a<d.link.length;a++){if('thr$total' in d){commentsNum[titlesNum]=d.thr$total.$t+' '+rcomment}else{commentsNum[titlesNum]=rdisable};if(d.link[a].rel=="alternate"){urls[titlesNum]=d.link[a].href;time[titlesNum]=d.published.$t;if('media$thumbnail' in d){thumb[titlesNum]=d.media$thumbnail.url}else{thumb[titlesNum]=nothumb};titlesNum++;break}}}}function removeRelatedDuplicates(){var b=new Array(0);c=new Array(0);e=new Array(0);f=new Array(0);g=new Array(0);for(var a=0;a<urls.length;a++){if(!contains(b,urls[a])){b.length+=1;b[b.length-1]=urls[a];c.length+=1;c[c.length-1]=titles[a];e.length+=1;e[e.length-1]=time[a];f.length+=1;f[f.length-1]=thumb[a];g.length+=1;g[g.length-1]=commentsNum[a]}}urls=b;titles=c;time=e;thumb=f;commentsNum=g}function contains(b,d){for(var c=0;c<b.length;c++){if(b[c]==d){return true}}return false}function printRelatedLabels(a){var y=a.indexOf('?m=0');if(y!=-1){a=a.replace(/\?m=0/g,'')}for(var b=0;b<urls.length;b++){if(urls[b]==a){urls.splice(b,1);titles.splice(b,1);time.splice(b,1);thumb.splice(b,1);commentsNum.splice(b,1)}}var c=Math.floor((titles.length-1)*Math.random());var b=0;if(titles.length==0){dw+=rn}else{dw+=ry;dw+='<ul>';while(b<titles.length&&b<20&&b<maxresults){if(y!=-1){urls[c]=urls[c]+'?m=0'}if(commentYN=='yes'){comments[c]=' - '+commentsNum[c]}else{comments[c]=''};dw+='<li><a href="'+urls[c]+'" rel="nofollow"><img alt="'+titles[c]+'" src="'+thumb[c]+'"/></a><div class="title"><h3><a href="'+urls[c]+'" rel="nofollow">'+titles[c]+'</a></h3><span>'+time[c].substring(8,10)+'/'+time[c].substring(5,7)+'/'+time[c].substring(0,4)+comments[c]+'</span></div></li>';if(c<titles.length-1){c++}else{c=0}b++}dw+='</ul>'};urls.splice(0,urls.length);titles.splice(0,titles.length);document.getElementById('related-posts').innerHTML=dw};
//]]>
</script>
<b:loop values='data:post.labels' var='label'>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels"' type='text/javascript'/>
</b:loop>
<script type='text/javascript'>var maxresults=6;removeRelatedDuplicates();printRelatedLabels('<data:post.url/>');</script>
</div>
<div style='clear:both'/>
</b:if>


Các bạn có thể xem video này :
More about

Hướng dẫn thay đổi giao diện blogspot (blogger) chuyên nghiệp - template blogspot (Phần 2)

Người đăng: kiemdaigia on Thứ Hai, 22 tháng 12, 2014

Hướng dẫn thay đổi giao diện blogspot (blogger) chuyên nghiệp - template blogspot (Phần 2)

More about

Video hướng dẫn thay đổi giao diện blogspot (blogger) chuyên nghiệp - template blogspot (Phần 1)

Người đăng: kiemdaigia on Chủ Nhật, 21 tháng 12, 2014

Hướng dẫn thay đổi giao diện blogspot (blogger) chuyên nghiệp - template blogspot (Phần 1)



More about

Video hướng dẫn thay đổi Favicon cho blogspot (blogger)

Người đăng: kiemdaigia

Video hướng dẫn thay đổi Favicon cho blogspot (blogger)
Mời các bạn xem chi tiết




More about

THIỆP FLASH NOEL (Giáng Sinh) - PHẦN 2

Người đăng: kiemdaigia on Thứ Bảy, 13 tháng 12, 2014

Tương tự như phần 1 (bạn có thể xem TẠI ĐÂY), mỗi tấm thiệp sẽ đem đến cho bạn và gia đình thân yêu một vài câu chúc đầy ý nghĩa kèm theo một bản nhạc du dương khá êm dịu, nhưng ở phần 2 này những câu chúc đã được "Việt hóa" thành những câu chúc Tiếng Việt khá lý thú....
Ứng với mỗi mẫu là đường link file flash phía dưới, bạn có thể bấm vào thẻ Xem các mẫu để xem trước file flash hoặc bấm vào thẻ Download để tải về.
Để dán thiệp flash Neol này vào blog, bạn thêm tiện ích HTML/Javacript (nếu chưa biết cách thêm mời bạn xem TẠI ĐÂY), sau đó copy đoạn code phía dưới dán vào và thay đổi đường link file flash vào dòng lệnh màu xanh "Dán link file flash của bạn ở đây", cuối cùng bấm Lưu là xong.

<center><embed bgcolor="#FFFFFF" height="400" width="550" pluginspage="http://www.macromedia.com/go/getflashplayer" src="Dán link file flash của bạn ở đây " type="application/x-shockwave-flash" >
</embed></cemter>


Nếu code trên Flash không hiển thị, bạn copy code dự phòng này

<embed allowscriptaccess="never" height="600" src="Dán link file flash bạn đã copy ỡ phía dưới mỗi mẫu vào đây" type="application/x-shockwave-flash" width="100%" wmode="transparent"></embed>

Mời các bạn theo dõi phía dưới nha.
https://sites.google.com/site/dungflash/Noel1.swf
Xem mẫu 1  Download



https://sites.google.com/site/dungflash/Noel2.swf
Xem mẫu 2  Download



https://sites.google.com/site/dungflash/Noel3.swf
Xem mẫu 3  Download




https://sites.google.com/site/dungflash/Noel4.swf
Xem mẫu 4  Download



https://sites.google.com/site/dungflash/Noel5.swf
Xem mẫu 5  Download



https://sites.google.com/site/dungflash/Noel6.swf
Xem mẫu 6  Download



https://sites.google.com/site/dungflash/Noel7.swf
Xem mẫu 7  Download



https://sites.google.com/site/dungflash/Noel8.swf
Xem mẫu 8  Download



https://sites.google.com/site/dungflash/Noel9.swf
Xem mẫu 9  Download



https://sites.google.com/site/dungflash/Noel10.swf
Xem mẫu 10  Download



https://sites.google.com/site/dungflash/Noel11.swf
Xem mẫu 11  Download



https://sites.google.com/site/dungflash/Noel12.swf
Xem mẫu 12  Download



https://sites.google.com/site/dungflash/Noel13.swf
Xem mẫu 13  Download



https://sites.google.com/site/dungflash/Noel14.swf
Xem mẫu 14  Download



https://sites.google.com/site/dungflash/Noel15.swf
Xem mẫu 15  Download



https://sites.google.com/site/dungflash/Noel16.swf

Xem mẫu 16  Download



https://sites.google.com/site/dungflash/Noel17.swf
Xem mẫu 17  Download



https://sites.google.com/site/dungflash/Noel18.swf
Xem mẫu 18  Download



https://sites.google.com/site/dungflash/Noel19.swf
Xem mẫu 19  Download



https://sites.google.com/site/dungflash/Noel20.swf
Xem mẫu 20  Download



Nếu thời gian "cho phép", dunghennessy sẽ "post" tiếp phần 3, mời các bạn đón theo dõi...

Nhân dịp Giáng Sinh, dunghennessy xin chúc các bạn và gia đình có ngày Noel đầm ấm, vui vẻ, hạnh phúc và an lành.
MERRY CHRISTMAS AND HAPPY NEW YEAR!!!

More about

Tối ưu file robots.txt cho blogspot

Người đăng: kiemdaigia on Thứ Tư, 10 tháng 12, 2014

Tối ưu file robots.txt cho blogspot - Tối ưu file robots.txt cho blogger

Tìm hiểu file robots.txt là gì?

File robots.txt là một dạng file rất đơn giản có thể được tảo bởi công cụ Notepad. Để các bộ máy tìm kiếm quản lý index nội dung của website bạn.

Cấu trúc của robots.txt của blogspot.

User-agent: Mediapartners-Google
Disallow:
User-agent: *
Allow: /
Disallow: /search
User-agent: Cho những robot tìm kiếm từ Google, Yahoo và MSN nên sử dụng hướng dẫn này của bạn để tìm kiếm trang web.
Allow: / Dòng code này cho phép công cụ tìm kiếm index đọc tất cả nội dung
Disallow: /search: Dòng code này báo cho công cụ tìm kiếm biết nó không nên “lục lọi” ở những file này

Hướng dẫn tạo và sử dụng file robots.txt cho blogspot


  1. Bước 1: Đăng nhập blogspot
  2. Bước 2: Kéo chuột xuống dưới bên tay trái vào "Cài đặt" [Hình 1]
  3. Bước 3: Chọn "Tùy chọn tìm kiếm" trong menu cài đặt
  4. Bước 4: Chọn "Trình thu thập thông tin và lập chỉ mục" bên tay phải của Tùy chọn tìm kiếm [Hình 2]
  5. Bước 5: Chọn "Robots.txt tùy chỉnh" >> "Bật nội dung robots.txt tùy chỉnh"
  6. Bước 6: Copy đoạn code chuẩn này vào khung nhập text và sau đó nhấp "lưu lại"


Hinh 1



Hinh 2







Code chuẩn robots.txt cho blogspot


User-agent: Mediapartners-Google
Disallow:
User-agent: *
Allow: /
Disallow: /search
Disallow: /*?updated-max=*
Disallow: *archive.html
Sitemap: http://blogcuaban/feeds/posts/default?orderby=UPDATED

Còn tùy vào blog bạn chặn trang hoặc thưc mục các bạn tùy chỉnh nhé.
Gợi ý cho các bạn.
Chặn 1 thư mục và mọi thứ nằm trong nó
Disallow: /search
Chặn 1 trang lưu trữ
Disallow: *archive.html
Cũng không khó lắm phải không. Quan trọng là biết dùng đúng cách sao cho phù hợp.
Nếu chưa hiểu hoặc gặp khó khăn khi tạo các bạn cứ comment bên dưới để mình trả lời.

Xin giới thiệu các bạn template blogspot miễn phí
More about