[WordPress] 外掛分享: wp-twitpic

首頁外掛目錄 › wp-twitpic
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
5991 天前
最後更新
問題解決
WordPress 2.0.2+ v1.0 上架:2009-09-03

內容簡介

Twitter 已與幾乎每個博客相關聯,而與 Twitter 相關的應用程序也是如此。我最近在我的博客上分享了一個 Twitpic API 類別,之後我收到很多關於分享代碼的請求,可以讓您在博客文章中插入 twitpic.com 上的圖像。
然而,我覺得把它限制在我的博客用戶上不如與全球社區分享更好。我很快將在此插件中添加許多其他應用程序。敬請期待。

您可以更改圖像的大小、URL、對齊方式等。啟動插件並使用 [twitpic id=hash] 開始使用。

使用方法

使用 wp-twitpic 插件非常簡單。確保在插件頁面上啟用了該插件,並在撰寫博客文章時使用以下任何一個 shortcode 來顯示來自 Twitpic 的圖像。
wp-twitpic 使用由 twitpic 提供的唯一哈希(id)來在您的文章中顯示圖像。此唯一哈希(id)可以在 twitpic URL 中找到。例如,鏈接 http://twitpic.com/d63jg 具有哈希(id) d63jg,可以在以下短程式中使用。

如果要插入來自 twitsnaps 的圖像,請在以下短程式示例中將 twitpic 替換為 twitsnaps。圖像的唯一 id 可以在 twitsnaps URL 中找到。例如,鏈接 http://twitsnaps.com/full_photo.php?img_id=14624 具有 ID 14624 可以在以下短程式中使用。

顯示 twitpic 縮略圖像與 twitpic URL。
[twitpic id=d63jg]

顯示全尺寸圖像
[twitpic id=d63jg size=full]

指定圖像的對齊方式。 在以下情況中,CSS 類別也被分配為 'alignright'。
[twitpic id=d63jg size=full align=right]

覆蓋默認 URL(應具有以'http://'為前綴)
[twitpic id=d63jg size=full align=right myurl=http://www.digimantra.com]

指定圖像的不同 CSS 類別
[twitpic id=d63jg class=border2]

指定 alt 標籤(注意引號圍繞 alt 值,因為其中有白色空格)
[twitpic id=d63jg alt=”my alt value”]

指定沒有任何 URL 的圖像
[twitpic id=d63jg url=0]

注意:您可以在任何組合中使用上述選項。唯一的強制性部分是指定 id,否則圖像無法呈現。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

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

原文外掛簡介

Twitter has come into almost every blog and so does the twitter related applications. I shared a twitpic API class on my blog recently and after that I have got many requests about a sharing the code which allows you to insert an image from the twitpic.com into the blog posts.
However instead of limiting it to my blog users, I thought its a better idea to share it with the community across the globe. I will be adding many more applications in this plugin pretty soon. Stay tuned for more.
You can change size, url, alignment etc. of the image. To get kickstart activate the plugin and use [twitpic id=hash].
Usage
It is fairly simple to use wp-twitpic plugin. Make sure the plugin is activated on the plugin’s page and use any of the following shortcode while writing your blog post to display image from the twitpic.
wp-twitpic uses the unique hash (id) provided by twitpic to display image in your post. This unique hash(id) can be found in the twitpic URL. For instance the link http://twitpic.com/d63jg has the hash(id) d63jg , which can be used in the following shortcodes.
If you want to insert images from twitsnaps, replace twitpic with twitsnaps in the following shortcode examples. The unique id for images can be found in the twitsnaps URL. For instance the links http://twitsnaps.com/full_photo.php?img_id=14624 has the id 14624 and can be used in the following shortcodes.
Display twitpic thumb image with twitpic url.
[twitpic id=d63jg]
Display a full size image
[twitpic id=d63jg size=full]
Specify the alignment of the image.In the following case the css class is also assigned as ‘alignright’
[twitpic id=d63jg size=full align=right]
Override the default URL(should have http:// prefixed)
[twitpic id=d63jg size=full align=right myurl=http://www.digimantra.com]
Specify a different css class to the image
[twitpic id=d63jg class=border2]
Specify alt tag (note the quotes around the alt value, as it has white spaces in it)
[twitpic id=d63jg alt=”my alt value”]
Specify an image without any URL
[twitpic id=d63jg url=0]
NOTE: You can use the above options with any combination. The only mandatory part is to specify an id, if it is not passed the image won’t be able to render.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon