(oscar) 打開 oscar Blog 首頁
設定
啟動 Gallery 外掛模組
*
Gallery 的 embed.php 檔案完整路徑 (如: /usr/share/gallery2/embed.php).
*
在 LifeType 中執行 Gallery 功能時所用的連結.
*
目前已經無作用, 請輸入 / 就可以了.
*
Gallery main.php 的路徑.

a) 使用不用虛擬主機時:

Gallery 安裝於 /usr/share/gallery2
LifeType 網址是 http://blog.teatime.com.tw
Gallery 網址是 http://gallery.teatime.com.tw
LifeType 的 blog 代碼是 123
要顯示的圖片區塊是隨機選擇 Gallery 內 v/tommy_baby 這個相簿內的相片

設定如下:

embed.php 所在路徑: /usr/share/gallery2/embed.php
embedUri 參數: blog.teatime.com.tw/index.php?op=gallery&blogId=123
g2Uri 參數: gallery.teatime.com.tw/main.php
圖片區塊: randomImage
Gallery 項目代碼: /tommy_baby


b) 使用相同虛擬主機時:

Gallery 安裝於 /home/abc/public_html/gallery2
LifeType 安裝於 /home/abc/public_html/blog
LifeType 網址是 http://www.teatime.com.tw/~abc/blog
Gallery 網址是 http://www.teatime.com.tw/~abc/gallery2
LifeType 的 blog 代碼是 321
要顯示的圖片區塊是指定 Gallery 內 v/tommy_baby/abc/123.jpg 這張相片

設定如下:

embed.php 所在路徑: /home/abc/public_html/gallery2/embed.php
embedUri 參數: /blog/index.php?op=gallery&blogId=321
g2Uri 參數: /gallery2/main.php
圖片區塊: specificItem
Gallery 項目代碼: /tommy_baby/abc/123.jpg

選擇要顯示的圖片區塊, 可以是下面選項中的一個或數個, 當選擇不只一個選項時, 請使用 | 分隔
 * randomImage|recentImage|viewedImage|randomAlbum|recentAlbum|viewedAlbum|specificItem
 * dailyImage|weeklyImage|monthlyImage|dailyAlbum|weeklyAlbum|monthlyAlbum
選擇在圖片區塊中要顯示的文字訊息, 可以是下面選項的一個或數個, 如果選擇不只一個選項時, 請使用 | 分隔
 * title|date|views|owner|heading|fullSize 或者不要顯示時, 請填入 'none'
圖片區塊所要顯示的相片或相簿在 Gallery 的項目代碼. 也就是一般在 Gallery 中, 使用的 itemId 參數 (如果沒有使用 rewrite 功能, 應該在 URL 上頭可以看到). 或者是相片或相簿的路徑 (在使用 rewrite 功能後, Gallery 通常用 /v/abc/def/ijk.jpg 來表示相片, 或 /v/abc/def 來表示相簿, 這時路徑就是 /abc/def/ijk.jpg 或 /abc/def, 就是表前頭的 /v 移除就對了). 如果你要使用的是路徑, 請在最前頭加上 / 字元, 以避免路徑剛好是數字時, 會被認為是項目代碼. 如果你的圖片區塊選擇 'specificItem' 時, 這個欄位就必須輸入正確的資料.
PS. 如果圖片區塊選擇 'randomImage', 且這個欄位輸入的是相簿的項目代碼或路徑, 表示隨機顯示該相簿內的相片.

顯示 Gallery 的 side bar. (試不出選不選有什麼差別)
在 Gallery 的 side bar 中顯示歡迎訊息. (試不出選不選有什麼差別)
在 Gallery 的 side bar 中顯示瀏覽路徑. (試不出選不選有什麼差別)