2010/2/09



Tumblrのカスタマイズについての基本的なまとめです。
カスタマイズは、自分のTumblrの右上の「Customize」から行うことが出来ます。基本は、タイトルや説明文の入力、アイコン画像の設定、テーマの変更などですね。その他テーマの変更で「custom HTML」を指定してタグを入力していくことで、自分好みにカスタマイズしていくことが出来ます。

使えるのはHTMLの他、下記のページで定義されているTumblr独自のタグ。これを使用すると様々な情報を記載することが出来ます。

Creating a custom HTML theme | Tumblr

また、テンプレートにはJavaScriptを記述してWidgetを動かすことも出来ます。



以下、簡単なカスタマイズ例です。



Followしている人の一覧を表示する

Tumblrタグ{block:Following}で実装できます。以下はあるテンプレートに記載されていた実装例です。

{block:Following}
<h4>Tumbleroll</h4>
<ul id="following">
  {block:Followed}
  <li><a href="{FollowedURL}"><img src="{FollowedPortraitURL-24}" alt="{FollowedName}"/></a></li>
  {/block:Followed}
</ul>
{/block:Following}

{block:Following}で開始を宣言し、{block:Followed}~{/block:Followed}内にそれぞれの処理を記述。{FollowedPortraitURL-24}の「24」は、アイコン画像のサイズを指しています。この場合は、24px×24pxで表示されます。



Google Analyticsでアクセス数を集計する

Tumblrのヘルプに記載されています。

Using Google Analytics | Tumblr

Google Analyticsのコードを適当なところに貼れば普通に動作するようです。ヘルプ内ではコードを「Description」内に記述し、それを{Description}タグを使ってCustom HTML内に記述すると言うことをやっていますが、直接Custom HTMLに記述しても特に問題ありません。



タグクラウドを表示する(追記あり)

Tumblrってタグを付けることが出来るのに、付けられたタグの一覧(タグクラウド)を表示するためのタグが用意されてないんですよね…というわけで、タグクラウドを作成するときにはこちらのスクリプトを使用します。

Tumblr Tag Clouds v.2

導入の仕方はGoogle Analyticsと同じで上記のページのスクリプトを表示させたい場所に貼り付けてやるだけ。フォントサイズなどはコードをいじって指定してやる必要があります。

<!-- Start Tumblr Tag Cloud -->
<script type="text/javascript" src="http://code.hr1v.com/jquery.1.2.6.min.js"></script><script type="text/javascript" src="http://tumblrtags.hr1v.com/widget.js?css=default&minsize=120&maxsize=280"></script>
<!-- End Tumblr Tag Cloud -->

フォントサイズを表す引数「minsize」「maxsize」の単位は%です。まぁ数字が大きすぎるからそりゃそうだよなーっていう感じですが(計算も楽になるだろうし)最初素でピクセルだと思って設定してしまってえらく小さくなってしまいました(苦笑)

問題点としては…このスクリプト読み込みが致命的に遅いんですよね。。。もうちょっとサクッと表示してくれると良いんですけど。


(追記:2009/04/25)

Tumblr Tag Cloudsの遅さに業を煮やして自分で作ってしまいました。

Tumblr Tag Cloud Maker | Tumblrにタグクラウドを設置するスクリプト

Tumblr Tag Cloudsとの違いは、Tumblr Tag Cloudsが毎回動的にタグを取得する(APIで全Postを巡回)のに対して、タグに関する情報を保存してそこからタグクラウドを書き出す点です。当然Tumblr Tag Cloudsに比べて非常に高速なのですが、Tagの変更に対処できないという欠点があります。個人的にはそんなにタグの編集はしないので気にならないのですが。
もしよろしければご利用下さい。



自分のTumblrにnotesを表示する

自分のエントリをReblogした人、また自分がReblogするまでに様々なアクションをおこした人、それらはDashboardでは「notes」という形で表示されていますが、それぞれのTumblrでは表示されていません。これを表示するには{PostNotes}というタグを入れてやればOKです。自分のエントリに表示されます。

