[WordPress] 外掛分享: Polaroid on the Fly

首頁外掛目錄 › Polaroid on the Fly
10+
安裝啟用
尚無評分
6116 天前
最後更新
問題解決
WordPress 2.3+ v0.7 上架:2007-09-18

內容簡介

此外掛可在文章縮圖中即時建立圖片的拍立得效果,同時支援 Lightbox。基於改版 Polaroid-o-nizer v0.7.2 源碼建立。

我想要在文章縮圖上模擬 Google Picasa 所能達到的拍立得效果。我找到了一個稱為 WP-Polaroidonizer 的外掛,可以在某種程度上達成我的需求,但這與我想要的感覺不一致。

我對 Polaroid-o-nizer 和 WP-Polaroidonizer 的另一個問題是安全性不足。當我提到安全性不足時,預設上沒有辦法限制外部網站與使用者使用您的 Polaroid-o-nizer 安裝來產生拍立得照片。

此外掛的目標是使用 rel= style HTML img 標籤,將簡單的 URL 轉換為 Lightbox URL,其中可以在您的文章中顯示縮圖,連結至可使用 Lightbox 或任何 Lightbox 複製品 / 替代品載入的圖片。

需求

PHP 的 GD 模組
Lightbox - 並非必要,但推薦若您希望網頁上有漂亮的 AJAX/Javascript 圖像疊加

升級方式

透過 WordPress 的「外掛」選單停用外掛
刪除 /wp-content/plugins/ 目錄中之前的 polaroid-on-the-fly 資料夾
上傳新的 polaroid-on-the-fly 資料夾到 /wp-content/plugins/ 目錄
透過 WordPress 的「外掛」選單啟用外掛

使用方法

在文章中以以下格式建立圖像連結:

請確認包含 rel="polaroid",這會啟用外掛。

若包含 alt="Picture [album]",則列在此處的 Picture 部分會顯示為 Lightbox 中的圖像標題,而 [album] 部分會將多個圖像分組成名為 album 的相簿。這不是必要的 alt 標籤,若使用,則無需 [album] 部分。閱讀 Lightbox 使用說明以了解詳細資訊。
請確認每個 HTML img 標籤置於單獨一行上。
此外掛支援以下圖像格式:jpg、png、gif

注意:

請勿使用視覺編輯器來進行上述操作,請使用程式碼編輯器。

待辦事項

新增 x 和 y 偏移的功能
新增旋轉角度的功能
為偏移和角度增加其他錯誤報告
為選項頁面新增功能,以在網站其他位置產生 URL。
新增功能,以緩存 Polaroid 圖像。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Polaroid on the Fly」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Creates polaroids of images on the fly for thumbnails in posts. Support for lightbox included. Built on modified Polaroid-o-nizer v0.7.2 sources.
I wanted to mimic the Polaroid look that you can achieve with Google Picasa to add thumbnails to my posts. I found a plugin titled WP-Polaroidonizer that did what I wanted to some extent but it didn’t have the right feel to it.
The other problem I have with Polaroid-o-nizer and WP-Polaroidonizer is the lack of security. When I mention lack of security there is by default no way to restrict external sites and users from generating Polaroid pictures using your installation of Polaroid-o-nizer.
The goal of this plugin was to use rel= style html img tags to transform a simple URL into a Lightbox URL in which there is a thumbnail image in your post which is linked to an image that can be loaded using Lightbox or any of the Lightbox clones/alternatives.
Requirements

PHP GD Module
Lightbox – Not really a requirement but a recommendation if you want to have a nice ajax/javascript image overlay on your page.

Upgrade

Deactivate the plugin through the ‘Plugins’ menu in WordPress
Delete the previous polaroid-on-the-fly folder from the /wp-content/plugins/ directory
Upload the new polaroid-on-the-fly folder to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress

Usage

Create an image link in your post in the following format:

Be sure to include rel="polaroid" as this activates the plugin.

If alt="Picture[album]" is included the portion listed here as Picture will be displayed as the image title in Lightbox and the portion listed as [album] will group multiple pictures into an album called album. The alt tag is not required and if used the [album] portion is not required. Read the Lightbox usage for more details on Titles and albums.
Be sure to place each html img tag on a separate line.
This plugin supports the following image formats: jpg, png, gif

NOTE:
Do not use the visual editor for doing the above use the code editor.
To Do

Add features for x and y offset
Add features for rotation angle
Add additional error reporting for the offset and angle
Add functionality to options page to generate a URL for placement elsewhere on the site.
Add functionality to cache the polaroid images.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon