Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  Login

hatena_star.rb - History


  • Added words are showed as here.
  • Removed words are showed as here.
tDiaryへ[[はてなスター|http://s.hatena.ne.jp/]]の機能を追加します.
詳しい使いかたは1次配布先の「[[はてなスターのtDiaryプラグインを作った - Hacking is believing@itoshi.tv|http://itoshi.tv/d/?date=20070711#p02]]」で確認してください.
<<<
# hatena_star.rb
# Itoshi Nikaido <dritoshi at gmail dot com>
# Distributed under the GPL
add_header_proc do
  hatena_star =  '<script type="text/javascript" src="http://s.hatena.ne.jp/js/HatenaStar.js">'
  hatena_star << '</script><script type="text/javascript">'
  hatena_star <<  "<!-- Hatena.Star.Token = '#{@conf['hatena_star.token']}'; -->"
  hatena_star << '</script>'
end

add_conf_proc( 'Hatena::Star', 'Hatena::Star') do
  if( @mode == 'saveconf' ) then
    @conf['hatena_star.token'] = @cgi.params['hatena_star.token'][0]
  end
  <<-HTML
  <h3>Hatena::Star Token</h3>
  <p><input name="hatena_star.token" value="#{@conf['hatena_star.token']}" size=42></P>
  HTML
[[contrib|http://tdiary.cvs.sourceforge.net/tdiary/contrib/plugin/hatena/hatena_star.rb]]
end
>>>
に取りこまれました.

===詳しい使いかたは1次配布先の「[[はてなスターのtDiaryプラグインを作った - Hacking is believing@itoshi.tv|http://itoshi.tv/d/?date=20070711#p02]]」で確認してください.===

Last modified:2019/07/18 04:29:25
Keyword(s):
References: