[WordPress] 外掛分享: Skydrv-hotlink

前言介紹

  • 這款 WordPress 外掛「Skydrv-hotlink」是 2012-06-05 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2014-07-04,距離現在已有 3958 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

dpchiesa |

外掛標籤

google | social | widget |

內容簡介

skydrv-hotlink 是一個 WordPress 外掛。

Onedrive 是 Microsoft 提供的基於雲端的儲存服務,可以在 http://onedrive.com 中使用。它是免費的,運作得非常好,並與 Microsoft Office 和 Windows 完美整合。以前它被稱為 Skydrive。

問題在於 Onedrive 不易為位於其中的文件提供直接下載連結。假設您想分享在 Skydrive 中存在的文件。您點擊 "分享 "按鈕,Skydrive 給你一個鏈接,然後你可以嵌入任何網頁。

但是,該鏈接不是您要共享的文件的直接下載鏈接。實際的下載鏈接將被嵌入到該頁面中。點擊 Onedrive 提供的 "分享 "鏈接將將用戶帶到 Onedrive,其中他們需要點擊另一個鏈接來下載文檔。

這很好,但在某些情況下,對用戶來說可能不太方便。

這個插件允許 WordPress 博客消除額外的跳躍。
它可以自動將 Onedrive 文檔的鏈接轉換為直接下載鏈接。

它的工作方式如下:

登錄 Onedrive。

選擇要共享的文件。

點擊 "分享 "按鈕。 (見截圖 )

複製(Ctrl-C)該特定文件的鏈接。不要使用 URL 縮短程式。鏈接應該長得像這樣:

https://onedrive.live.com/redir?resid=842434EBE9688900!1169&authkey=!AA4kWNcMStEjSUg&ithint=file%2c.pptx

或是像這樣:

https://onedrive.live.com/redir?resid=842434EBE9688900!1123

在 WordPress 的文章或頁面中插入一個錨點標籤;指定該值作為 href。它應該長得像這樣:

< a src=’https://onedrive.live.com/?id=842434EBE9688900!1123&cid=842434ebe9688900#’
class=’skydrv-hotlink’>下載文件

標記是常規的 HTML 標記,但錨點必須使用特殊類別 'skydrv-hotlink' 進行裝飾。 (見截圖 )

當實際頁面或文章被呈現時,插件將將 href 轉換為直接下載鏈接。轉換後的 href 將長得像這樣:

https://pszy1q.bay.livefilestore.com/y1p…many characters…Qgg/Dino%20Chiesa%20-%20Resume.docx

當用戶點擊該鏈接時,它將直接下載該文件。

注意:直接下載鏈接的有效期有限,因此您不應無限期地保留它。事實上,這就是本插件存在的全部原因。設置插件的緩存週期以設定任何鏈接的壽命。一般來說,我發現連結至少可以保持一個小時。

依賴關係

此插件依賴於 jQuery。
因此,查看您的 WordPress 博客的用戶端必須啟用瀏覽器端 JavaScript。
目標文檔的發布者必須擁有 Onedrive 帳戶。
WordPress 主機必須允許外向 http 連接。(大多數情況下為 true)
WordPress 必須配置為啟用無反應性頁面請求。 (大多數情況下為 true)
PHP 應該啟用 mcrypt。如果沒有啟用,插件的操作將不太安全。

感謝

謝謝您的關注!

您可以在 http://dinochiesa.github.io/Skydrv-hotlink-Donate.html 上捐贈。

查看我的所有插件:
https://wordpress.org/extend/plugins/search.php?q=dpchiesa

-Dino Chiesa

原文外掛簡介

skydrv-hotlink is a WordPress Plugin.
Onedrive is a cloud-based storage service offered by Microsoft, accessible at http://onedrive.com . It’s free. It works nicely and integrates well with Microsoft Office and Windows. Previously it was known as Skydrive.
One problem is that Onedrive does not easily provide direct-download links for the files located on onedrive. Suppose you would like to share a document that exists on your Skydrive. You click the “share” button, and Skydrive gives you a link which you can then embed into any web page.
But, that link is not a direct-download link for the file you intend to share. The actual download link will be embedded within that page. Clicking the “share” link provided by onedrive takes the user to onedrive, where they need to click another link to download the document.
This is fine, but perhaps not as convenient as it could be for users, in some cases.
This plugin allows a wordpress blog to eliminate that extra hop.
It automatically convert links to Onedrive documents into direct-download links.
The way it works:

You login to Onedrive.

Select the file you would like to share.

Click the “share” button. (see screenshot )

Copy (ctrl-C) the link for that particular file. Don’t use the URL shortener. The link should look something like this:

https://onedrive.live.com/redir?resid=842434EBE9688900!1169&authkey=!AA4kWNcMStEjSUg&ithint=file%2c.pptx
or like this:
https://onedrive.live.com/redir?resid=842434EBE9688900!1123

