上周在测试Blogger的点阅次数的功能失败了,今天终于透过[Blogger Hacks]测试 MyHotPost 及增加每篇文章的点阅次数,知道可以藉由MyHotPost的JavaScript点阅数来完成这个功能:
文中的举例:
<!-- quickedit pencil -->
<b:include data='post' name='postQuickEdit'/>
</span> <span class='post-backlinks post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.showBacklinks'>
<a class='comment-link' expr:href='data:post.url "#links"'><data:top.backlinkLabel/></a>
</b:if>
</b:if>
</span> </div>
但是我的例子是这样:
<!– quickedit pencil –>
<b:include data=’post’ name=’postQuickEdit’/>
</span> <div class=’post-share-buttons’>
<b:include data=’post’ name=’shareButtons’/>
</div> </div>
<div class=’post-footer-line post-footer-line-2′><span class=’post-labels’>
<b:if cond=’data:post.labels’>
<data:postLabelsLabel/>
<b:loop values=’data:post.labels’ var=’label’>
<a expr:href=’data:label.url’ rel=’tag’><data:label.name/></a><b:if cond=’data:label.isLast != "true"’>,</b:if>
</b:loop>
</b:if>
</span> </div>
不太一样,后来我就直接加在<!– quickedit pencil –>的前面了:
点阅数:<script charset=’UTF-8′ src=’http://myhotpost.kengao.tw/jscript/pinfo/5c1f71515749faceebb67f8d95b31d18′ type=’text/javascript’/>
<!– quickedit pencil –>
<b:include data=’post’ name=’postQuickEdit’/>
</span> <div class=’post-share-buttons’>
<b:include data=’post’ name=’shareButtons’/>
</div> </div>
<div class=’post-footer-line post-footer-line-2′><span class=’post-labels’>
<b:if cond=’data:post.labels’>
<data:postLabelsLabel/>
<b:loop values=’data:post.labels’ var=’label’>
<a expr:href=’data:label.url’ rel=’tag’><data:label.name/></a><b:if cond=’data:label.isLast != "true"’>,</b:if>
</b:loop>
</b:if>
</span> </div>
一样红色这段要用MyHotPost给你的才可以!测试成功,Ya~!
想请教一要如何将blog首页的点阅数弄成不是1呢?
记得myhotpost官方好像有说过要点进文章内部才有办法显示正确的点阅数~
想请教一要如何将blog首页的点阅数弄成不是1呢?
记得myhotpost官方好像有说过要点进文章内部才有办法显示正确的点阅数~