Theme designers: Notes are now available in tumblelogs | Tumblr Staff

またnoteの数には{NoteCount}で取得・表示できます。これはエントリ一覧にも表示されます。



最初にPOSTした人をアイコン付きで表示する

最初にPOSTした人の情報は、{ReblogRoot*}というタグで取得できます。
以下、記述例。

i*mage*s - ??誾

{block:RebloggedFrom}
  Posted By: <a href="{ReblogRootURL}"><img src="{ReblogRootPortraitURL-16}" alt="{ReblogRootName}"/> {ReblogRootName}</a></li>
{/block:RebloggedFrom}

コードだけではCSSは適用されていないので、「Customize » Advanced » Add custom CSS」から適宜設定のこと。




以下、また何かあれば順次更新します。




オマケ:Tumblrのカスタマイズ方法は見つけづらい

最近、画像の保管を目的としてTumblrをよく利用しています。

i*mage*s

しかしまぁ、デフォルトの状態だと使いやすいとは言えないので(Dashboardをつらつら眺めながらReblogしていくのが本来の使い方で、アーカイヴ見直すとか特定のグループのエントリにアクセスしやすくするとかそういうのはあんまり一般的な使い方ではないかもしれないけど)、色々カスタマイズとかtipsとか情報を集めてるんだけど、みんなTumblr自体に情報が集積しているせいなのか、なんか有効な情報があまり見つけられなくて。どこかにまとめwikiでもあればいいんだけど。いやむしろ、Tumblrに集まってればそれでよくね?ってのが真のTumblrユーザーってことなのかな。うーむ。

【メモ】 Tumblrに関する情報あれこれまとめ。 - nplll: Mutter (via netclip) (via a2onaka) (via blendy999) (via otsune)

