Monday, January 21, 2008

Thay đổi số Label hiển thị trong Label Widget

Mỗi bài viết của bạn đều cần được đặt vào một hay nhiều Label nhằm tăng Traffic. Có thể bạn sẽ gặp rắc rối với việc có quá nhiều Label trong Label Widget. Vậy tại sao lại không làm gọn Label Widget bằng cách chỉ hiển thị những Label có từ hai hay ba bài viết trở lên?

Giới hạn số Label

Để giới hạn số Label sẽ hiển thị trong Label Widget, bạn hãy đăng nhập vào Dashboard và click Layout. Nếu bạn chưa có một Label Widget, hãy click "Add a Page Element" và chọn "Labels".
Sau khi đã thêm Label Wiget vào Blog, bạn click vào Edit HTML(Một lưu ý nhỏ : luôn lưu template của mình lại trước khi thay đổi những đoạn code trong Template). Bạn click vào Expand Widget Templates.







Trong bảng code, bạn tìm đoạn code dưới đây:

<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<span expr:dir='data:blog.languageDirection'>
<data:label.name/>
</span>
<b:else/>
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>
<data:label.name/>
</a>
</b:if>
<span dir='ltr'>(<data:label.count/>)</span>
</li>
</b:loop>
</ul>

<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

và thay toàn bộ đoạn code trên bằng đoạn code dưới đây:

<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<ul>
<script type='text/javascript'>
var labelnum = 0;
<b:loop values='data:labels' var='label'>
if (<data:label.count/> &gt; 2) {
document.write(&quot;<li><a expr:href='data:label.url + "?max-results=100"'
rel='nofollow'><span><data:label.name/></span></a>(<data:label.count/>)</li>&quot;);
}
</b:loop>
</script>
</ul>
<b:include name='quickedit'/>
</b:includable>
</b:widget>

Đoạn code dưới đây có tác dụng chỉ hiển thị các label có từ 2 bài viết trở lên trong Label Widget. Nếu bạn muốn hiển thị các label có số bài viết nhiều hơn, bạn có thể thay số hai bằng các số khác.
if (<data:label.count/> &gt; 2) {
Preview và save.

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!


4 comments:

Moms Life Blog said...

cool blog! love it:) interesting one:) care to xlink?

Moms Life Blog said...

or do u do xlink? or no? ;let me know:)

Tài chính doanh nghiệp said...

Hiệp ơi, có thích một cái tên miền đại loại như:

http://crazyboy89.haitvonline.com không anh tặng cho 1 cái. Chứ để kiểu blogspot hay bị chặn lắm đó, nhiều người không vào được đâu

Có gì thì alo cho anh nhé!

Anonymous said...

Adult dating and sex dating offers you the chance for hooking up with sexy people and swingers