[WordPress] 外掛分享: BMI Wrong Image Link Fix

首頁外掛目錄 › BMI Wrong Image Link Fix
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
3627 天前
最後更新
問題解決
WordPress 3.0+ v0.2 上架:2014-03-12

內容簡介

ByteMobile 公司提出了一個偉大的想法:即時傳送壓縮圖片!所以,如果您使用的提供商(例如 Vodafone)與 ByteMobile 合作,他們很可能會在您的手機螢幕上提供壓縮的圖片。這是如何運作的:

當您訪問一個網頁時,這個網頁包含了圖片。您的提供商會把圖片的 SRC 屬性改寫成 http://1.1.1.1/bmi/[url],這樣,一個經過壓縮的圖片就等著您了。

我不想討論這種方法的優缺點,但對於使用行動裝置進行文章編輯的 WordPress 管理員和編輯人員而言,這可能會是一個巨大的問題。

這種方法會破壞您的圖片 URL,所以您無法正確儲存圖片,甚至圖片無法正常顯示。BMI Wrong Image Link Fix 現在解決了這個問題。

它會透過「save_post」和「edit_post」方法來檢查,並且會將錯誤的圖片 URL 重新寫入正確的 URL。

目前已知的錯誤 URL 列表如下,此外,如果您有遇到其他 URL 的問題,請隨時與我聯繫以更新程式碼。

1.1.1.1/bmi/
1.1.1.2/bmi/
1.1.1.3/bmi/
1.1.1.4/bmi/
1.1.1.5/bmi/
1.2.3.4/bmi/
1.2.3.9/bmi/
1.2.3.10/bmi/
1.2.3.11/bmi/

更多資訊請參閱http://websupporter.net/blog/mobile-users-attention-editing-blogposts-from-mobile-can-inject-wrong-image-paths/

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「BMI Wrong Image Link Fix」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The company ByteMobile came up with a great idea: Deliver compressed images instantly! So,
if your Provider ( e.g. Vodafone ) cooperates with ByteMobile, they will most likely deliver
compressed pictures on your mobile screen. How this works:
You call a webpage and this webpage contains images. Your provider now rewrites these SRC-Attributes
to http://1.1.1.1/bmi/[url] and there a compressed picture is waiting for you.
I don’t want to discuss the advantages and disadvantages of this method, but for WordPress Admins
and Editors, who are using Mobil to edit blogposts, this can be a huge problem.
By this method, your Image-URLs can be overwritten, so you dont save
but

In the end, the picture won’t show up at all. BMI Wrong Image Link Fix helps now with this problem.
It hooks into the ‘save_post’ and ‘edit_post’-methods and rewrites the wrong Image URLs to the correct
one.
At the moment the following wrong URLs are known, and this plugin can correct them:

1.1.1.1/bmi/
1.1.1.2/bmi/
1.1.1.3/bmi/
1.1.1.4/bmi/
1.1.1.5/bmi/
1.2.3.4/bmi/
1.2.3.9/bmi/
1.2.3.10/bmi/
1.2.3.11/bmi/

If you are fighting with another URL, pleaes contact me, so we can update the code.
More information at http://websupporter.net/blog/mobile-users-attention-editing-blogposts-from-mobile-can-inject-wrong-image-paths/

延伸相關外掛

文章
Filter
Mastodon