Untitled Shanti

2009年2月21日追記:

*公式のnotes表示が最新版となりました。いろいろ対応されて過去記事の機能のほぼすべてをカバーするものとなりました。(Reblog Tree以外)
Theme designers: Notes are now available in tumblelogs | Tumblr Staff

*** 以下は過去記事として残します。無効になったわけではありません。***

cxx:

gkojax:

タンブラー実験くんのテンプレートを晒しておく
最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。

scriptが不要になった

新しい変数が追加されたことで、scriptが不要になったようです。ということで、備忘録のため新しい方法を追記。

Reblog notes variables

変数自体は記事固有のPost IDを表示するだけなので、Reblog notes 変数ではないのですが、これを使うことでscriptを使って実現していたことが簡単に出来るようになったということになります。

以前のscript部分を削除して、notesを表示するソースを以下のように変更。

<a target="_blank" href="http://www.tumblr.com/dashboard/notes/{PostID}/OY9NpboAI" class="notes" title="Reblog notes">○</a>

新しく追加された変数 { PostID }を使用(前後の半角スペースは削除)。ユーザー固有の文字列「OY9NpboAI」は各自のものを追加。これだけ。簡単になりました。

関連項として、vostoneさんの「Reblog Tree」が面白いです。先ほどの追加したnotesのアドレス部分をリンク先のものに変更するとツリー状の視覚効果をほどこしたものになります。
例:Reblog Tree (この記事のReblog Treeです)

Tumblr Reblog Tree のソース (Perl, jQuery)

vostone:

Tumblr Reblog Tree
http://stone.dialog.jp/tumblr/notes/

ソースをダウンロードできるようにしました。

Download : reblog-tree.zip (3KB)

レスポンスいただきました。ありがとうございます。勉強になります。

Link
自分のTumblrにpostのreblog数を画像で表示させる - cxxの日記 - たんぶら部 - Tumblove -

*** 以下は過去記事として残します。無効になったわけではありません。***

The explanation in English is here. (a random Tumblr - Reblog Notes Script)

Dashboard の notes をとりあえず表ページでも見られるように下の HTML 片を custom HTML に加えた。”uIojWsJsR” はユーザに固有の文字列で、その post の直接の投稿者(reblog の場合は reblog した方のユーザ)に対応したものと一致している必要がある。自分の文字列は Dashboard の HTML ソースから分かり、他のユーザに関してもそのユーザが first post となっている画像ファイル名の最初の 9 文字が対応している。文字列 “{Permalink }” の中には本来空白は入っていない。Dashboard notes にはアクセス制限はないので、URI が分かれば誰でも見られる。

<a href=”javascript:var s=’{Permalink }’,id=s.substring(s.lastIndexOf(‘/’)+1,s.length); window.open(‘http://www.tumblr.com/dashboard/notes/’ +id+’/uIojWsJsR’,’_blank’, ‘width=400,height=600,scrollbars=1,resizable=1’);undefined;”>show notes in 3new window</a>

訂正:ユーザ固有の文字列は誰のものであれ Dashboard にそのユーザの post を表示した状態で HTML ソースを見ると確認できる。’/dashboard/notes/21704328/uIojWsJsR’ と言った文字列の末尾がその post の投稿者のそれ。しかし任意のユーザの文字列を簡単に確認する手段がないので、Dashboard 以外から Greasemonkey スクリプトで自分のもの以外の notes にアクセスするようなことは難しい。

cxx

Reblog notes script 改

cxxさんが上記scriptをさらに進化させたものを使用されていたので、ソースを拝見してそのまま使用させていただきました。感謝! 以下備忘録のためadded 。

<script type="text/javascript">
    function show_notes(s) {
          id=s.substring(s.lastIndexOf('/')+1,s.length);
          window.open('http://www.tumblr.com/dashboard/notes/'+id+'/OY9NpboAI','_blank','width=500,height=600,scrollbars=1,resizable=1');
    }
</script>

上記ソースをheadタグ内に追加。ユーザ固有の文字列 “OY9NpboAI” の部分は各自変更。

<a href="#" onclick="show_notes('{Permalink }');return false;" class="notes">reblog notes</a>

上記タグを任意の位置に追加。Permalink後の半角スペースは削除。class=”notes”を追加してあるので、CSSで調節。

reblog notes script

#content div.post div.inner div.date a.note {
        display: block;
        font: normal 18px/18px "Trebuchet MS",Arial,Helvetica,sans-serif;
        color: #e8e8e8;
        background: none;
        border: none;
        _color: #aaa;
	_width: 20px;
}
#content div.post div.inner:hover div.date a.note, #content div.post div.inner div.date a:hover.note {
        color: #aaa;
}

