前言介紹
- 這款 WordPress 外掛「wp-twitpic」是 2009-09-03 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2009-10-22,距離現在已有 5674 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.0.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
realin |
外掛標籤
image | twitpic | twitter | shortcode |
內容簡介
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,否則圖像無法呈現。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「wp-twitpic」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
Post Snippets – Custom WordPress Code Snippets Customizer 》, 建立自訂短碼和可重複使用的內容,並將它們插入到您的文章和頁面中。, , 此外掛讓您建立 HTML、PHP 程式碼或常用文字片段的庫。在文章和頁面中,您可以使用...。