This post was reblogged from otsune tumblr まとめサイト 画像保管庫Q.

  1. -nobby- reblogged this from fishandmush
  2. -nobby- reblogged this from ftnk
  3. orzccc reblogged this from aerith
  4. watoon reblogged this from naimononedari
  5. curo1012 reblogged this from bbb222
  6. atm09td reblogged this from ukar
  7. ryka reblogged this from petapeta
  8. tama-cha reblogged this from oiteke
  9. tofoo reblogged this from petapeta
  10. adamas2 reblogged this from naimononedari
  11. naimononedari reblogged this from reretlet
  12. ukar reblogged this from lolicsystem
  13. multi reblogged this from nashi-kyo
  14. oiteke reblogged this from petapeta
  15. erewwa reblogged this from reretlet
  16. bbb222 reblogged this from typem1death
  17. yukari-telepath reblogged this from kentax
  18. judago reblogged this from mell
  19. kentax reblogged this from reretlet
  20. typem1death reblogged this from nobody2knows
  21. iroha reblogged this from petapeta
  22. mell reblogged this from petapeta
  23. korori reblogged this from reretlet
  24. dondokosusumu reblogged this from rtaf
  25. r-y-o reblogged this from petapeta
  26. lolicsystem reblogged this from windog0530
  27. cyclestumblr reblogged this from hyasuura
  28. nashi-kyo reblogged this from petapeta
  29. tumblon reblogged this from reretlet
  30. windog0530 reblogged this from hyasuura
  31. habrare reblogged this from petapeta
  32. nobody2knows reblogged this from reretlet
  33. tk78 reblogged this from reretlet
  34. middlevillagemiddle reblogged this from petapeta
  35. tybx reblogged this from petapeta
  36. aerith reblogged this from scudroid
  37. okayaisoyakan reblogged this from petapeta
  38. hyasuura reblogged this from reretlet
  39. papapantu reblogged this from scudroid
  40. w210 reblogged this from petapeta
  41. maskedrider88 reblogged this from scudroid
  42. rtaf reblogged this from petapeta
  43. petapeta reblogged this from reretlet
  44. scudroid reblogged this from reretlet
  45. reretlet reblogged this from dnsystem
  46. dnsystem reblogged this from katoyuu
  47. ricochet- reblogged this from realtime24
  48. realtime24 reblogged this from sudoko
  49. hibiky reblogged this from aosakana
  50. aosakana reblogged this from mnak
  51. 46107 reblogged this from netclip
  52. mnak reblogged this from gkojaz
  53. gkojaz reblogged this from udonchan
  54. raitu reblogged this from udonchan
  55. hamyam reblogged this from kml
  56. harupong reblogged this from otsune
  57. yuumemo reblogged this from otsune
  58. odahinata reblogged this from iyoupapa
  59. aspara reblogged this from 00a
  60. mug-g reblogged this from 3mz
  61. fumi1ts reblogged this from otsune
  62. oppeke reblogged this from malmrashede
  63. yaetin reblogged this from katoyuu
  64. rhcc reblogged this from kml
  65. ryka reblogged this from petapeta
  66. kirikiri reblogged this from petapeta
  67. xenop reblogged this from hc1m
  68. 00a reblogged this from ohmizaiju
  69. peneleap reblogged this from fuckyeahtanaka
  70. ax2sys reblogged this from otsune
  71. tohya reblogged this from eirxvi
  72. tholly98 reblogged this from igi
  73. korori reblogged this from otsune
  74. ohmizaiju reblogged this from hyasuura
  75. giffie11 reblogged this from a2onaka
  76. judago reblogged this from vmconverter
  77. k32ru reblogged this from kondot
  78. zenigata reblogged this from petapeta
  79. zbpt reblogged this from norito
  80. seawalk reblogged this from kondot
  81. miyamya reblogged this from petapeta
  82. abebetaro reblogged this from joker1007
  83. niwa-re reblogged this from kml
  84. kuroko-neko reblogged this from kisarazu
  85. fuckyeahtanaka reblogged this from fishandmush
  86. yudaimori reblogged this from aiueo0313
  87. hyasuura reblogged this from lee2424
  88. kisarazu reblogged this from kyokutyo
  89. kyokutyo reblogged this from 3mz
  90. aiueo0313 reblogged this from girio
  91. girio reblogged this from reblogparade
  92. igi reblogged this from katoyuu
  93. pvc reblogged this from katoyuu
  94. gamelanrocker reblogged this from otsune
  95. coluli reblogged this from kondot
  96. rtaf reblogged this from petapeta
  97. kim41 reblogged this from petapeta
  98. softbear reblogged this from petapeta
  99. lee2424 reblogged this from kondot
  100. malmrashede reblogged this from petapeta
  101. thbt78 reblogged this from otsune
  102. nga reblogged this from otsune
  103. 3mz reblogged this from otsune
  104. macotoi reblogged this from otsune
  105. tkashiwagi reblogged this from petapeta
  106. reblogparade reblogged this from petapeta
  107. mitsa reblogged this from hisajun
  108. ryusoul reblogged this from petapeta
  109. loopa reblogged this from petapeta
  110. bittanmomen reblogged this from petapeta
  111. joker1007 reblogged this from petapeta
  112. pepepepe reblogged this from petapeta
  113. petapeta reblogged this from rollstone
  114. kondot reblogged this from nagas
  115. hisajun reblogged this from sudoko
  116. amitank reblogged this from kml
  117. x2 reblogged this from katoyuu
  118. wktksan reblogged this from katoyuu
  119. littlerodem reblogged this from blendy999
  120. iesp reblogged this from sndmkt
  121. oharico reblogged this from sndmkt
  122. lye reblogged this from katoyuu
  123. sudoko reblogged this from t01353ak
  124. t01353ak reblogged this from katoyuu
  125. wfsp reblogged this from 7bit
  126. hsmt reblogged this from kazcorp
  127. eirxvi reblogged this from kml
  128. ntdsk reblogged this from kazcorp
  129. chevaliernoir634 reblogged this from nagas
  130. nagas reblogged this from rollstone
  131. tawagoto reblogged this from katoyuu
  132. gbender reblogged this from kml
  133. xxmagxx reblogged this from blendy999
  134. rollstone reblogged this from katoyuu
  135. 7bit reblogged this from katoyuu
  136. newsmemo reblogged this from katoyuu
  137. footwork reblogged this from katoyuu
  138. demae reblogged this from katoyuu
  139. norito reblogged this from yu5yam
  140. kazcorp reblogged this from katoyuu
  141. katoyuu reblogged this from otsune
  142. okashi reblogged this from otsune
  143. jasonss reblogged this from vmconverter
  144. hagakun reblogged this from otsune
  145. mugen8764 reblogged this from hc1m
  146. textpon reblogged this from kml
  147. rakiwasing reblogged this from hc1m
  148. gues reblogged this from kml
  149. hc1m reblogged this from kml
  150. fuji-yoshi reblogged this from otsune
  151. tumblon reblogged this from otsune
  152. stay-foolish reblogged this from kml
  153. tutshie reblogged this from vmconverter
  154. minaonememo reblogged this from otsune
  155. benzon reblogged this from a2onaka
  156. sryuuki reblogged this from otsune
  157. ume75 reblogged this from tiga
  158. vmconverter reblogged this from kml
  159. ikuri reblogged this from otsune
  160. keijirou reblogged this from kml
  161. diegoro reblogged this from kml
  162. oise reblogged this from kml
  163. makototz reblogged this from udonchan
  164. hopper-bopper reblogged this from kml
  165. phyllite reblogged this from otsune
  166. ryo-ta reblogged this from otsune
  167. ftnk reblogged this from otsune
  168. kimi17 reblogged this from otsune
  169. tiga reblogged this from xlheads
  170. darekadesu reblogged this from chipon
  171. wakefield49 reblogged this from lovecake
  172. kazuh reblogged this from otsune
  173. imokenpix reblogged this from otsune
  174. unknown-bridge reblogged this from otsune
  175. yu5yam reblogged this from otsune
  176. tatitubo reblogged this from otsune
  177. ryka reblogged this from otsune
  178. ayu reblogged this from blendy999
  179. hidk reblogged this from otsune
  180. gorouzaemon reblogged this from xlheads
  181. aksin reblogged this from otsune
  182. unikko-juice reblogged this from otsune
  183. sndmkt reblogged this from xlheads
  184. ktsukago reblogged this from ishida
  185. mtng reblogged this from otsune
  186. lovecake reblogged this from iyoupapa
  187. xlheads reblogged this from blendy999
  188. ishida reblogged this from otsune
  189. ishida reblogged this from otsune
  190. udonchan reblogged this from otsune
  191. penguincafe reblogged this from otsune
  192. omanchi reblogged this from fishandmush
  193. hanzouhati reblogged this from otsune
  194. lickkane reblogged this from otsune
  195. key0901 reblogged this from otsune
  196. majigire reblogged this from otsune
  197. norick reblogged this from otsune
  198. k32ru reblogged this from otsune
  199. akyashic reblogged this from iyoupapa
  200. kaisuicentre reblogged this from iyoupapa
  201. bridgestone reblogged this from otsune
  202. keyboardmania reblogged this from otsune
  203. allok reblogged this from stratums
  204. futuro78 reblogged this from otsune
  205. sugizou reblogged this from otsune
  206. yume21 reblogged this from otsune
  207. takamasa reblogged this from otsune
  208. lome reblogged this from otsune
  209. atmk reblogged this from otsune
  210. fileo reblogged this from otsune
  211. tb303tr808tr909 reblogged this from otsune
  212. n-o-k-a reblogged this from otsune
  213. hagakure08 reblogged this from otsune
  214. iyoupapa reblogged this from otsune
  215. saitamanodoruji reblogged this from otsune
  216. hagimasa reblogged this from otsune
  217. aiwendil reblogged this from otsune
  218. chipon reblogged this from hirmax
  219. gazouhokanko reblogged this from blendy999
  220. hirmax reblogged this from otsune
  221. stratums reblogged this from otsune
  222. otsune reblogged this from blendy999
  223. fai-zero reblogged this from blendy999
  224. blendy999 reblogged this from a2onaka
  225. a2onaka reblogged this from netclip
  226. a2onaka reblogged this from netclip
  227. netclip posted this