(2009-02-21 revision [mark *])

   90 notes    via cxx / cxx

  1. sametimesameplace reblogged this from piyopiyokattie
  2. piyopiyokattie reblogged this from 1vv4
  3. ssgrm reblogged this from shanti
  4. wakuteka reblogged this from syoichi
  5. syoichi reblogged this from shanti
  6. gkojay reblogged this from gkojax
  7. myhoney0079 reblogged this from shanti and added:
    以下は過去記事として残します。無効になったわけではありません。 ***
  8. katsuma reblogged this from toratorazero and added:
    Dashboard の notes をとりあえず表ページでも見られるように下の HTML 片を custom HTML に加えた。”uIojWsJsR” はユーザに固有の文字列で、その post の直接の投稿者(reblog の場合は...
  9. toratorazero reblogged this from gkojax
  10. reretlet reblogged this from kagurazakaundergroundresistance and added:
    Dashboard の notes をとりあえず表ページでも見られるように下の HTML 片を custom HTML に加えた。”uIojWsJsR” はユーザに固有の文字列で、その post の直接の投稿者(reblog の場合は...
  11. gkojax reblogged this from kagurazakaundergroundresistance and added:
    この辺りの最新情報はhttp://tumblr.g.hatena.ne.jp/cxx/20081013/1223878579かな
  12. kagurazakaundergroundresistance reblogged this from gkojax
  13. tsupo reblogged this from plasticdreams
  14. twink reblogged this from plasticdreams
  15. plasticdreams reblogged this from shanti and added:
    以下は過去記事として残します。無効になったわけではありません。 ***
  16. 1vv4 reblogged this from shanti and added:
    以下は過去記事として残します。無効になったわけではありません。 ***
  17. tyzm reblogged this from kanal
  18. qiring reblogged this from testof
  19. kanal reblogged this from zokuzoku and added:
    タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。 scriptが不要になった...
  20. zokuzoku reblogged this from vhudy6tx4dik9ol
  21. sakurasakuras reblogged this from vhudy6tx4dik9ol
  22. vhudy6tx4dik9ol reblogged this from testof
  23. testof reblogged this from shanti and added:
    タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。
  24. kisato reblogged this from shanti and added:
    タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。
  25. owata reblogged this from shanti and added:
    href="http://www.tumblr.com/dashboard/notes/{ PostID }/OY9NpboAI" class="notes">○
  26. zokuzoku reblogged this from tohya and added:
    * cxx: タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。 scriptが不要になった...
  27. tsupo reblogged this from lomo
  28. m0dest reblogged this from shanti and added:
    href="http://www.tumblr.com/dashboard/notes/{ PostID }/OY9NpboAI" class="notes">○
  29. bibliomanias reblogged this from new-akiba
  30. lennel reblogged this from handa
  31. tohya reblogged this from milkyway9
  32. shigesa reblogged this from handa
  33. milkyway9 reblogged this from lomo
  34. iyoupapa reblogged this from lomo
  35. new-akiba reblogged this from lomo
  36. yungsang reblogged this from shanti and added:
    href="http://www.tumblr.com/dashboard/notes/{ PostID }/OY9NpboAI" class="notes">○...で、...
  37. joker1007 reblogged this from tsuyoshi
  38. lomo reblogged this from handa
  39. tsuyoshi reblogged this from handa
  40. handa reblogged this from shanti and added:
    タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。
  41. tsuyoshi reblogged this from plasticdreams
  42. plasticdreams reblogged this from cxx
  43. whimsy reblogged this from shanti and added:
    http://www.tumblr.com/dashboard/notes/’...cxx さんが上記 script...
  44. torasshu reblogged this from shanti and added:
    cxx さんが上記 script をさらに進化させたものを使用されていたので、ソースを拝見してそのまま使用させていただきました。感謝! 以下備忘録のため、そのコードなど使用法を added
  45. sakurasakuras reblogged this from saronpasu
  46. saronpasu reblogged this from joker1007
  47. qiring reblogged this from shanti and added:
    cxx さんが上記 script をさらに進化させたものを使用されていたので、ソースを拝見してそのまま使用させていただきました。感謝! 以下備忘録のため、そのコードなど使用法を added
  48. shigesa reblogged this from qiring and added:
    function show_notes(s) { id=s.substring(s.lastIndexOf('/')+1,s.length);...
  49. tsupo reblogged this from lomo and added:
    &lt;br /&gt;...{&lt;br /&gt;...
  50. lomo reblogged this from muibrog
  51. saronpasu reblogged this from tsuyoshi
  52. muibrog reblogged this from toratorazero
  53. tsuyoshi reblogged this from toratorazero
  54. 54kan reblogged this from toratorazero
  55. toratorazero reblogged this from rnyhrt
  56. plasticdreams reblogged this from browneyes and added:
    { id=s.substring(s.lastIndexOf('/')+1,s.length);...
  57. ontheroad reblogged this from browneyes
  58. whimsy reblogged this from cannabis-h
  59. fialux reblogged this from cannabis-h
  60. cannabis-h reblogged this from browneyes
  61. cxx reblogged this from fialux
  62. browneyes reblogged this from shanti and added:
    cxxさんのソースを参考にさせていただきました。感謝! 以下備忘録のためadded。
  63. shanti reblogged this from cxx and added:
    2009年2月21日追記: *公式のnotes表示が最新版となりました。いろいろ対応されて過去記事の機能のほぼすべてをカバーするものとなりました。(Reblog Tree以外) Theme designers: Notes are now...
  64. kasei-san reblogged this from cxx
  65. malmrashede reblogged this from sui
  66. sn reblogged this from sui
  67. sui reblogged this from cxx
  68. cannabis-h reblogged this from tobsoya4
  69. iro reblogged this from tobsoya4
  70. tobsoya4 reblogged this from vhudy6tx4dik9ol
  71. vhudy6tx4dik9ol reblogged this from tabito
  72. yamarena reblogged this from cxx
  73. browneyes reblogged this from dara-j
  74. plasticdreams reblogged this from cxx
  75. tabito reblogged this from lomo
  76. lomo reblogged this from cxx
  77. ontheroad reblogged this from plasticdreams
  78. plasticdreams reblogged this from freedomcat
  79. dara-j reblogged this from gkojax
  80. tsuyoshi reblogged this from iro
  81. iro reblogged this from gkojax
  82. gkojax reblogged this from nakano
  83. freedomcat reblogged this from nakano
  84. nakano reblogged this from cxx
  85. cxx posted this
« Older    Newer »