# nico_comment.rb # # You can distribute this file under the GPL2. # # add_header_proc do imagewidth = 320; imageheight = 240; durationsec = 10; result = <<-EOS EOS end def nico_comment( max = 15, imageurl='none', *except ) sep = '' comlist = [] @diaries.each_value do |diary| diary.each_comment do |comment| next unless comment.visible? comlist << "#{CGI::escapeHTML( comment.name )}¡§¡Ö#{CGI::escapeHTML( comment.body )}¡×" end end if comlist.size > max comlist = comlist.slice(comlist.size - max, max) end result = [] if (imageurl == 'none') result << '