Insert an anchor tag into one of your wordpress posts or one of your
wordpress pages; specify that value as the href. It should look like
this:

Download the file a >
The markup is regular HTML markup, but the anchor must be decorated with the special class ‘skydrv-hotlink’. (see screenshot )

When the actual page or post is rendered, the plugin will transform the href into a direct-download link. The transformed href will look something like this:

https://pszy1q.bay.livefilestore.com/y1p…many characters…Qgg/Dino%20Chiesa%20-%20Resume.docx
When the user clicks that link, it will download the file directly.
Note: The direct-download link has a limited lifetime, so you should not retain it indefinitely. In fact that is the entire reason this plugin exists. Set the cache period for the plugin to set the lifetime of any link. Generally, I’ve found that links are good for at least an hour.
Dependencies

This plugin relies on jQuery.
Therefore the user viewing your wordpress blog must have browser side Javascript enabled.
The publisher of the target document must have a Onedrive account.
The wordpress host must allow outgoing http connections. (true in most cases)
WordPress must be configured to enable curl. (true in most cases)
PHP should have mcrypt enabled. If not, operation of the plugin is less secure.

Thanks
Thanks for your interest!
You can make a donation at http://dinochiesa.github.io/Skydrv-hotlink-Donate.html
Check out all my plugins:
https://wordpress.org/extend/plugins/search.php?q=dpchiesa
-Dino Chiesa

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Skydrv-hotlink」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


trunk | 2012.06.10 | 2012.06.21 | 2012.06.24 | 2012.06.25 | 2012.06.26 | 2012.07.06 | 2014.07.03 | 2012.06.23a |

延伸相關外掛(你可能也想知道)

  • Widgets for Google Reviews 》onal version of our review software, you can:, , , Display unlimited Google Reviews, Customize widget design and behavior, Respond to reviews direc...。
  • Blocksy Companion 》Blocksy Companion 是一個外掛,將 Blocksy 主題轉化為強大的瑞士軍刀工具。, 只有在安裝並啟用 Blocksy 主題時,它才會運行並添加增強功能。, 最小需求, , W...。
  • Black Studio TinyMCE Widget 》此外掛添加了一個新的 Visual Editor 小工具類型,讓您能夠在側邊欄中輕鬆地插入豐富的文字和媒體對象。使用 Black Studio TinyMCE Widget 時,您將能夠使用W...。
  • Widget Importer & Exporter 》Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。...。
  • Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
  • Recent Posts Widget With Thumbnails 》列出最新的文章標題、縮略圖、摘要、作者、類別、日期等等!, 雖然此外掛僅建立在小工具區域,但使用者報告說它在 Elementor 和 Oxygen 上運作順暢。但它是否...。
  • WordPress Popular Posts 》WordPress Popular Posts 是一個高度可定製的小工具,可以顯示您最受歡迎的文章。, 主要特點, , 多小工具功能 – 您可以在您的博客上擁有多個 WordPress...。
  • Widget Logic 》此外掛可在每個小工具中新增一個名為 "Widget logic" 的額外控制欄,讓您控制這個小工具會出現在哪些頁面上。文字欄位允許您使用 WP 的Conditional Tags或任...。
  • Social Media Share Buttons & Social Sharing Icons 》在你的免費測試網站上試試看:點擊此處 => https://tastewp.com/plugins/ultimate-social-media-icons, (這個技巧適用於所有外掛 – 只需在外掛的 WP 存儲庫 ...。
  • Fixed Widget and Sticky Elements for WordPress 》使用 Fixed Widget 外掛可以創建黏貼式的小部件、區塊和其他元素,當用戶向上或向下滾動頁面時,它們會保持在可見的屏幕區域內。, 相較於非固定小工具,黏貼...。
  • PHP Code Widget 》普通的文字小工具允許您插入任意文字和/或 HTML 代碼。這個外掛程式也允許這樣做,但還會解析文本小工具中的任何 PHP 代碼並執行它。, 這可以讓您更輕鬆地遷...。
  • Image Widget 》Image Widget 是一個簡單的外掛程式,利用 WordPress 原生媒體管理員,為您的網站新增圖片小工具。, 需要新增幻燈片、燈箱或隨機圖像嗎?, 請查看 Image Widg...。
  • Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager 》使用 Custom Sidebars,一個靈活的小工具管理器,在您的網站上管理和替換側邊欄和其他小工具區。, 製作自訂側邊欄配置,能夠選擇在您網站的每個頁面或文章上...。
  • Recent Posts Widget Extended 》外掛描述, 此外掛可以啟用自定義、靈活且進階的最新文章功能,您可以透過簡碼或小工具來顯示它。您可以顯示具有縮略圖、摘要和發佈日期的最新文章清單,並且...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。

文章
Filter
Apply Filters
Mastodon