Saturday, December 22, 2007

Tạo Label Cloud

Bài viết này tôi sẽ giới thiệu tới các bạn một cách tạo label cloud đơn giản ( xin chú ý rằng cách này chỉ áp dụng được với các layout template, không dùng cho Classic template ).


Việc đầu tiên là :bạn hãy lưu lại Template.
Sau đó hãy vào Page Elements, và tạo 1 widget Label (nếu bạn có rồi thì có thể bỏ qua bước này). Sau đó hãy tới Edit HTML và chắc chắn rằng ô Expand Widget Templates chưa được đánh dấu. Xem hình:

Trong bảng mã, bạn hãy tìm thẻ ]]></b:skin> và chèn đoạn mã dưới đây lên trên nó:(các bạn click vào phía trên bên trái của bảng dưới đây để xem)





Bây giờ bạn hãy chèn đoạn mã sau đây xuống dưới thẻ ]]></b:skin&gt nhưng phải ở phía trước thẻ </head>

Sau khi làm xong bước trên bạn hãy tìm đoạn mã :


<b:widget id='Label1' locked='false' title='Labels' type='Label'/>

Hãy thay thế đoạn mã trên bằng đoạn mã dưới đây:


Đến đây là bạn đã có Label Cloud rồi đó. Nếu sau khi làm nhưng bước này mà label cloud không xuất hiện, bạn hãy thử kiểm tra xem mình có mắc phải những sai lầm dưới đây ko nhé:

  • Hãy chắc chắn rằng bạn có nhiều hơn 1 label.
  • Lable của bạn không chứa nhưng kí tự " hay '.
  • Label của bạn có quá nhiều kí tự cũng khiến cho label cloud khó xuất hiện (cái này là kinh nhiệm bản thân mình)
Sau khi cài đặt thành công, bạn có thể chỉnh sửa mầu sắc, kích thước chữ. Tôi sẽ hướng dẫn các bạn ngay bây giờ:

* var cloudMin= 1;
Đây là mã thể hiện số label trong label cloud. Nếu bạn điền số 1, tất cả label của bạn sẽ được thể hiện. Nếu bạn điền vào đó số cao hơn thì số label sẽ được thể hiện tương ứng với số đó.

* var maxFontSize = 20;
var minFontSize = 10;

Đây là mã xác định kích cỡ chữ, đơn vị độ dài ở đây là pixcel. Bạn có thể điền những giá trị mình muốn vào đó.

* var maxColor = [0,0,255];
var minColor = [0,0,0];

Đây là mã xác định mầu sắc. Ở đây sư dụng định dang mầu sắc RBG. Bạn có thể tìm mã mầu sắc bằng các phần mềm như: ColorSchemer Studio OSX

* varlcShowCount = false;

Nếu bạn muốn hiển thị số bài viết ở mỗi label hãy thay false thành True

Ở đây tôi chỉ giới thiệu qua một số tính năng cơ bản mà bạn có thể thay đổi được. Nhưng bạn còn có thể thay đổi label cloud nhiều hơn nữa nếu bạn muốn. Chúc các bạn sẽ tạo được Label Cloud như ý muốn.


Cám ơn các bạn đã theo dõi bài viết. Mong sẽ nhận được nhiều ý kiến đóng góp từ các bạn để giúp hoàn thiện nội dung bài viết hơn..
Chúc các bạn có 1 ngày vui vẻ!










AdSense Earning = Impression-count x Click-though-rate x Cost-per-click x smart-pricing-factor.impression count is basically referring to increase your traffic. It means the number of times AdSense secret block is displayed.Click-through-rate (CTR) is ratio of clicks per impressions. It can range from 0.1% to 30%, but most commonly around 1% to 10%.Cost-per-click (CPC) is the earning money you get per click. While traditionally it refers to the amount advertisers pay for each click, it can also mean the amount publishers get for each click.Smart-pricing is AdSense method to determine how valuable clicks from your site is worth. If clicks on your site doesn’t provide good value to advertisers, e.g. from visitors’ geo-location that seldom translate to sales, you will only get a fraction of the supposed CPC.Don’t encourage your visitors to click on ads. The only acceptable text is “Sponsored Links” and “Advertisements”.When in doubt don’t hesitate to contact the AdSense team. They are very helpful.Use Overture Bid Tool and Search Engine Keyword Tool to find suitable keyword.Submit your URL to search engines for crawling.Google is not the only search engine. Optimize for different engines as well. You are very likely to face less competition than in Google.Search engines are where most of your new visitors come from. Learn a bit about Search Engine Optimization, or pay people to do it. Doing it yourself will save yourself from troubles created by not-so-honorable SEO (Search Engine Optimizer).Try 300×250 medium rectangle, 336×280 large rectangle, or 160×600 wide skyscraper ad formats. These are the best performing AdSense ad formats.Wrap the AdSense block around your content.AdSense have both CPM (cost per thousand impressions) and CPC (cost per click) ads, and will choose the one it thinks can perform better.Adsense tips have in here.SearchAdSense Tipson Google. Most webmasters continuously try to optimize their AdSense and many are more than willing to share their result.You can get help of other AdSense pulishers at AdSense Help Group.Remove the “Advertise on this sitefrom your AdSense block until your site is big enough to attract real advertisers. This will help to clear off many MFA (made-for-adsense) sites. You can disable it from AdSense account setting.Use AdSense Competitive Ads Filter to remove irrelevant ads.Try variations of AdSense colors, format, position on different pages to make it more unpredictable for your visitors.Watch your AdSense tips earning. Notify AdSense hack Team if you find anything suspicious. Your competitors might try to sabotage your account, or your well-meaning friend keep on clicking on the ads thinking they are helping you.Use Google AdSense section targeting to help AdSense deliver more relevant ads.Let earning money!money!


1 comment:

Anonymous said...

sao cái này mình không lấy được code vậỵ