File: README.en

package info (click to toggle)
tdiary 2.2.1%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 14,044 kB
  • ctags: 2,796
  • sloc: ruby: 32,562; lisp: 514; makefile: 83; sh: 72; sql: 40
file content (17 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
amazonimg.rb

This CGI script is getting image URLs of items in Amazon by ASIN.
On tDiary running on secure mode, you cannot use amazon.rb plugin.
But if use this script, you can get images.

How to use:

* modify settings of amazonimg.rb. see header of this script.
   * You MUST set @cache_path. Make executable by Web server.
   * If you have Amazon Associate ID, set @amazon_aid.
   * and see comments other variables.

* Copy amazonimg.rb under place to be able to run by CGI.

* add script URL to @options['amazon.secure-cgi'] in your tdiary.conf
  it running on secure mode (@secure = true).