Personal tools

Refererの多い順ランキング

by ats posted at 2004-04-28 15:46 last modified 2005-10-18 23:02

COREBlogRefererPluginを使うと,こんなこともできちゃいます。検索結果(search_result)を元にして,referer_plugin.referer_ids()を使ってループを組みます。表示に使うロジックはこんな感じ。

<dtml-in "referer_plugin.referer_ids()" mapping sort=count reverse>
<dtml-with "get_entry(entry_id)">
<h3 class="title">
<a href="<dtml-var blogurl>/<dtml-var id>">
<dtml-var title>
</a>
(<dtml-var count>)</h3>
<div class="posted">
Posted by <b><dtml-var author></b> at...
...
</div><br clear=all />
</dtml-with>
<dtml-else>
No match.
</dtml-in>

dtml-inについているオプション,mapping sort=count reverseがキモですね。

Googleでアバクロを検索すると,ウチのエントリが17位くらいに出てくる関係で,Yahooなどのサイトからの導入が増えている模様。。。セレブのみなさまごめんなさいm(_ _)m。でも並行輸入した方が安いしいろいろ選べるので楽しいですよ。あ,くれぐれもブカブカには着ないでくださいね,あのブランドは「ピッタリめ」が基本ですので。。。

Category(s)
COREBlog
The URL to Trackback this entry is:
http://coreblog.org/ats/305/tbping

Referer Ranking Module

Posted by JuNya KOBORI's Miscellaneous Impressions Page at 2005-10-18 23:02
柴田さんの このエントリー を参考(というかほとんどパクリ)に、Referer Ranking Module なるものを作ってみました。
Add comment

You can add a comment by filling out the form below. Plain text formatting.

(Required)
(Required)
(Required)
(Required)
コメントスパム避けのための認証文字列です

Captcha Image

About this blog
■Author
atsこと柴田淳です。この記事を読んでいただくと,技術者としての人となりを分かってもらえるかも。
Webcore株式会社 代表取締役
Plone上で動く,オープンソースのBlog Product - COREBlog2を使って運用しています。

 
最近書いた本,Mook
みんなのPython 改訂版
Python使いはもちろん,プログラミングの初心者から,他言語からの移行組までご好評いただいているPythonの定番入門書の第2版です。Python 3.0を含む最新の情報について加筆を行い,より読みやすいように構成を大幅に見直しました。第一版をお持ちの方にもお役立ていただける内容になっています。
みんなのPython Webアプリ編
Pythonの基礎から,Webアプリやフレームワークの仕組みまで,つまることなく一気に学べる書籍です。「みんなのPython」と一緒に読んでください:-)。
 

Powered by Plone, the Open Source Content Management System