[WordPress] 外掛分享: dlb’s Send-A-Link

前言介紹

  • 這款 WordPress 外掛「dlb's Send-A-Link」是 2013-06-13 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2019-10-13,距離現在已有 2029 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

drandlomb |

外掛標籤

link | send | email | send link | send email |

內容簡介

dlb's Send-A-Link 外掛可讓訪客透過電子郵件傳送包含文章或頁面連結的郵件給其他人。

主要功能包括:

透過在你的樣板中添加功能呼叫或在頁面/文章中添加短碼,顯示給訪客一個傳送電子郵件的連結(圖示和/或文字)。
輸入表單、確認頁和電子郵件都基於易於修改的 HTML 模板。
防止垃圾郵件攻擊,包括 CAPTCHA 驗證和將給定 IP 地址限制為每分鐘兩條信息。
Send-A-Link 載入速度快,因為代碼簡潔,不使用 jQuery。
Send-A-Link 使用 Javascript / AJAX 進行快速,非侵入式的表單處理,但會優雅地降級以為沒有啟用 Javascript 的客戶提供完整的功能性。
建立和測試於 WordPress v3.5.1,雖然它可能適用於較早版本,但未經過測試。

dlb's Send-A-Link 代碼有註釋,特別是關於 WordPress 外掛介面和 AJAX 功能方面。這使得它成為新手開發人員探索自己的編程興趣的合適起點。我已嘗試使代碼非常易於理解。但是,我不聲稱這是模範代碼,因為我自己並不是經驗豐富的開發人員。實際上,我非常感激建設性的批評。

未來,我計劃釋放以下功能的新版本,大約按照以下順序:

隱私保證,不儲存電子郵件地址,但儲存 IP
使 "重發消息" 鏈接始終重新顯示表單,並填寫字段
本地化以準備進行翻譯,包括提供 po 和 mo 文件以及一些關於如何使用 POEDIT 自定義措辭的說明,無論使用什麼語言。這尤其適用於錯誤訊息。
嘗試使用 PHP 的 DOM 處理程序,以實現當客戶端沒有啟用 Javascript 時更強大,更可靠的響應格式化
使用存儲過程每天刷新日誌,以減少執行次數
改用類別結構進行重寫
添加管理螢幕以指定某些已定義的常數和模板
輕鬆開啟或關閉 CAPTCHA 功能
輕鬆使用其他 CAPTCHA 進行驗證

原文外掛簡介

dlb’s Send-A-Link allows visitors to send someone an email containing a link to the post or page.
Key features include:

Show visitors a link (icon and/or text) to send an email by adding a function call to your templates or a shortcode to your pages/posts.
The input form, confirmation page, and email message are all based on easily modifiable HTML templates.
Spam protection includes CAPTCHA verification and limiting any given IP address to two messages per minute.
Send-A-Link loads fast because code is compact and does not use jQuery.
Send-A-Link uses Javascript/AJAX for fast, inobtrusive form handling, but it degrades gracefully to provide full functionality to clients without Javascript.
Built and tested on WordPress v3.5.1; although it might work on earlier versions, it has not been tested on them.

dlb’s Send-A-Link code is heavily commented, especially regarding WordPress plugin interfaces and AJAX features. This makes it a suitable starting point for novice developers to explore their own programming interests. I have attempted to make the code very understandable. However, I do not claim this to be model code because I am not an experienced developer myself. In fact, I would greatly appreciate constructive criticism.
In the future, I plan to release new versions with the following features, in approximately this order:

Privacy reassurance that email addresses are not stored, but IP’s are
Make the “send another message” link consistently re-display form with fields pre-filled
Localize to be ready for translation, including delivery of po and mo files and some instruction on how to use POEDIT to customize the wording, regardless of language. This could especially apply to the error messages.
Attempt to use PHP’s DOM handling routines for more robust and reliable formatting of responses when client does not have Javascript available
Use a stored procedure to flush log daily to reduce number of times it is done
Rewrite using class construction
Add admin screens to specify some things now defined in constants and templates
Make it easy to turn CAPTCHA off or on
Make it easy to use other CAPTCHAs

各版本下載點

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

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


0.4 | 1.0 | 1.1 | 1.2 | 0.45 | 0.95 | trunk |

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

文章
Filter
Apply Filters
Mastodon