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