Reblog notes script >> Reblog notes variables
2009年2月21日追記:
*公式のnotes表示が最新版となりました。いろいろ対応されて過去記事の機能のほぼすべてをカバーするものとなりました。(Reblog Tree以外)Theme designers: Notes are now available in tumblelogs | Tumblr Staff
*** 以下は過去記事として残します。無効になったわけではありません。***
cxx:
タンブラー実験くんのテンプレートを晒しておく。
最近{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)
Tumblr Reblog Tree
http://stone.dialog.jp/tumblr/notes/ソースをダウンロードできるようにしました。
Download : reblog-tree.zip (3KB)
レスポンスいただきました。ありがとうございます。勉強になります。
*** 以下は過去記事として残します。無効になったわけではありません。***
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 にアクセスするようなことは難しい。
— cxxReblog 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で調節。

#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 *])
-
sametimesameplace
reblogged this from
piyopiyokattie
-
piyopiyokattie
reblogged this from
1vv4
-
ssgrm
reblogged this from
shanti
-
zuneo liked this
-
kaiji liked this
-
krgm liked this
-
wakuteka
reblogged this from
syoichi
-
syoichi
reblogged this from
shanti
-
gkojay
reblogged this from
gkojax
-
myhoney0079
reblogged this from
shanti
and added:
以下は過去記事として残します。無効になったわけではありません。 ***
-
katsuma
reblogged this from
toratorazero
and added:
Dashboard の notes をとりあえず表ページでも見られるように下の HTML 片を custom HTML に加えた。”uIojWsJsR” はユーザに固有の文字列で、その post の直接の投稿者(reblog の場合は...
-
toratorazero
reblogged this from
gkojax
-
reretlet
reblogged this from
kagurazakaundergroundresistance
and added:
Dashboard の notes をとりあえず表ページでも見られるように下の HTML 片を custom HTML に加えた。”uIojWsJsR” はユーザに固有の文字列で、その post の直接の投稿者(reblog の場合は...
-
gkojax
reblogged this from
kagurazakaundergroundresistance
and added:
この辺りの最新情報はhttp://tumblr.g.hatena.ne.jp/cxx/20081013/1223878579かな
-
kagurazakaundergroundresistance
reblogged this from
gkojax
-
tsupo
reblogged this from
plasticdreams
-
twink
reblogged this from
plasticdreams
-
plasticdreams
reblogged this from
shanti
and added:
以下は過去記事として残します。無効になったわけではありません。 ***
-
1vv4
reblogged this from
shanti
and added:
以下は過去記事として残します。無効になったわけではありません。 ***
-
tyzm
reblogged this from
kanal
-
qiring
reblogged this from
testof
-
kanal
reblogged this from
zokuzoku
and added:
タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。 scriptが不要になった...
-
zokuzoku
reblogged this from
vhudy6tx4dik9ol
-
sakurasakuras
reblogged this from
vhudy6tx4dik9ol
-
vhudy6tx4dik9ol
reblogged this from
testof
-
testof
reblogged this from
shanti
and added:
タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。
-
kisato
reblogged this from
shanti
and added:
タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。
-
owata
reblogged this from
shanti
and added:
href="http://www.tumblr.com/dashboard/notes/{ PostID }/OY9NpboAI" class="notes">○
-
zokuzoku
reblogged this from
tohya
and added:
* cxx: タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。 scriptが不要になった...
-
tsupo
reblogged this from
lomo
-
m0dest
reblogged this from
shanti
and added:
href="http://www.tumblr.com/dashboard/notes/{ PostID }/OY9NpboAI" class="notes">○
-
bibliomanias
reblogged this from
new-akiba
-
lennel
reblogged this from
handa
-
tohya
reblogged this from
milkyway9
-
shigesa
reblogged this from
handa
-
milkyway9
reblogged this from
lomo
-
iyoupapa
reblogged this from
lomo
-
new-akiba
reblogged this from
lomo
-
yungsang
reblogged this from
shanti
and added:
href="http://www.tumblr.com/dashboard/notes/{ PostID }/OY9NpboAI" class="notes">○...で、...
-
joker1007
reblogged this from
tsuyoshi
-
lomo
reblogged this from
handa
-
tsuyoshi
reblogged this from
handa
-
handa
reblogged this from
shanti
and added:
タンブラー実験くんのテンプレートを晒しておく。 最近{PostID}というタグ({PostID})が出来たことによって「show detail on this post」が書きやすくなってました。
-
tsuyoshi
reblogged this from
plasticdreams
-
plasticdreams
reblogged this from
cxx
-
whimsy
reblogged this from
shanti
and added:
http://www.tumblr.com/dashboard/notes/’...cxx さんが上記 script...
-
torasshu
reblogged this from
shanti
and added:
cxx さんが上記 script をさらに進化させたものを使用されていたので、ソースを拝見してそのまま使用させていただきました。感謝! 以下備忘録のため、そのコードなど使用法を added
-
sakurasakuras
reblogged this from
saronpasu
-
saronpasu
reblogged this from
joker1007
-
qiring
reblogged this from
shanti
and added:
cxx さんが上記 script をさらに進化させたものを使用されていたので、ソースを拝見してそのまま使用させていただきました。感謝! 以下備忘録のため、そのコードなど使用法を added
-
shigesa
reblogged this from
qiring
and added:
function show_notes(s) { id=s.substring(s.lastIndexOf('/')+1,s.length);...
-
tsupo
reblogged this from
lomo
and added:
<br />...{<br />...
-
lomo
reblogged this from
muibrog
-
saronpasu
reblogged this from
tsuyoshi
-
muibrog
reblogged this from
toratorazero
-
tsuyoshi
reblogged this from
toratorazero
-
54kan
reblogged this from
toratorazero
-
toratorazero
reblogged this from
rnyhrt
-
plasticdreams
reblogged this from
browneyes
and added:
{ id=s.substring(s.lastIndexOf('/')+1,s.length);...
-
ontheroad
reblogged this from
browneyes
-
whimsy
reblogged this from
cannabis-h
-
fialux
reblogged this from
cannabis-h
-
cannabis-h
reblogged this from
browneyes
-
cxx
reblogged this from
fialux
-
browneyes
reblogged this from
shanti
and added:
cxxさんのソースを参考にさせていただきました。感謝! 以下備忘録のためadded。
-
shanti
reblogged this from
cxx
and added:
2009年2月21日追記: *公式のnotes表示が最新版となりました。いろいろ対応されて過去記事の機能のほぼすべてをカバーするものとなりました。(Reblog Tree以外) Theme designers: Notes are now...
-
kasei-san
reblogged this from
cxx
-
malmrashede
reblogged this from
sui
-
sn
reblogged this from
sui
-
sui
reblogged this from
cxx
-
cannabis-h
reblogged this from
tobsoya4
-
iro
reblogged this from
tobsoya4
-
tobsoya4
reblogged this from
vhudy6tx4dik9ol
-
vhudy6tx4dik9ol
reblogged this from
tabito
-
yamarena
reblogged this from
cxx
-
browneyes
reblogged this from
dara-j
-
plasticdreams
reblogged this from
cxx
-
tabito
reblogged this from
lomo
-
lomo
reblogged this from
cxx
-
ontheroad
reblogged this from
plasticdreams
-
plasticdreams
reblogged this from
freedomcat
-
dara-j
reblogged this from
gkojax
-
tsuyoshi
reblogged this from
iro
-
iro
reblogged this from
gkojax
-
gkojax
reblogged this from
nakano
-
freedomcat
reblogged this from
nakano
-
nakano
reblogged this from
cxx
-
cxx
posted this
